M
mabu
Hi!
I coming closer to my problem. I am using the Muenich method to group
my items within an element. But i was not able to write a correct
expression to group the elements because of the value of an
attribute...
My current statement is:
<xsl:variable name="selection"
select="w[not(preceding-sibling::w) or wPr/wStyle[@w:val !=
preceding-sibling::w[1]/wPr/wStyle[@w:val]]] "/>
When i am using this without the @w:val entries and correct the XML it
is working - fine ... but i am not able to do this with my XML
sheet...
How can i rewrite this expression that it groups the elements by their
attribute value of w:val
example entries are:
==========================================================
<w>
<wPr>
<wStyle w:val="ParagraphText"/>
</wPr>
<w:r>
<w:t>some text between </w:t>
</w:r>
</w>
<w>
<wPr>
<wStyle w:val="Listing"/>
</wPr>
<w:r>
<w:t>listing textt</w:t>
</w:r>
</w>
==========================================================
Thanks for any help, Martin
I coming closer to my problem. I am using the Muenich method to group
my items within an element. But i was not able to write a correct
expression to group the elements because of the value of an
attribute...
My current statement is:
<xsl:variable name="selection"
select="w[not(preceding-sibling::w) or wPr/wStyle[@w:val !=
preceding-sibling::w[1]/wPr/wStyle[@w:val]]] "/>
When i am using this without the @w:val entries and correct the XML it
is working - fine ... but i am not able to do this with my XML
sheet...
How can i rewrite this expression that it groups the elements by their
attribute value of w:val
example entries are:
==========================================================
<w>
<wPr>
<wStyle w:val="ParagraphText"/>
</wPr>
<w:r>
<w:t>some text between </w:t>
</w:r>
</w>
<w>
<wPr>
<wStyle w:val="Listing"/>
</wPr>
<w:r>
<w:t>listing textt</w:t>
</w:r>
</w>
==========================================================
Thanks for any help, Martin