[xsl] Display text and all the following nodes except <anchor> and <pb>

Subject: [xsl] Display text and all the following nodes except <anchor> and <pb>
From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Thu, 18 Sep 2008 11:28:55 +0530
Can anyone help me to get the desire output!!! I want all the text/following element except <pb> and <anchor> within <h1>

INPUT
<head>O<sCap>FFICERS</sCap> of <person>the</person> R<sCap>EGIMENT</sCap> of
I<sCap>NFANTRY</sCap><anchor id="J">anchor</anchor><pb n="2"/>2</pb>
</head>
<anchor id="c">anchor1</anchor>

OUTPUT
<h1>O<span class="sCap">FFICERS</span> of <span class="personn">the</span> R<span class="sCap">EGIMENT</span> of I<span class="sCap">NFANTRY</span></h1>
<a name="c"/>anchor1</a>


Current Thread