Subject: [xsl] Not able to work further with templates...match.. From: "Sachidanandam E.K" <sachiek_sachiek@xxxxxxxxxxx> Date: Wed, 20 Dec 2000 10:05:48 +0530 |
Hi there, I am trying to make the templates work line by line with this XSL . The xml file and xsl are below. The thing is it is not able to associate well. ----------------------------------------------menutest.xml------------------ ------------------ <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="m.xsl" ?> <themenu Type="Maim Tree"> <topFolderOut Title="One menu" URL="test.htm" Tips="One menu" ID="One"> <sub> <subItemOut Title="Test Main End" URL="test.htm" Tips="Test Main menu"/> </sub> </topFolderOut> <topFolderOut Title="Two Menu" URL="test.htm" Tips="Two Menu" ID="Two"> <sub> <subFolderOut Title="Two Menu Child" URL="test.htm" Tips="Two Menu Child" ID="SubTwo"> <sub> <subItemOut Title="Test Menu Child End" URL="test.htm" Tips="Two Menu Child One End"/> <subItemOut Title="Test Menu Child End" URL="test.htm" Tips="Two Menu Child Two End"/> </sub> </subFolderOut> </sub> </topFolderOut> </themenu> --------------------------------------------------xsl file--------------------------------------- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transforml" version="1.0" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="http://mycompany.com/mynamespace"> <HTML> <HEAD> <TITLE>menu</TITLE> <LINK rel="stylesheet" type="text/css" href="DIMStyle.css"/> </HEAD> <body class="MenuBody"> <div CLASS="inner" STYLE="width:100%; height:100%;"> <div CLASS="theMenu" ID="theMenu"> <h1><xsl:value-of select="//topFolderOut/test"/></h1> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="topFolderOut"> <div CLASS="topFolderOut" TARGET="right"> <xsl:attribute name="ID"><xsl:value-of select="@ID"/></xsl:attribute> <xsl:attribute name="HREF"><xsl:value-of select="@URL"/></xsl:attribute> <xsl:attribute name="TITLE"><xsl:value-of select="@Title"/></xsl:attribute> </div> </xsl:template> </div> </div> <div ID="theMenuUp" CLASS="scrollButtonOut" TITLE="Click to move the menu down"><img SRC="/images/menuUp.gif"/></div> <div ID="theMenuDown" CLASS="scrollButtonOut" TITLE="Click to move the menu up"><img SRC="/images/menuDown.gif"/></div> </body> </HTML> </xsl:stylesheet> But it is not able to retrive any values. Can any one reply upon this pls Cheers Sachi XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Tags within tags, Nice, Kerry A. (LNG- | Thread | Re: [xsl] Not able to work further , Jeni Tennison |
Re: [xsl] Xerces and Unicode, David_N_Bertoni | Date | Re: [xsl] example, Miloslav Nic |
Month |