sorry and sad to say, I am not the xml-guy... ;-)
I convert from/to. For your case, I am not sure, what you would like to see
in the tree. You cannot have other "personal" properties, than the
"NodeData", what I use to pass information to the client-side. My
tree, a open book, a clodes book and a html image. To can use them instead
of giving each node that decoration. In my case, I always specify only these
thrre type, while I am adding nodes. I add nodey danymically, after I start
" Jason Shohet" <ash477@hotmail.com> wrote in message
news:eKmj3PFUDHA.2196@TK2MSFTNGP11.phx.gbl...
> 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>
>
>