RE: [xsl] unconnected elements?

Subject: RE: [xsl] unconnected elements?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 14 Nov 2001 10:28:49 -0000
> 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


Current Thread