Project

Profile

Help

Saxon on WAS 6.0.2

Added by Anonymous over 18 years ago

Legacy ID: #3667475 Legacy Poster: sasingh (sasingh)

We are in process of migrating one of our applications to websphere 6.0.2 and we are having some issues with xsl processing. Following code works perfectly fine with IBM Rational Developer 6.0 but it does not work when deployed on solaris - I get following error – <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/"> <xsl:output method="text" media-type="text/plain"/> <xsl:template match = "" > <!--List All Attributes --> <xsl:for-each select="///@*"> <!-- To have a new line character after every XPath --> <xsl:text > </xsl:text> <xsl:value-of select="saxon:path()"/> </xsl:for-each> </xsl:template> </xsl:stylesheet> [4/3/06 9:54:26:280 EDT] 00000031 SystemErr R org.apache.xpath.XPathProcessorException: Extension function http://saxon.sf.net/ : path is unkn own [4/3/06 9:54:26:281 EDT] 00000031 SystemErr R at org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTable.java:237) [4/3/06 9:54:26:282 EDT] 00000031 SystemErr R at org.apache.xalan.transformer.TransformerImpl.extFunction(TransformerImpl.java:503) [4/3/06 9:54:26:282 EDT] 00000031 SystemErr R at org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:204) [4/3/06 9:54:26:282 EDT] 00000031 SystemErr R at org.apache.xpath.Expression.executeCharsToContentHandler(Expression.java:311) [4/3/06 9:54:26:282 EDT] 00000031 SystemErr R at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:272) [4/3/06 9:54:26:288 EDT] 00000031 SystemErr R at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:431) [4/3/06 9:54:26:288 EDT] 00000031 SystemErr R at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:271) [4/3/06 9:54:26:288 EDT] 00000031 SystemErr R at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates .java:393) [4/3/06 9:54:26:288 EDT] 00000031 SystemErr R at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) [4/3/06 9:54:26:288 EDT] 00000031 SystemErr R at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java :2374) [4/3/06 9:54:26:288 EDT] 00000031 SystemErr R at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2 245) [4/3/06 9:54:26:289 EDT] 00000031 SystemErr R at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1334) [4/3/06 9:54:26:289 EDT] 00000031 SystemErr R at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:738) [4/3/06 9:54:26:289 EDT] 00000031 SystemErr R at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251) [4/3/06 9:54:26:289 EDT] 00000031 SystemErr R at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1229)


Replies (1)

RE: Saxon on WAS 6.0.2 - Added by Anonymous over 18 years ago

Legacy ID: #3667914 Legacy Poster: Michael Kay (mhkay)

Your problem is that you are running Xalan, not Saxon, and Xalan does not recognize Saxon extension functions. Normally putting saxon8.jar on the classpath is enough to ensure that Saxon is selected as the chosen XSLT processor, but the configuration issues in Websphere may be different. If juggling the classpath doesn't help, the next step is to ensure that the system property javax.xml.transform.TransformerFactory is set to the value net.sf.saxon.TransformerFactoryImpl. It's a good idea to add the code <xsl:comment><xsl:value-of select="system-property('xsl:vendor')"/></xsl:comment> to your stylesheet to make sure you know which XSLT processor you are invoking. Michael Kay

    (1-1/1)

    Please register to reply