Szabo, Patrick (LNG-VIE) wrote:
still doens´t work :(
What exactly happens? Do you get an error? If so which one exactly for
which statement?
If you don't get an error but don't get the result you want then
consider to provide minimal but complete samples of the XML input, the
XSLT stylesheet and the output you get and the output you want so that
we can reproduce the problem.
okay i´m doing this:
<xsl:choose>
<xsl:when test="every $x in current-group()/zs_absatz/listenpunkt/@ilfo
satisfies $x eq current-group()[1]/zs_absatz[1]/listenpunkt/@ilfo">
<zs_liste ilfo="{current-group()[1]/listenpunkt[1]/@ilfo}">
<xsl:apply-templates select="current-group()"/>
</zs_liste>
</xsl:when>
<xsl:otherwise>
<zs_liste ilfo="ungleiche ilfos">
<xsl:apply-templates select="current-group()"/>
</zs_liste>
</xsl:otherwise>
</xsl:choose>
group looks as follows:
<zs_absatz>
<listenpunkt ilfo="x">text steht dann hier drinne
</zs_absatz>
That's not even well-formed.
If current-group() gives you a sequence of zs_absatz elements then you
might want
<xsl:when test="every $x in current-group()/listenpunkt/@ilfo
satisfies $x eq current-group()[1]/listenpunkt/@ilfo">
but that is a guess.
Show us at least the for-each-group you have so that we can see the context.
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--