Re: Emulation of XSL's id() in DSSSL?

Subject: Re: Emulation of XSL's id() in DSSSL?
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Fri, 25 Feb 2000 08:21:43 -0500
/ Ralf Kempkens <kempkens@xxxxxxxxxxx> was heard to say:
| In xsl, the id()-function automatically returns a nodeset, but in DSSSL there
| is only 'process-element-by-id' which returns a single node.

FWIW, if id() returns more than one node, you don't have a valid XML
document. (It's well-formed, but not valid; IDs are required to be

| (e.g. <node id="id7" references="id1 id2 id4 id9">...</node>)
| Does anybody out there have a function handy, that will return the right
| nodeset?

(element-with-id 'value') will return the element that has ID 'value'.

                                        Be seeing you,

Norman Walsh <ndw@xxxxxxxxxx>      | Fast. Cheap. Well. Pick two.                 | 

 DSSSList info and archive:

Current Thread