|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
XPointer in XPLHi, I want to get a filename from my url parameters and use it directly in the identity processor. The code below does not work, although I can get the text of the filename I want. I suspect there is a quick method for this. Appreciate any ideas. Thanks, Hank <p:processor name="oxf:request"> <p:input name="config"> <config> <include>/request/parameters</include> </config> </p:input> <p:output name="data" id="params"/> </p:processor> <p:processor name="oxf:identity"> <p:input name="data" href="#params#xpointer(/request/ parameters[name='file']/value/text())"/> <p:output name="data" id="file"/> </p:processor> Hank Ratzesberger NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: XPointer in XPLHank,
"...use it directly in the identity processor..." - what do you mean by that? What are you going to do with the value of /request/ parameters[name='file']/value ? How are you going to use it? It looks the identity processor is not necessary. A. On Jun 26, 2008, at 8:21 PM, Hank Ratzesberger wrote: > > Hi, > > I want to get a filename from my url parameters and use it > directly in the identity processor. The code below does not > work, although I can get the text of the filename I want. I > suspect there is a quick method for this. Appreciate any > ideas. > > Thanks, > Hank > > <p:processor name="oxf:request"> > <p:input name="config"> > <config> > <include>/request/parameters</include> > </config> > </p:input> > <p:output name="data" id="params"/> > </p:processor> > > <p:processor name="oxf:identity"> > <p:input name="data" href="#params#xpointer(/request/ > parameters[name='file']/value/text())"/> > <p:output name="data" id="file"/> > </p:processor> > > > > Hank Ratzesberger > NEES@UCSB > Institute for Crustal Studies, > University of California, Santa Barbara > 805-893-8042 > > > > > > > -- > You receive this message as a subscriber of the ops-users@... > mailing list. > To unsubscribe: mailto:ops-users-unsubscribe@... > For general help: mailto:sympa@...?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: Re: XPointer in XPLI want to "load" this file -- the file referenced in the url parameter. Equivalent to: <p:processor name="oxf:identity"> <p:input name="data" href="oxf:/the/path/in/my/request/parameter"/> <p:output name="data" id="file"/> </p:processor> Then I will use it as input to xslt. (Well, first I wanted to look at it by serializing it back.) Thanks, Hank On Jun 26, 2008, at 11:35 AM, Alexander Zatko wrote: > Hank, > > "...use it directly in the identity processor..." - what do you > mean by that? > > What are you going to do with the value of /request/parameters > [name='file']/value ? How are you going to use it? > > It looks the identity processor is not necessary. > > A. > > On Jun 26, 2008, at 8:21 PM, Hank Ratzesberger wrote: > >> >> Hi, >> >> I want to get a filename from my url parameters and use it >> directly in the identity processor. The code below does not >> work, although I can get the text of the filename I want. I >> suspect there is a quick method for this. Appreciate any >> ideas. >> >> Thanks, >> Hank >> >> <p:processor name="oxf:request"> >> <p:input name="config"> >> <config> >> <include>/request/parameters</include> >> </config> >> </p:input> >> <p:output name="data" id="params"/> >> </p:processor> >> >> <p:processor name="oxf:identity"> >> <p:input name="data" href="#params#xpointer(/request/ >> parameters[name='file']/value/text())"/> >> <p:output name="data" id="file"/> >> </p:processor> >> >> >> >> Hank Ratzesberger >> NEES@UCSB >> Institute for Crustal Studies, >> University of California, Santa Barbara >> 805-893-8042 >> >> >> >> >> >> >> -- >> You receive this message as a subscriber of the ops-users@... >> mailing list. >> To unsubscribe: mailto:ops-users-unsubscribe@... >> For general help: mailto:sympa@...?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- > You receive this message as a subscriber of the ops-users@... > mailing list. > To unsubscribe: mailto:ops-users-unsubscribe@... > For general help: mailto:sympa@...?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: Re: Re: XPointer in XPLI think you will need to use the url-generator: http://www.orbeon.com/ops/doc/processors-generators-url
Your xpl could look something like this: <p:processor name="oxf:request"> <p:input name="config"> <config> <include>/request/parameters</include> </config> </p:input> <p:output name="data" id="params"/> </p:processor> <!-- assuming you are fetching HTML --> <p:processor name="oxf:xslt"> <p:input name="data" href="#params"/> <p:input name="config"> <xsl:stylesheet version="2.0"> <xsl:template match="/request/parameters[name='file']/ value"> <config> <url> <xsl:value-of select="."/> </url> <content-type>text/html</content-type> <tidy-options> <show-warnings>false</show-warnings> <quiet>true</quiet> </tidy-options> </config> </xsl:template> </xsl:stylesheet> </p:input> <p:output name="data" id="urlgencnfg"/> </p:processor> <p:processor name="oxf:url-generator"> <p:input name="config" href="#urlgencnfg"/> <p:output name="data" id="theDoc"/> </p:processor> On Jun 26, 2008, at 8:47 PM, Hank Ratzesberger wrote: > > I want to "load" this file -- the file referenced in the url > parameter. > > Equivalent to: > > <p:processor name="oxf:identity"> > <p:input name="data" href="oxf:/the/path/in/my/request/parameter"/> > <p:output name="data" id="file"/> > </p:processor> > > Then I will use it as input to xslt. (Well, first I wanted to look > at it by serializing it back.) > > Thanks, > Hank > > > On Jun 26, 2008, at 11:35 AM, Alexander Zatko wrote: > >> Hank, >> >> "...use it directly in the identity processor..." - what do you >> mean by that? >> >> What are you going to do with the value of /request/ >> parameters[name='file']/value ? How are you going to use it? >> >> It looks the identity processor is not necessary. >> >> A. >> >> On Jun 26, 2008, at 8:21 PM, Hank Ratzesberger wrote: >> >>> >>> Hi, >>> >>> I want to get a filename from my url parameters and use it >>> directly in the identity processor. The code below does not >>> work, although I can get the text of the filename I want. I >>> suspect there is a quick method for this. Appreciate any >>> ideas. >>> >>> Thanks, >>> Hank >>> >>> <p:processor name="oxf:request"> >>> <p:input name="config"> >>> <config> >>> <include>/request/parameters</include> >>> </config> >>> </p:input> >>> <p:output name="data" id="params"/> >>> </p:processor> >>> >>> <p:processor name="oxf:identity"> >>> <p:input name="data" href="#params#xpointer(/request/ >>> parameters[name='file']/value/text())"/> >>> <p:output name="data" id="file"/> >>> </p:processor> >>> >>> >>> >>> Hank Ratzesberger >>> NEES@UCSB >>> Institute for Crustal Studies, >>> University of California, Santa Barbara >>> 805-893-8042 >>> >>> >>> >>> >>> >>> >>> -- >>> You receive this message as a subscriber of the ops-users@... >>> mailing list. >>> To unsubscribe: mailto:ops-users-unsubscribe@... >>> For general help: mailto:sympa@...?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> >> -- >> You receive this message as a subscriber of the ops-users@... >> mailing list. >> To unsubscribe: mailto:ops-users-unsubscribe@... >> For general help: mailto:sympa@...?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > Hank Ratzesberger > NEES@UCSB > Institute for Crustal Studies, > University of California, Santa Barbara > 805-893-8042 > > > > > > > -- > You receive this message as a subscriber of the ops-users@... > mailing list. > To unsubscribe: mailto:ops-users-unsubscribe@... > For general help: mailto:sympa@...?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: Re: Re: Re: XPointer in XPLYes, that is precisely it. Thanks Alex. On Jun 26, 2008, at 12:18 PM, Alexander Zatko wrote: > I think you will need to use the url-generator: http:// > www.orbeon.com/ops/doc/processors-generators-url > > Hank Ratzesberger NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: XPointer in XPLThe reason it doesn't work I think is that the result of your XPath
expression is text, which will have trouble going to the processor output without being encapsulated. Often, we solve this by writing things like: aggregate('root-element', #params#xpointer(/request/ parameters[name='file']/value/text())) -Erik On Jun 26, 2008, at 11:21 AM, Hank Ratzesberger wrote: > > Hi, > > I want to get a filename from my url parameters and use it > directly in the identity processor. The code below does not > work, although I can get the text of the filename I want. I > suspect there is a quick method for this. Appreciate any > ideas. > > Thanks, > Hank > > <p:processor name="oxf:request"> > <p:input name="config"> > <config> > <include>/request/parameters</include> > </config> > </p:input> > <p:output name="data" id="params"/> > </p:processor> > > <p:processor name="oxf:identity"> > <p:input name="data" href="#params#xpointer(/request/ > parameters[name='file']/value/text())"/> > <p:output name="data" id="file"/> > </p:processor> > > > > Hank Ratzesberger > NEES@UCSB > Institute for Crustal Studies, > University of California, Santa Barbara > 805-893-8042 > > > > > > > -- > You receive this message as a subscriber of the ops-users@... > mailing list. > To unsubscribe: mailto:ops-users-unsubscribe@... > For general help: mailto:sympa@...?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
| Free Forum Powered by Nabble | Forum Help |