[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|