[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Can you apply a template match on a copy node?
Mike,
There's also <xsl:attribute-set> and the xsl:use-attribute-set attribute, if you really don't want to layer it into CSS (which is what I would do). You could combine this with Joerg's suggestion of parameters. I would think that between attribute sets and calling templates by name (which you could do, for example, to handle your smiley-to-image scenario) you'd pretty much have what you need to avoid a second pass (which is effectively what you say you want to do). FWIW, I think your instinct is right to avoid that unless you have more demanding requirements that it meets. Cheers, Wendell At 06:39 AM 9/23/2002, you wrote: Yep looks like css is the best solution. I'm just experimenting really, but there are plenty of scenarios where I have wanted to apply a template to a node written out in another match, so that I can reuse a single style definition. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== 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
|