This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Daft Question but
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Daft Question but
- From: pcaspian at iafrica dot com
- Date: Fri, 06 Jul 2001 11:07:53 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi, Im just plain stuck. I dont know, im just trying to make a simple
excersize example to go through my examples in the book, but Im having
problems.
my xml file:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="today.xsl"?>
<itenary>
<day number="1">Arrive in Cairo</day>
<day number="2">Visit Cairo</day>
<day number="3">Go shopping </day>
<day number="4">Eat out </day>
<day number="5">Go scuba diving</day>
<day number="6">Snake park</day>
<day number="7">Go home</day>
</itenary>
xsl file:
<?xml version="1.0"?>
<!-- File Name: today.xsl -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<xsl:template match="/itenary">
<xsl:for-each select="day">
<a> OI
<xsl:value-of select ="@number"/>
</a>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
*****
THis only displays "OI" in my browser (using MSXML 3.0) (IE), sorry, I have
created numerous XSL files, but I just dont get whats wrong here ?
thanks
Karlo
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list