[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Getting MSIE5b2 "Using XSL to Generate XML" tutorial to

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
using xsl to generate xml
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.