Subject: RE: [xsl] apply two different templates at the same time From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 31 Jan 2002 10:09:35 -0000 |
..............ah the joys of css :) [apologies for posting a cant-see-the-wood-for-the-trees message] -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Andrew Welch Sent: Thursday, January 31, 2002 9:44 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] apply two different templates, Andrew Welch | Thread | RE: [xsl] apply two different templ, Michael Kay |
RE: [xsl] Special Character in XSL , Michael Kay | Date | RE: [xsl] XSL Generator in XSL., Michael Kay |
Month |