xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnold, Curt" <Curt.Arn...@hyprotech.com>
Subject RE: Redundant?
Date Wed, 08 Aug 2001 23:34:09 GMT
The xsl-list (http://www.mulberrytech.com/xsl/xsl-list/index.html) is probably the best place
to ask generic XSLT question.  general@xml.apache.org is for comments that affect all Apache
XML Projects
or the incubation of new sub-projects.

However, my take is that the template matches the document root and all elements that don't
match a more specific pattern and for those nodes, forces their child nodes through the available
templates.

So if you had:

<xsl:transform>
<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="foo"><myfoo/></xsl:template>
</xsl:transform>

You would get a <myfoo> at the top level for every <foo> element that appeared
anywhere in the document (except as the child of another <foo> element).


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message