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

RE: Embedded Stylesheet

Subject: RE: Embedded Stylesheet
From: "Max Dunn" <maxdunn@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Oct 2001 19:18:56 -0800
xml embedded stylesheet
See http://sources.redhat.com/ml/xsl-list/2000-07/msg01048.html

Max

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Sean Kelly
Sent: Monday, October 29, 2001 6:57 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Embedded Stylesheet


Hi all

I'm trying to embed a stylesheet within an XML document, code is as
follows;

<?xml version="1.0"?>
<?xml-stylesheet href="#newsStylesheet" type="text/xsl" media="screen"?>

<xsl:stylesheet version="1.0" id="newsStylesheet"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<html>
 <head>
  <title>Sample of an Embeded Stylesheet</title>
 </head>
 <body>
  <p>NEWS</p>
  <xsl:for-each select="news/day">
   <p>
    <xsl:value-of select="date"/><br/>
     <b>
      <xsl:value-of select="title"/>
     </b><br/>
    <xsl:value-of select="text"/>
   </p>
  </xsl:for-each>
 </body>
</html>
</xsl:stylesheet>

<!-- following is the XML data -->

<news>
 <day>
  <date>30 October 2001</date>
  <title>Embedded Stylesheet Example</title>
  <text>The following text is displayed using an embedded
stylesheet</text>
 </day>
</news>

All the code is one file with the .xml suffix

Sadly it doesnt work, I am using IE5 running version 3 of MSXML2 is this
where the problem lies or is it within the source code?

any advice?


 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.