This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: what is wrong here?


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@group2000.nl



-----Original Message-----
From: Veena Sarda [mailto:veena@unibex.com]
Sent: Thursday, July 26, 2001 13:10
To: xsl-list@lists.mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]