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