|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: nested p elements in output (was: no subject)
> What is occurring is that the first p of each section is > being matched, but > instead of replacing the matched p, it will make that matched > "p" a child > of a new element "p". That's because you asked it to. > > <xsl:template match="section/p[position()=1]"> > <p class="firstsentence"> > <xsl:copy> > <xsl:copy-of select="@*"/> The outer <p> element is created by your <p> literal result element. The inner one is created by your <xsl:copy>. Just get rid of the <xsl:copy>. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx 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
|

Cart








