This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: what is wrong here?
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] what is wrong here?
- From: Bas Alberts <bas dot alberts at group2000 dot nl>
- Date: Thu, 26 Jul 2001 13:15:24 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
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