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

RE: XSL Error

Subject: RE: XSL Error
From: "Jack Cane" <jwcane@xxxxxxxxxxx>
Date: Mon, 10 Mar 2003 14:29:47 -0500
john cane
Some further experiments show that, by adding the body content shown below,
then the <h4>...</h4> content is rendered, but the body content is not
rendered, and the css still has no effect.

tks,

jwc

<Previous message>

I want to publish a length document as xml. Each page will be controlled by
the same cascading style sheet (css). I would like to specify the style
sheet at the beginning of every xml page, by making the declaration in the
xsl document. If I understand things properly, the css declaration belongs
in the root element. Therefore, I believe that the following should work,
but it does not render the chapter heading.

Please show me what is wrong with this code.

<?xml version="1.0"?>
<!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com) by John W. Cane
(ENW International, Ltd.) -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="MyDocument.xsd" xmlns:html="http://www.w3.org/1999/xhtml"
version="1.0">
<xsl:template match="/">
  <html>
    <head>
      <link rel="stylesheet" href="D:\WebApps\DFR\dissertation.css"
type="text/css"/>
      <title>
        <xsl:apply-templates select="ssHdr"/>
      </title>
    </head>
    <body>
      <h4><xsl:value-of select="SectHd" /></h4>
      <xsl:apply-templates/>
    </body>
  </html>
</xsl:template>
<xsl:template match="ChapHdg">
  <h4>
    <xsl:apply-templates/>
  </h4>
</xsl:template>



 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
  • XSL Error
    • Jack Cane - Mon, 10 Mar 2003 13:35:12 -0500 (EST)
      • Jack Cane - Mon, 10 Mar 2003 14:26:19 -0500 (EST) <=
      • Michael Kay - Mon, 10 Mar 2003 15:14:42 -0500 (EST)
        • Jack Cane - Mon, 10 Mar 2003 15:43:36 -0500 (EST)
      • <Possible follow-ups>
      • Martinez, Brian - Mon, 10 Mar 2003 16:49:21 -0500 (EST)
        • Jack Cane - Mon, 10 Mar 2003 19:08:33 -0500 (EST)

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.