[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Not able to work further with templates...match..

Subject: Not able to work further with templates...match..
From: "Sachidanandam E.K" <sachiek_sachiek@xxxxxxxxxxx>
Date: Wed, 20 Dec 2000 10:05:48 +0530
not able to work
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.