Subject: [xsl] what to do if id() doesn't recognize xml:id From: TW <zupftom@xxxxxxxxxxxxxx> Date: Sun, 2 Jan 2011 01:21:20 +0100 |
To make my code work with XSLT implementations that don't support selection of nodes by their xml:id attributes, I replaced occurences of id($some-id) with //*[@xml:id=$some-id], which works but for obvious reasons doesn't make me happy. In the source documents, there can be a potentially large number of elements that are inter-connected by means of their IDs. It's a bit like in a GedML encoded family tree[1]. Are there any recommended alternatives to the discouraged //* solution? Thanks! Thomas W. [1] http://xml.coverpages.org/GedML-Sample-kennedy-xml.txt
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] should document-uri work , Fred Christian | Thread | Re: [xsl] what to do if id() doesn', David Carlisle |
Re: [xsl] should document-uri work , Graydon | Date | Re: [xsl] what to do if id() doesn', David Carlisle |
Month |