Subject: [xsl] apply two different templates at the same time From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 31 Jan 2002 09:43:47 -0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Javascript inside XSL(Jus, Michael Kay | Thread | RE: [xsl] apply two different templ, Andrew Welch |
RE: [xsl] Javascript inside XSL(Jus, Michael Kay | Date | RE: [xsl] An issue with XPath 2.0 s, Michael Kay |
Month |