xsl-list
[Top] [All Lists]

RE: [xsl] <xsl:sort> discarting all content

2010-03-10 01:48:16
I can't see any plausible reason for this behaviour.

I suggest posting a complete source document and stylesheet that demonstrate
the problem, so people can try it on various processors.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay  

-----Original Message-----
From: Markus Karg [mailto:karg(_at_)quipsy(_dot_)de] 
Sent: 10 March 2010 07:00
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] <xsl:sort> discarting all content

Dear XSL Professionals,

We have this rather simple XSL snippet which is working perfectly:

<xsl:for-each select="$v">
    <xsl:message><xsl:value-of select="@a"/></xsl:message> 
</xsl:for-each>

But when we are adding ANY sorting (independent of the 
content of it's select attribute, and even if we do not 
provide a select attribute at all) the is no output anymore 
-- the loop is just not executed anymore!

<xsl:for-each select="$v">
    <xsl:sort select="@x" />
    <xsl:message><xsl:value-of select="@a"/></xsl:message> 
</xsl:for-each>

We have no clue why there is output anymore. What we know is 
that it is not related to <xsl:message> as it also happens if 
we are trying to output to the normal result stream. 
Transformer used is the one that is defaulted in Java 6.


With kind regards

Markus Karg
Head of Implementation & Design

QUIPSY QUALITY GmbH & Co. KG
Ein Unternehmen der MES-Gruppe
Stuttgarter Strasse 23  |  D-75179 Pforzheim
Telefon: +49(0)7231/9189-52  |  Telefax: +49(0)7231/9189-59
E-Mail: karg(_at_)quipsy(_dot_)de  |  Internet: www.quipsy.de 
                                                              
                                                              
                 

Geschäftsführer: Nils Schroeder
Registergericht Mannheim HRA 701214 I  USt-IdNr.: DE256549073
Telefon: +49(0)7231-9189-0  |  Telefax: +49(0)7231-9189-59  I 
 E-Mail: info(_at_)quipsy(_dot_)de 

Diese E-Mail enthält persönliche, vertrauliche und vor 
Weitergabe geschützte Informationen und ist ausschließlich 
für den vorgesehenen o.g. Empfänger (Adressaten) bestimmt. 
Falls Sie diese E-Mail versehentlich erhalten haben und nicht 
der vorgesehene Empfänger sind, bitten wir Sie, die E-Mail 
und deren Anhänge nicht aufzubewahren, nicht zu 
vervielfältigen, nicht zu nutzen und nicht weiterzugeben. 
Bitte informieren Sie uns als Absender über diesen 
Zustellungsfehler und löschen Sie die E-Mail.


--~------------------------------------------------------------------
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>
--~--