Re: [xsl] XSLT 2.0 and implementation of fn:idref in Saxon 7.9

Subject: Re: [xsl] XSLT 2.0 and implementation of fn:idref in Saxon 7.9
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 13 Mar 2004 20:19:53 GMT
> Did I misunterstand the meaning of the fn:idref (Finds the elements that
> link to the element with a given ID value i.e. This function allows
> reverse navigation from IDs to IDREFs.) ?

It reverse links to the noides of type idref which is the ttribute of
that type, which means that this:


	<xsl:copy-of select="idref(@id)" />

attempts to copy attribute nodes to a point in the tree after an element
child and you get the error you got.

to copy the elements carrying the idref you want

	<xsl:copy-of select="idref(@id)/.." />

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread