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: apply two different templates at the same time



..............ah the joys of css :)

[apologies for posting a cant-see-the-wood-for-the-trees message]

-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Andrew Welch
Sent: Thursday, January 31, 2002 9:44 AM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] apply two different templates at the same time


Hi,

I know the answer to this is probably no, but someone may have a work
around....

I have a load of data and a load of templates, and it all gets displayed
nicely.  If any of the elements in the data contain an attribute 'mark="1"'
then the data should be highlighted by changing its background colour.  The
mark attribute can apply to any element in the data.

Currently, I use two templates for each element - one matching just the
element and one matching the element with the 'mark' attribute...

...is it possibly to cut down on the duplication of code?

The stylesheet is applied using an embedded link (requirement) - does this
prevent a double-pass?

andrew

===


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



 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]