unknown issue with namespace

Here should go questions about transforming XML with XSLT and FOP.
Katz[UC]
Posts: 3
Joined: Tue Oct 16, 2007 4:15 pm

unknown issue with namespace

Post by Katz[UC] »

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:

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">
...
After this in a table (just for testing) I do like this:

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>
...
Trying to processing this with FOP, but I get:

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)
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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

It seems that you get the error when you run a transformation in an Oracle application server which has no connection with the oXygen XML Editor. You will have to contact the support staff of that product.


Regards,
Sorin
Katz[UC]
Posts: 3
Joined: Tue Oct 16, 2007 4:15 pm

Post by Katz[UC] »

that's not good...

thanks anyway.

I'll try to solve it, but if someone has suggestions, you are welcome :)
jkmyoung
Posts: 89
Joined: Mon Mar 06, 2006 10:13 pm

Post by jkmyoung »

The processor you're using does not support msxml

change it to
xmlns:msxsl="http://www.oracle.com/XSL/Transform/java/"
Katz[UC]
Posts: 3
Joined: Tue Oct 16, 2007 4:15 pm

Post by Katz[UC] »

That was the solution... easy one...

thank you!
Post Reply