xsl-list
[Top] [All Lists]

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

2004-03-13 14:45:10
Hello David,

David Carlisle schrieb:

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.) ?
 
to copy the elements carrying the idref you want

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


Thank You, that works as I would like. 

It seems, I have to think more about the difference (or discrepancy)
between the fn:id and the fn:idref als defined in
http://www.w3.org/TR/xpath-functions/ . (Maybe because I would not
declare an element itself as tpye of xs:IDREF or xs:IDREFS ... )

Regards
Thomas

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