After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 577736 - xsl:apply-template and xsl:for-each problem
xsl:apply-template and xsl:for-each problem
Status: RESOLVED INCOMPLETE
Product: libxslt
Classification: Platform
Component: general
1.1.x
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-02 15:29 UTC by Yuri
Modified: 2009-04-10 11:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yuri 2009-04-02 15:29:57 UTC
Please describe the problem:
xsl:apply-template and xsl:for-each processing node in different order.
apply-templates from first node
for-each from last

Steps to reproduce:
1. 
2. 
3. 


Actual results:
Any simple xml like
<root>
<node1/>
<node2/>
<node3/>
</root>
for xsl:apply-templates result order is node1,node2,node3
for xsl:for-each result order is node3,node2,node1


Expected results:
for xsl:apply-templates result order is node1,node2,node3
for xsl:for-each result order is node1,node2,node3


Does this happen every time?
yes

Other information:
temporary workaround is xsl:sort
Comment 1 Daniel Veillard 2009-04-10 11:42:20 UTC
Without a reproduceable stylesheet this is at best inomplete.
Actually I think it's bogus, but not seeing the full stylehseet
it's impossible to refine.

Daniel