xsl-list
[Top] [All Lists]

Re: [xsl] 1st previous node()

2011-02-08 04:18:54
Yes, I'm meaning stylesheets.
So, 2 different templates, but the same transformer.

I appreciate the feedback.  Thanks.

On Tue, Feb 8, 2011 at 1:58 AM, Michael Kay <mike(_at_)saxonica(_dot_)com> 
wrote:
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>
--~--





-- 
Karl Stubsjoen
MeetScoresOnline.com
(602) 845-0006

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

<Prev in Thread] Current Thread [Next in Thread>