This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: unconnected elements?
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 14 Nov 2001 10:28:49 -0000
- Subject: RE: [xsl] unconnected elements?
- Reply-to: xsl-list at lists dot mulberrytech dot com
> How do you make a match for something like <CENTER></CENTER>
> that'll work anywhere in a document?
Just write your stylesheet uniformly using the push model.
<xsl:template match="...">
...
<xsl:apply-templates/>
...
</xsl:template>
and then add a template rule for the <CENTER> element:
<xsl:template match="CENTER">
...
<xsl:apply-templates/>
...
</xsl:template>
You've put your finger on the reason why rule-based processing (push
processing) is the preferred way of transforming documents.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list