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