This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: do I have better option other than mode
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: do I have better option other than mode
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 20 Nov 2000 11:54:58 -0000
- Reply-To: xsl-list at mulberrytech dot com
> I working on a stylesheet covering over 170 elements. Many
> elements have an "id" attribute.
>
The answer to this one might be xsl:apply-imports.
Define the standard behavior for each element in one stylesheet module.
Import this into another module that does
<xsl:import href="standard-templates.xsl"/>
<xsl:template match="*[@id]">
<a name="{@id}"/>
<xsl:apply-imports/>
</xsl:template>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list