[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] what is wrong here?


Subject: RE: [xsl] what is wrong here?
From: Bas Alberts <bas.alberts@xxxxxxxxxxxx>
Date: Thu, 26 Jul 2001 13:15:24 +0200

It would really be a good idea to read the FAQ and a tutorial or two, before
posting these questions. Trust me.

However, you try to access a list of data as a single object.
Try either:
	<xsl:for-each select="/FitnessCenter/Member">
		<xsl:value-of ...........>
	</xsl:for-each>
or
	<xsl:value-of select="/FitnessCenter/Member [ condition-here ]">

But, like I said, please read the FAQ.


Greetings,
bas.alberts@xxxxxxxxxxxx



-----Original Message-----
From: Veena Sarda [mailto:veena@xxxxxxxxxx]
Sent: Thursday, July 26, 2001 13:10
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] what is wrong here?


I get a output "Welcome !" when i view it in ie5.5
No tags are processed?

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="ex7_1.xsl"?>
<FitnessCenter>
        <Member level="platinum">
                <Name>Jeff</Name>
                <Phone type="home">555-1234</Phone>
                <Phone type="work">555-4321</Phone>
                <FavoriteColor>white</FavoriteColor>
        </Member>
</FitnessCenter>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/TRANSFORM"
version="1.0">

     <xsl:template match="/">
        <HTML>
            <HEAD>
                <TITLE>Welcome</TITLE>
            </HEAD>
            <BODY>
               Welcome <xsl:value-of select="/FitnessCenter/Member/Name"/>!
    <BR/>
    <xsl:number value="position()"/>
           </BODY>
        </HTML>
    </xsl:template>

</xsl:stylesheet>

Thanks
Veena


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread