xsl-list
[Top] [All Lists]

Re: [xsl] function last() not matching the last element tag

2007-01-26 10:11:21
for the last p there are two (or three) matching  templates of the same
priority this is an error the processor may stop or it may recover
by doing the last one in the styesheet. You need to put (different)
priorities greter than 0.5 on your [1] and [last()] cases.

(actually this doesn''t account for the output you got, if your real
example has the last() template last, but it's true anyway)

Oh, yes, I saw that when I was using Saxon (which helpfully points
it out to those of us who fail to remember this detail too often!),
it seems it isn't necessarily the problem in this particular case,
as xsltproc gives the same results even when the priorites are boosted.

Jim.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       
jim(_dot_)robinson(_at_)stanford(_dot_)edu
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)

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