Subject: Re: [xsl] Identity of Documents Puzzle From: "W. Eliot Kimber" <eliot@xxxxxxxxxx> Date: Mon, 09 Dec 2002 07:47:02 -0500 |
First point is, that "the same file" is not a concept that any XSLT processor will recognize. The closest you can get it "the same URI". No XSLT processor is going to recognize that http://saxon.sf.net/index.html is the same file as http://saxon.sourceforge.net/index.html
The rule that two calls on document() supplying the same absolute URI will return the same document node is defined in the XSLT spec, and most processors are likely to implement it using some kind of mapping table from URIs to nodes. In Saxon this is referred to as the "document pool".
Saxon doesn't include the initial input document in the document pool. There is no requirement in the XSLT spec that says it should, though I think there is also no requirement that prevents it, in those cases where the absolute URI is known. If you want, you can add it yourself using ((Controller)transformer).getDocumentPool().add(x,y). You could also intercept the call on document() by means of a user-written URIResolver, which would be a more portable solution.
E. -- W. Eliot Kimber, eliot@xxxxxxxxxx Consultant, ISOGEN International
1016 La Posada Dr., Suite 240 Austin, TX 78752 Phone: 512.656.4139
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Identity of Documents Puz, Michael Kay | Thread | RE: [xsl] Identity of Documents Puz, Américo Albuquerque |
[xsl] How could I import a XSL dyna, Marcial Atienzar Nav | Date | Re: [xsl] How could I import a XSL , David Carlisle |
Month |