[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.

Subject: RE: Cannot spot the error in my XSL code, please help.
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 29 May 2005 17:05:17 +0100
RE:  Cannot spot the error in my XSL code
> 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/

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.