This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: unconnected elements?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]