Hi Peter,

Looks like you might want to use the url-generator pipeline, a bit like
this:

        <p:processor uri="oxf/processor/xslt-2.0">
            <p:input name="data" href="#session"/>
            <p:input name="config">
                <config xsl:version="2.0">
                    <url><xsl:value-of select="/form/filename"/></url>
                    <content-type>text/xml</content-type>
                </config>
            </p:input>
            <p:output name="data" id="url-config"/>
        </p:processor>

        <p:processor uri="oxf/processor/url-generator">
            <p:input name="config" href="#url-config"/>
            <p:output name="data" id="file"/>
        </p:processor>

Hope this helps.

-Matt

Matt Allen
Client Services Director - 0413 777 771
River Dynamics
Winner, Innovation In Claims Management 
            - 2003 Australasian Claims Expo  
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Charles
Sent: Friday, March 19, 2004 12:26 PM
To: [EMAIL PROTECTED]
Subject: Text node using xpointer ?

Hello,

Is it possible to use xpointer to select the text node from a document
such that the output can be used as the string input to a processor?

Example:

session variable:
<form>
        <filename>oxf:app/somefile.xml</filename>
<form>

<p:processor uri="oxf/processor/identity">
                <p:input name="data"
href="#session#xpointer(/form/filename/node())"/>
                <p:output name="data" id="output"/>
</p:processor>

I have also tried:

<p:processor uri="oxf/processor/identity">
                <p:input name="data"
href="#session#xpointer(string(/form/filename/*))"/>
                <p:output name="data" id="output"/>
</p:processor>

Both methods always produce a null value.

Thanks

Peter



-----<CDE/>-----
Center for Document Engineering
University of California, Berkeley
cde.berkeley.edu


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users



_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to