[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Display text and all the following nodes except <
It is working fine in the below example <head>O<sCap>FFICERS</sCap> of <person>the</person> R<sCap>EGIMENT</sCap> of I<sCap>NFANTRY</sCap><anchor id="JHXMA0192"/><pb n="FFCP0002-52"/></head> but it is not working in this <head> <title>(1) Exddd<anchor id="JHXMA0192"/><anchor id="JHXMA2911"/>dddnor <person>Williadddunt</person> to dddde</title> </head> the output of the above should be <h1>(1) Exddd dddnor Williadddunt to dddde</h1> Thanks a lot!!! At 01:35 PM 9/18/2008, Syd Bauman wrote: <!-- process <head> specially: ignore child <anchor> or <pb> --> <xsl:template match="head"> <xsl:element name="h1"> <xsl:apply-templates select="@* |*[not(name(.)='anchor' or name(.)='pb')] |text() |comment() |processing-instruction()" /> </xsl:element> </xsl:template>
|
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
|