I notice there's an "idref()" XPath function which returns nodes which
reference a specified id
Actually, it's id() that does that - idref() does the inverse.
- however the document I'm processing
references ids with URIs, e.g.<a href="#foo"/> references id "foo"
Theoretically, the document() function will do this. However, processing
of fragment identifiers is a little fragile - technically it depends on
the media type of the document being known, since the semantics of
fragment identifiers depend on the media type. You might be better off
using id(substring(@href, 2)).
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>
--~--