[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: is this valid <xsl:template match="@id"> ?
Saravanan,
At 06:43 PM 12/30/2002, you wrote: I would like to create a template that matches attribute id in all elements Yes, it is correct. The problem is probably that your attribute nodes are never getting selected for processing; accordingly, the template is never matched and never run. In the template(s) for the element(s) that hold the attributes, try writing <xsl:apply-templates select="@*"/> and see whether that helps. This instruction tells the processor to pick up the attributes on the element and find and process templates for them, too. You might want to read up also on the built-in default templates in XSLT. By default, they do not select attributes for processing, which is why templates matching attributes don't seem to work. If this isn't clear, please post again with (brief) examples of source data, your stylesheet, and desired output; no doubt someone can identify exactly the instruction you need very quickly. Cheers, Wendell
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
|