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

RE: Different results with different processors

Subject: RE: Different results with different processors
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 7 Jun 2007 23:35:31 +0100
RE:  Different results with different processors
You need to show us a cut-down but complete stylesheet, together with source
document, and the two outputs that are produced. It should then be easy to
tell you which one is correct. It's possible that both are - the spec does
leave some features implementation-defined.

Michael Kay

> -----Original Message-----
> From: Chris Gamache [mailto:cgamache@xxxxxxxxx] 
> Sent: 07 June 2007 22:57
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Different results with different processors
> I'm comparing the processing the same stylesheet using Xalan 
> and libxslt (xsltproc)
> Xalan produces expected output. xsltproc has some issues. 
> Xalan interprets this expression correctly (at least /I/ 
> think it does... :) libxslt does not...
> <xsl:apply-templates select="node()[name() != 'bar']" />
> I find it hard to articulate what I am seeing. I'll do my 
> best... What is getting subsequently selected by libxslt 
> isn't the same thing as what xalan selects. If I rewrite the 
> expression to pick a specific set of nodes 
> <xsl:apply-templates select="foo" /> I get the expected 
> result. If I re-write it to use a for-each ...
> <xsl:for-each select="node()[name() != 'bar']">
>   <xsl:apply-templates select="." />
> </xsl:for-each>
> It behaves as expected.
> I don't understand the difference between xalan and libxslt's 
> interpretation of the statement, and why re-writing it makes 
> all the difference. Am I doing something wrong? Am I hitting 
> on a incompatibility I am unaware of?

Current Thread


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.
First Name
Last Name
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.