xsl-list
[Top] [All Lists]

RE: Cannot spot the error in my XSL code, please help.

2005-05-29 09:05:17
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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>