|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Copy Child Elements
Hi Abel,
Thanks for the excellent advice. I do need to use position() on the p element because the id attribute changes for each entry. So, I am using this: <xsl:template match="p[position()=1]"> <dt> <xsl:copy-of select="text()|*" /> </dt> </xsl:template> <xsl:template match="p[position()=2]"> <dd> <xsl:copy-of select="text()|*" /> </dd> </xsl:template> Thanks again. And thanks to the others who replied. Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com Don't use for-each here. Instead, use
|
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
|






