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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--