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 w
Pr/w
Style[@w:val !=
preceding-sibling::w
[1]/w
Pr/w
Style[@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
>
<w
Pr>
<w
Style w:val="ParagraphText"/>
</w
Pr>
<w:r>
<w:t>some text between </w:t>
</w:r>
</w
>
<w
>
<w
Pr>
<w
Style w:val="Listing"/>
</w
Pr>
<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
preceding-sibling::w
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
<w
<w
</w
<w:r>
<w:t>some text between </w:t>
</w:r>
</w
<w
<w
<w
</w
<w:r>
<w:t>listing textt</w:t>
</w:r>
</w
==========================================================
Thanks for any help, Martin