RE: [xsl] Ignoring data before first match element

Subject: RE: [xsl] Ignoring data before first match element
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 11 Apr 2005 12:38:12 +0100
> Why is this happening? Should the content before my
> first "match" not be ignored?
> 

If there is no template rule that matches an element, the default (built-in)
rule applies templates to all the children of that element, which causes any
text within the element to be displayed.

If you want a different default rule, write

<xsl:template match="*"/>

Michael Kay
http://www.saxonica.com/

Current Thread