Subject: RE: [xsl] XSL Error From: "Jack Cane" <jwcane@xxxxxxxxxxx> Date: Mon, 10 Mar 2003 15:46:55 -0500 |
All of my elements have the apply-templates statement, as in the following: <xsl:template match="SubSection"> <xsl:apply-templates/> </xsl:template> I do not quite understand where the apply-templates statement should be placed. Also, please confirm that the .css reference is in the right place. I want my .css to apply to all pages (about 30) of this document. tks, jwc -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Michael Kay Sent: Monday, March 10, 2003 3:17 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] XSL Error > > Please show me what is wrong with this code. Your root template (match="/") does an apply-templates on ssHdr. The rest of the input document is being ignored. If you want content to be processed, it must be reached by an xsl:apply-templates. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > > <?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> > </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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL Error, Michael Kay | Thread | RE: [xsl] XSL Error, Martinez, Brian |
[xsl] Re: A proposal:xsl:result-doc, Dimitre Novatchev | Date | RE: [xsl] Which is more efficient?, Martinez, Brian |
Month |