RE: [xsl] FW: Dealing with mixed content

Subject: RE: [xsl] FW: Dealing with mixed content
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 16 Feb 2005 15:08:24 -0000
> My question was more to do with the pattern Joris used, i.e. 
> generate-id((..
> | preceding-sibling::hr)[last()]).
> 
> I understand the generate-id() function but was not entirely 
> sure what the
> pattern itself was doing.
> 

It's an expression not a pattern; and it's basically indexing each element
by the identity of the most recent hr element. That means that given an hr
element, you can find all the elements for which that is the most recent hr,
i.e. all the elements that follow that hr with no intervening hr.

Michael Kay
http://www.saxonica.com/

Current Thread