unknown issue with namespace
Posted: Tue Oct 16, 2007 4:38 pm
Hallo.
Trying to get PDF from xml and xsl-fo. In one place I need to use node-set.
For that reason I declare namespace (msxsl) in xsl file:
After this in a table (just for testing) I do like this:
Trying to processing this with FOP, but I get:
I've tryed to use node-set() just in XML-XSL transformation with the same example and everything was ok, why FOP throws this error?
Any suggestions?
Thank you.
Trying to get PDF from xml and xsl-fo. In one place I need to use node-set.
For that reason I declare namespace (msxsl) in xsl file:
Code: Select all
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:msxsl="urn:schemas-microsoft-com:xsltn">
...
Code: Select all
...
<xsl:variable name="some_set">
<xsl:for-each select="CD[CD_TYPE = 'R']">
<xsl:sort data-type="number" select="NR"/>
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:variable>
<fo:table-row>
<fo:table-cell border-width="0pt" number-columns-spanned="9" padding="2pt">
<fo:block text-align="start"><xsl:value-of select="msxsl:node-set($some_set)/CD[1]/NR"/></fo:block>
</fo:table-cell>
</fo:table-row>
...
Code: Select all
oracle.xml.parser.v2.XPathException: Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.
at oracle.xml.parser.v2.XSLBuilder.startElement(XSLBuilder.java:421)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1227)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:250)
at oracle.xml.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:587)
at FopServlet.renderSVGdom(FopServlet.java:446)
at FopServlet.doPost(FopServlet.java:177)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Any suggestions?
Thank you.