Re: [xslt] key() in match pattern of xsl:key
- From: Kasimier Buchcik <K Buchcik 4commerce de>
- To: "Joel E. Denny" <jdenny ces clemson edu>
- Cc: ML-libxslt <xslt gnome org>
- Subject: Re: [xslt] key() in match pattern of xsl:key
- Date: Fri, 09 Dec 2005 15:44:28 +0100
Hi,
On Thu, 2005-12-08 at 15:56 -0500, Joel E. Denny wrote:
> On Thu, 8 Dec 2005, Kasimier Buchcik wrote:
>
> > On Thu, 2005-12-08 at 07:12 -0500, Joel E. Denny wrote:
[...]
> > Joel, I have 0% percent knowledge of this issue, but I tested you case
> > with Stylus Studio (I think it uses Xalan for XSLT) and the result was
> > the one you expected. So understand this as additional info without any
> > intentions from me.
>
> Thanks for doing this. This is good to know.
>
> Could you clarify one point? My use of the word `expected' in the original
> post was a bad precedent as it's ambiguous. I gave two sets of output
> produced by libxslt: (1) the desired output, which is produced when
> `keyAnotB' comes before `keyB', and (2) some undesired output, which is
> produced when `keyAnotB' comes after `keyB'. Did you happen to try both?
> Are you saying the output always agreed with libxslt or was always the
> desired output?
[...]
It was always the desired output.
The output in Stylus Studio is the one below, regardless of the order of
the <xsl:key>s.
$A:
1.0: A=1, B=1, AnotB=0
2.0: A=1, B=0, AnotB=1
3.0: A=1, B=0, AnotB=1
$B:
1.0: A=1, B=1, AnotB=0
4.0: A=0, B=1, AnotB=0
5.0: A=0, B=1, AnotB=0
$AnotB:
2.0: A=1, B=0, AnotB=1
3.0: A=1, B=0, AnotB=1
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]