Grouping multiple paragraph styles under 1 parent
Hai,
I have grouped the paragraph styles of same type using your method as in
<xsl:template match="w:p" mode="insideBulletList">
<li><xsl:apply-templates /></li>
<xsl:apply-templates
select="following-sibling::*[1][self::w:p/w:pPr/w:pStyle[@w:val='BulletList']]"
mode="insideBulletList" />
</xsl:template>
My Wordml contains the following paragraph styles
w:p[w:pPr/w:pStyle[@w:val="para1"]
w:p[w:pPr/w:pStyle[@w:val="para2"]
w:p[w:pPr/w:pStyle[@w:val="para3"]
I want to group the above 3 different styles under one parent node like
<newnode>
<para1>38293</para1>
<para2>sdjfkj</para2>
<para3>eiruwio</para3>
</newnode>
I brought the above output using <xsl:for-each select="*" group-starting-with=""> method. But I want the above output using <xsl:template match> method so that it will maintain the position.
Can you help me!!!!!!!!!
__________________
Thanks,
Rocxy.
|