[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: match on attribute anywhere
Jeni,
This solution is nice because its layering of stylesheets (using the xsl:import mechanism) mirrors the layering of Andrew's presumed use case, where someone has gone in after the file creation and arbitrarily scattered @mark attributes around. I don't know if that's deeply significant, but it is interesting, and prompts one to notice a class of problems (namely those where you need two templates to fire on the same node, one to address one layer, another to address a layer "on top") that can be addressed using this feature of xsl:apply-imports. Surprise: it works as intended. And that class turns out to be broader than just customizing standard stylesheets. (Like the class of problems addressed by keys, which is broader than cross-referencing.) Cheers, Wendell At 09:13 AM 2/14/02, Jeni wrote: ....> However, if you have several templates and the knowledge that @mark > could appear on any element, it wouldnt be so easy. It would be > great to add just one extra template to match @mark anywhere, and > highlight its contents.
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
|