[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: AW: AW: compare attributes

Subject: Re: AW: AW: compare attributes
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 11 Sep 2009 13:17:41 +0200
Re: AW: AW:  compare attributes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.