Okay, now it works....i didn´t see the "<xsl:when test="every $x in
current-group()/listenpunkt/@ilfo
satisfies $x eq current-group()[1]/listenpunkt/@ilfo">" in your mail !
Thanks a lot !
Nice Weekend !
regards
Patrick Szabo
XSLT-Entwickler
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
Patrick(_dot_)Szabo(_at_)lexisnexis(_dot_)at
LexisNexis Verlag ARD Orac GmbH & Co KG
Marxergasse 25, 1030 Wien
FN 8333f, Handelsgericht Wien
http://www.lexisnexis.at/
-----Ursprüngliche Nachricht-----
Von: Szabo, Patrick (LNG-VIE)
[mailto:patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at]
Gesendet: Freitag, 11. September 2009 13:30
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: AW: AW: AW: [xsl] compare attributes
no error !
it just doens't do what its supposed to ^^
I still seems to enter the when instead of the otherwise.
sample output:
<zs_liste ilfo="14">
<zs_absatz font="Times New Roman" size="18" jc="both" spacing="29"
ind-left="0"
ind-right="5">
<listenpunkt ilvl="0" ilfo="14"/>Das Berufungsgericht hat diese
Rechtsprechung in vertretbarer Weise auf den Einzelfall angewendet,wenn es die
</zs_absatz>
<zs_absatz font="Times New Roman" size="18" jc="both" spacing="24"
ind-left="0"
ind-right="5">
<listenpunkt ilvl="0" ilfo="14"/>Im Übrigen berührt es keine
erheblicheRechtsfrage, welchen Eindruck der angesprochene Leserkreis von einer
</zs_absatz>
<zs_absatz font="Times New Roman" size="18" jc="both" spacing="19"
ind-left="0"
ind-right="5">
<listenpunkt ilvl="0" ilfo="9"/>Die vom Berufungsgericht gebilligte
Ermächtigung zur Urteilsveröffentlichung auf der Titelseite entspricht dem
teil – dem Talionsprinzip entsprechend – in der Regel in
jener Form und Aufmachung zu publizieren ist, in der auch die
</zs_absatz>
<zs_absatz font="Times New Roman" size="18" jc="both" spacing="19"
ind-left="0"
ind-right="5">
<listenpunkt ilvl="0" ilfo="9"/>Die Rechtsmittelwerberin verweist
auf § 34Abs 4 MedienG, wonach bei in einem periodischen Mediumbegangenen
Urteilsveröffentlichung „in sinngemäßer Anwendung des § 13
MedienG“ zuerfolgen habe; nach § 13 Abs 4 MedienG genüge die
Gegendarstellung im Blattinneren.
</zs_absatz>
<zs_absatz font="Times New Roman" size="18" jc="both" spacing="29"
ind-left="0"
ind-right="0">
<listenpunkt ilvl="0" ilfo="16"/>Dem ist entgegenzuhalten, dass im
Schrifttum sogar für den Bereich des MedienG selbst die Anwendbarkeit des §
13 Abs 4 MedienG für Urteilsveröffentlichungen nach diesem Gesetz a.
</zs_absatz>
...
</zs_liste>
regards
Patrick Szabo
XSLT-Entwickler
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
Patrick(_dot_)Szabo(_at_)lexisnexis(_dot_)at
LexisNexis Verlag ARD Orac GmbH & Co KG
Marxergasse 25, 1030 Wien
FN 8333f, Handelsgericht Wien
http://www.lexisnexis.at/
-----Ursprüngliche Nachricht-----
Von: Martin Honnen [mailto:Martin(_dot_)Honnen(_at_)gmx(_dot_)de]
Gesendet: Freitag, 11. September 2009 13:18
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: Re: AW: AW: [xsl] compare attributes
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>
--~--
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--