|
Subject: RE: Getting MSIE5b2 "Using XSL to Generate XML" tutorial to work From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx> Date: Tue, 2 Feb 1999 10:45:13 -0800 |
Sorry about the difficulties, this tutorial obviously has some serious typos
in it!
The XSL should look like this (IE5 accepts this as a stylesheet fragment):
<portfolio xmlns:xsl="http:www.w3.org/TR/WD-xsl">
<xsl:for-each select="item[@type='stock']">
<stock>
<name><xsl:value-of select="@company"/></name>
<symbol><xsl:value-of select="@symbol"/></symbol>
<price><xsl:value-of seect="@price"/></price>
</stock>
</xsl:for-each>
</portfolio>
or like this (full stylesheet):
<xsl:stylesheet xmlns:xsl="http:www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<portfolio>
<xsl:for-each select="item[@type='stock']">
<stock>
<name><xsl:value-of select="@company"/></name>
<symbol><xsl:value-of select="@symbol"/></symbol>
<price><xsl:value-of seect="@price"/></price>
</stock>
</xsl:for-each>
</portfolio>
</xsl:template>
</xsl:stylesheet>
> -----Original Message-----
> From: TK [mailto:tk@xxxxxxxx]
> Sent: Thursday, January 28, 1999 12:43 PM
> To: 'xsl-list-digest@xxxxxxxxxxxxxxxx'
> Subject: Getting MSIE5b2 "Using XSL to Generate XML" tutorial to work
>
>
> Has anyone successfully run the Microsoft's XML tutorial
> lesson 13 (see
> http://www.microsoft.com/xml/tutorial/xsl_to_xml.asp ) "Using XSL to
> Generate XML" to work. I'd appreciate seeing the actually
> content in the
> xml and xsl files or any hints!
>
> I've tried the below and all I get are blank screens and
> these are examples in
> the tutorial:
>
> ---The xml file---
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="xsl06.xsl" ?>
> <investments>
> <item type="stock" symbol="ZCXM" company="zacx corp"
> price="$18.875"/>
> <item type="stock" symbol="ZFFX" company="zaffymat inc"
> price="$20.313"/>
> <item type="stock" symbol="ZYSZ" company="zysmergy inc"
> price="$92.250"/>
> </investments>
>
> --- and the xsl file ---
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> <portfolio>
> <xsl:for-each select="item[@type='stock']">
> <stock>
> <name><xsl:value-of select="@company"/></name>
> <symbol><xsl:value-of select="@symbol"/></symbol>
> <price><xsl:value-of seect="@price"/></price>
> </stock>
> </xsl:for-each>
> </portfolio>
> </xsl:stylesheet>
>
> Thanks in advance, TK
>
>
>
> 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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Writing xsl Stylesheets for IE0, Jonathan Marsh | Thread | Question.. XML/XSL, Nilofer Motiwala |
| RE: Sorting on numbers, Jonathan Marsh | Date | Question.. XML/XSL, Nilofer Motiwala |
| Month |