Xalan nodeset extension in XSLT debugger

Here should go questions about transforming XML with XSLT and FOP.
Posts: 1
Joined: Wed Dec 21, 2005 10:34 pm

Xalan nodeset extension in XSLT debugger

Post by wmillows » Wed Dec 21, 2005 10:38 pm


I am evaluating Oxygen 6.2. I am trying to debug
a xslt with nodeset extension. But, I've got the following error. I am using
Xalan 2.7.0. I've copied bsf.jar and js.jar to Oxygen/lib dir.

Description: The URI http://xml.apache.org/xalan does not identify an external Java class

Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Thu Dec 22, 2005 1:04 pm


That error message is generated when you run a stylesheet referencing a Xalan extension with the Saxon processor. The nodeset function is a built-in extension so you don't need additional jars. Just select Xalan instead of Saxon in the XSLT engine combo box of the control toolbar. For example the following stylesheet applied to any XML document

Code: Select all

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan">
<xsl:template match="/">
<xsl:variable name="rtf">
<xsl:for-each select="xalan:nodeset($rtf)/docelem//*">
<xsl:value-of select="name(.)"/>
should give the output:

Code: Select all


Post Reply