| 
 
Subject: Re: [xsl] "uriref()" XPath function? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Tue, 15 Jun 2010 22:59:34 +0100  | 
I notice there's an "idref()" XPath function which returns nodes which reference a specified id
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)).- however the document I'm processing references ids with URIs, e.g.<a href="#foo"/> references id "foo"
Michael Kay Saxonica
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] "uriref()" XPath function?, Jack Bates | Thread | [xsl] XSL Processing to avoid repet, Fabien Tillier | 
| [xsl] "uriref()" XPath function?, Jack Bates | Date | Re: [xsl] group-starting-with drops, tom schmitter | 
| Month |