Using xalan:nodeset in Oxygen debugger
Posted: Thu May 16, 2013 12:40 am
I'm working in Oxygen 14.2.
I'm trying to do the following and I can't seem to get it to work.
I want to run this stylesheet in the debugger view and I'm not getting any output. How do I ensure that I have access to the nodeset function with Xalan in my instance?
Any help would be appreciated!
I'm trying to do the following and I can't seem to get it to work.
I want to run this stylesheet in the debugger view and I'm not getting any output. How do I ensure that I have access to the nodeset function with Xalan in my instance?
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xalan="http://xml.apache.org/xalan" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xhtml xalan" version="1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xsl:variable name="group-1" select="'ABCDE'" />
<xsl:variable name="group-2" select="'FGHIJ'" />
<xsl:variable name="group-3" select="'MNOPQR'" />
<xsl:variable name="group-4" select="'STUVWXYZ'" />
<xsl:variable name="groups">
<groups>
<group><xsl:value-of select="$group-1"/></group>
<group><xsl:value-of select="$group-2"/></group>
<group><xsl:value-of select="$group-3"/></group>
<group><xsl:value-of select="$group-4"/></group>
</groups>
</xsl:variable>
<xsl:output indent="yes" method="xml"/>
<!-- Begin output -->
<xsl:template match="system-index-block">
<xsl:apply-templates select="calling-page/system-page[@current]"/>
</xsl:template>
<!-- Page output -->
<xsl:template match="system-page">
<xsl:call-template name="divs-depts-output" />
</xsl:template>
<!-- Begin divisions, departments output -->
<xsl:template name="divs-depts-output">
<xsl:for-each select="xalan:nodeset($groups)">
<xsl:value-of select="group" /><br />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>