Re: Underspecified interaction between node-set() and key() function
Jirka Kosek <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
Mike Brown wrote: > One thing, though I'm not sure how id() is really expected to work on these > trees. I thought I'd look to see how XSLT 2.0 says to do it, but XSLT 2.0 is > unclear on this point. The way I see it, the IDs that id() needs are assigned > based on attributes being declared in a DTD as being of type ID. Well, how > does one associate a DTD with a (converted) result tree fragment or temporary > tree? I don't see how anyone could ever reasonably expect id() to return > anything when operating on such a tree, because there will never be a DTD > associated with the tree, and even if there were, it seems unreasonable to > expect the processor to parse the DTD. Yes, you are right. It is unreasonable to use id() with (converted) result tree fragment as there is no way to supply attribute type definition to this tree. I just overgeneralized my case which was dealing with key() function. -- ----------------------------------------------------------------- Jirka Kosek e-mail: [email protected] http://www.kosek.cz
smime.p7s
(application/x-pkcs7-signature, 3.3 KB) - not displayed