Manfred,
Thanks for your help. But I have a few questions. In your code you refer to
xmlTreeNodesFilename
and xslTreeNodemapperFilename which I take to mean the XML and XSL files
respectively. What does xmlDefaultNodeTypesFilename refer to.
Below are my XML and Xsl files how would they apply to your code
Thanks again,
Jason Shohet
************************XML FILE**********************
<?xml version="1.0" standalone="yes" ?>
<HEPClasses xmlns="
http://tempuri.org/HEPClass.xsd">
<HEPClass>
<CLASS_NO>101.1</CLASS_NO>
<TITLE>Name of Class </TITLE>
<COURSE_HRS>12</COURSE_HRS>
<DESCRIPTION>Class Description</DESCRIPTION>
<GROUP_NO>1</GROUP_NO>
<GROUP_NAME>Name of Group</GROUP_NAME>
<ACTIVE>true</ACTIVE>
</HEPClass>
*********************************XSL FILE ***************************
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<IGTree>
<TreeProperties>
<!--All the stuff goes here-->
</TreeProperties>
<Styles>
<!--All the stuff goes here-->
</Styles>
<Levels/>
<IslandLevels/>
<Nodes>
<xsl:apply-templates/>
</Nodes>
</IGTree>
</xsl:template>
<xsl:template match="HEPClass">
<Node>
<xsl:apply-templates select="CLASS_NO"/>
<Nodes>
<xsl:apply-templates select="TITLE"/>
<xsl:apply-templates select="COURSE_HRS"/>
<xsl:apply-templates select="DESCRIPTION"/>
<xsl:apply-templates select="GROUP_NO"/>
<xsl:apply-templates select="GROUP_NAME"/>
<xsl:apply-templates select="ACTIVE"/>
</Nodes>
</Node>
</xsl:template>
<xsl:template match="CLASS_NO">
<Text><xsl:value-of select="."/></Text>
</xsl:template>
<xsl:template match="TITLE">
<Node>
<Text><xsl:value-of select="."/></Text>
</Node>
</xsl:template>
<xsl:template match="COURSE_HRS">
<Node>
<Text><xsl:value-of select="."/></Text>
</Node>
</xsl:template>
<xsl:template match="DESCRIPTION">
<Node>
<Text><xsl:value-of select="."/></Text>
</Node>
</xsl:template>
<xsl:template match="GROUP_NO">
<Node>
<Text><xsl:value-of select="."/></Text>
</Node>
</xsl:template>
<xsl:template match="GROUP_NAME">
<Node>
<Text><xsl:value-of select="."/></Text>
</Node>
</xsl:template>
<xsl:template match="ACTIVE">
<Node>
<Text><xsl:value-of select="."/></Text>
</Node>
</xsl:template>
</xsl:stylesheet>