Re: AW: AW: [xsl] compare attributes

Subject: Re: AW: AW: [xsl] compare attributes
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 11 Sep 2009 13:17:41 +0200
Szabo, Patrick (LNG-VIE) wrote:
still doensB4t 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 iB4m 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/

Current Thread