Hi all,
In my xslt processor, I'm trying to defined two inputs (the data input and an user-defined input called 'test'). The user-defined input comes from the output on an other xslt processor, so I have XML. However, when I call a value using doc() function (<xsl:value-of select="doc('#test')/config/fichier"/>) I have an error like this : Failed to load document #test Could you help me ??? Thanks a lot Damien. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Probably a problem with your id/ref/href/data atttributes in your xpl.
It's a bit tricky. Could you please your complete XPL file? Thanks! Henrik On 8/22/06, Peymirat Damien <[hidden email]> wrote: > Hi all, > > In my xslt processor, I'm trying to defined two inputs (the data > input and an user-defined input called 'test'). The user-defined input > comes from the output on an other xslt processor, so I have XML. > However, when I call a value using doc() function (<xsl:value-of > select="doc('#test')/config/fichier"/>) I have an error like this : > Failed to load document #test > > Could you help me ??? > > > Thanks a lot > > > Damien. > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Peymirat Damien
Damien,
This is what you need: <xsl:value-of select="doc('input:test')/config/fichier"/> This will give you the text value of that node. If "/config/fichier" is the root of an XML subtree, you should use "xsl:sequence" instead of "xsl-value-of". Jeff Jones Sr Internet App Developer The Weather Channel Interactive Peymirat Damien wrote: > Hi all, > > In my xslt processor, I'm trying to defined two inputs (the data > input and an user-defined input called 'test'). The user-defined input > comes from the output on an other xslt processor, so I have XML. > However, when I call a value using doc() function (<xsl:value-of > select="doc('#test')/config/fichier"/>) I have an error like this : > Failed to load document #test > > Could you help me ??? > > > Thanks a lot > > > Damien. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Peymirat Damien
Thanks Henrik
The concerned processor is at line 74. Damien. -----Message d'origine----- De : Henrik Pettersen [mailto:[hidden email]] Envoyé : mardi 22 août 2006 17:04 À : [hidden email] Objet : Re: [ops-users] Problem with User-defined inputs Probably a problem with your id/ref/href/data atttributes in your xpl. It's a bit tricky. Could you please your complete XPL file? Thanks! Henrik On 8/22/06, Peymirat Damien <[hidden email]> wrote: > Hi all, > > In my xslt processor, I'm trying to defined two inputs (the data > input and an user-defined input called 'test'). The user-defined input > comes from the output on an other xslt processor, so I have XML. > However, when I call a value using doc() function (<xsl:value-of > select="doc('#test')/config/fichier"/>) I have an error like this : > Failed to load document #test > > Could you help me ??? > > > Thanks a lot > > > Damien. > > > > > > -- > You receive this message as a subscriber of the > [hidden email] mailing list. To unsubscribe: > mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws upload-action.xpl (5K) Download Attachment |
In reply to this post by Peymirat Damien
Perfect Jeff, It works well with doc('input:test')/...
Thank you Jeff and Henrik for your help !! Damien. -----Message d'origine----- De : Jeff Jones [mailto:[hidden email]] Envoyé : mardi 22 août 2006 17:21 À : [hidden email] Objet : Re: [ops-users] Problem with User-defined inputs Damien, This is what you need: <xsl:value-of select="doc('input:test')/config/fichier"/> This will give you the text value of that node. If "/config/fichier" is the root of an XML subtree, you should use "xsl:sequence" instead of "xsl-value-of". Jeff Jones Sr Internet App Developer The Weather Channel Interactive Peymirat Damien wrote: > Hi all, > > In my xslt processor, I'm trying to defined two inputs (the data > input and an user-defined input called 'test'). The user-defined input > comes from the output on an other xslt processor, so I have XML. > However, when I call a value using doc() function (<xsl:value-of > select="doc('#test')/config/fichier"/>) I have an error like this : > Failed to load document #test > > Could you help me ??? > > > Thanks a lot > > > Damien. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |