[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Cannot spot the error in my XSL code, please help.
> Hi all.here is my xsl code > <xsl:stylesheet xmlns:xsl = > "http://www.w3.org/1999/XSL/Transform" version = > "1.0" > > <xsl:template match="/"> > <html> > <body> > <fieldset> > <legend> > <font face="verdana,arial,helvetica" size="+3" > color="#00006B"> > <xsl:template match="*"> > <xsl:value-of select="name()" /> > </xsl:template> xsl:template can only be used as a top-level element in the stylesheet. I've no idea what you intended by using it here, so I can't tell you how to correct it. Perhaps you meant to write xsl:apply-templates. The xsl:apply-templates instructions selects elements (or other nodes) for processing, while the xsl:template declaration defines how nodes that match a particular pattern should be processed when they are selected. Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|