Xalan nodeset extension in XSLT debugger

Here should go questions about transforming XML with XSLT and FOP.
Posts: 1

Xalan nodeset extension in XSLT debugger

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

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



Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest