xsl-list
[Top] [All Lists]

RE: Ignoring data before first match element

2005-04-11 04:38:12

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/



--~------------------------------------------------------------------
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>