Hello Everyone,
I have written the following xsl: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.w3.org/2002/xforms/controls" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns="http://www.w3.org/1999/xhtml" > <xsl:template match="/"> <html> <head> <title>Address Book</title> </head> <body> <p>Request XML FIle is (Now just extract Message tag value and pass to the server)<!--<xsl:value-of select="/RID/R" />--> <!--<xsl:value-of select="doc('input:instance')/form/top" /> <xsl:value-of select="doc('input:instance')/form/t" />--></p> <table> <tr> <td> <f:xml-source> <!-- <xsl:copy-of select="/*"/> --> </f:xml-source> </td> </tr> </table> <p> <form action="http://192.168.93.211:8000/jsp-example/showxml.jsp" method="GET"> <input type="text" name="u" value="{doc('input:instance')/Messages/Message}"/> <input type="button" value="Call Servlet"/> </form></p> </body> </html> </xsl:template> </xsl:stylesheet> on call of this xsl i am getting error: Type class org.orbeon.oxf.common.ValidationException Message oxf:/Post.xsl, line 0, column 0 : Error on line 32 column 88 : Could not find function: doc Error Could not find function: doc: Could not find function: doc : oxf:/Post.xsl, line 0, column 0: Error on line 32 column 88 : Could not find function: doc Error Could not find function: doc: Could not find function: doc Location oxf:/Post.xsl Line 0 Column 0 Stack Trace org.orbeon.oxf.common.ValidationException: oxf:/Post.xsl, line 0, column 0 : Error on line 32 column 88 : Could not find function: doc Error Could not find function: doc: Could not find function: doc : oxf:/Post.xsl, line 0, column 0: Error on line 32 column 88 : Could not find function: doc Error Could not find function: doc: Could not find function: doc Please suggest. Regards, Saurabh -- 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 |
Administrator
|
Saurabh,
doc() is an XPath 2.0 / XSLT 2.0 function. You XSLT stylesheet has version "1.0", so it produces an error. Either use document() with XSLT 1.0, or doc() with XSLT 2.0. -Erik [hidden email] wrote: > Hello Everyone, > > I have written the following xsl: > > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:s="http://www.w3.org/2002/xforms/controls" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:f="http://orbeon.org/oxf/xml/formatting" > > xmlns="http://www.w3.org/1999/xhtml" > > > > <xsl:template match="/"> > <html> > <head> > <title>Address Book</title> > </head> > <body> > <p>Request XML FIle is (Now just extract Message tag value and pass to the server)<!--<xsl:value-of select="/RID/R" />--> <!--<xsl:value-of select="doc('input:instance')/form/top" /> <xsl:value-of select="doc('input:instance')/form/t" />--></p> > <table> > <tr> > <td> > <f:xml-source> > <!-- <xsl:copy-of select="/*"/> --> > </f:xml-source> > </td> > </tr> > </table> > > > > <p> > <form action="http://192.168.93.211:8000/jsp-example/showxml.jsp" method="GET"> > <input type="text" name="u" value="{doc('input:instance')/Messages/Message}"/> > > <input type="button" value="Call Servlet"/> > </form></p> > </body> > > </html> > > </xsl:template> > </xsl:stylesheet> > > on call of this xsl i am getting error: > > > Type class org.orbeon.oxf.common.ValidationException > Message oxf:/Post.xsl, line 0, column 0 : Error on line 32 column 88 : Could not find function: doc Error Could not find function: doc: Could not find function: doc : oxf:/Post.xsl, line 0, column 0: Error on line 32 column 88 : Could not find function: doc Error Could not find function: doc: Could not find function: doc > Location oxf:/Post.xsl > Line 0 > Column 0 > Stack Trace org.orbeon.oxf.common.ValidationException: oxf:/Post.xsl, line 0, column 0 : Error on line 32 column 88 : > Could not find function: doc > Error Could not find function: doc: > Could not find function: doc > : oxf:/Post.xsl, line 0, column 0: Error on line 32 column 88 : > Could not find function: doc > Error Could not find function: doc: > Could not find function: doc > > > Please suggest. > > > Regards, > Saurabh > > > > > > > > ------------------------------------------------------------------------ > > > -- > 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 -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 |