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]

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


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