[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT transformation using counters
Bubba O'Reily wrote:
ok. I'm not sure which one to use in my case. Using the below as an example: You can of course use <xsl:element name="PStyle:hd{$counter}" namespace="http://example.com/style"> <xsl:apply-templates/> </xsl:element> if you want to output elements in a certain namespace and with a certain prefix. You might also want to declare xmlns:PStyle="http://example.com/style" on the xsl:stylesheet element to ensure the declaration is output on the root of the result tree and not on each hd element. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
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
|