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

Re: 1st previous node()

Subject: Re: 1st previous node()
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 08 Feb 2011 08:58:58 +0000
Re:  1st previous node()
On 08/02/2011 08:19, Karl Stubsjoen wrote:
Solved it!
2 different templates, one template with:

<xsl:strip-space elements="*"/>

The other not.  This was changing my element id's.  Now they match as
expected.  And I suppose that is expected?


By "template" do you perhaps mean "stylesheet"?


If you transform the same document twice with different stylesheets, or even with the same stylesheet, there is no guarantee you will get the same results back from generate-id(). They may be closely related (for example Saxon's implementation of generate-id() concatenates a document number with a node number; the node number will be the same in different transformations, while the document number may be different) - but there are no guarantees.

Michael Kay
Saxonica

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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