|
Subject: Re: [xsl] Display text and all the following nodes except <anchor> and <pb> From: Syd Bauman <Syd_Bauman@xxxxxxxxx> Date: Thu, 18 Sep 2008 04:56:48 -0400 |
So this makes me think perhaps you are not asking your question with
sufficient precision.
Is the desired processing of <head>
a) to spit out an <h1> with everything the <head> had except <anchor>
and <pb>, OR
b) to spit out an <h1> with nothing but the text content of the input
<head> and all its descendants?
If the latter, use just
<!-- process <head> specially: ignore children everything except textual content -->
<xsl:template match="head">
<h1><xsl:value-of select="."/></h1>
</xsl:template>
Or perhaps
<h1><xsl:value-of select="normalize-space(.)"/></h1>
for prettier output if whitespace is not important.
Be warned that this drops all attributes of, and comments or
processing instructions within, input <head> elements, too.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Display text and all the , J. S. Rawat | Thread | Re: [xsl] Display text and all the , J. S. Rawat |
| Re: [xsl] Display text and all the , David Carlisle | Date | Re: [xsl] Display text and all the , J. S. Rawat |
| Month |