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]

RE: do I have better option other than mode


> 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

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