<?xml version="1.0" encoding="UTF-8"?> <root> <row id="j1"> <name>Marcus C.</name> <P id="j1_p1">[1] Text</P> <P id="j1_p2">[2] Text</P> <P id="j1_p3">[3] Text</P> <P id="j1_p4">[4] Text</P> <Head hlevel="h1"> <Emph type="b">Facts</Emph> </Head> <P id="j1_p5">[5] Text</P> <P id="j1_p6">[6] Text</P> <P id="j1_p7">[7] Text</P> <Head hlevel="h1"> <Emph type="b">Trial</Emph> </Head> <P id="j1_p8">[8] Text</P> <P id="j1_p9">[9] Text</P> <P id="j1_p10">[10] Text</P> </row> </root>
<root> <row id="j1"> <name>Marcus C.</name> <P id="j1_p1">[1] Text</P> <P id="j1_p2">[2] Text</P> <P id="j1_p3">[3] Text</P> <P id="j1_p4">[4] Text</P> <Group> <Head hlevel="h1"> <Emph type="b">Facts</Emph> </Head> <P id="j1_p5">[5] Text</P> <P id="j1_p6">[6] Text</P> <P id="j1_p7">[7] Text</P> </Group> <Group> <Head hlevel="h1"> <Emph type="b">Trial</Emph> </Head> <P id="j1_p8">[8] Text</P> <P id="j1_p9">[9] Text</P> <P id="j1_p10">[10] Text</P> </Group> </row> </root>
<xsl:template match="row/Head[child::Emph]"> <Group> <Head> <xsl:apply-templates /> </Head> </Group> </xsl:template>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)