xsl-list
[Top] [All Lists]

Re: Precedence of template rules on xsl:import

2003-07-04 05:14:26
Marcus,

David C. wrote:
so I want that the order of the imports shouldn't matter.
perhaps you want xsl:include not xsl:import.

I was just writing the same thing.

The other thing I noticed in the toolbar.xslt was that rather than:

<xsl:template match="button[parent::toolbar or parent::group/parent::toolbar]">
  ...
</xsl:template>

it would be a lot neater to write, and easier to understand:

<xsl:template match="toolbar/button | toolbar/group/button">
  ...
</xsl:template>

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list