[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Behavior of document() Function with Empty String
Subject: Re: [xsl] Behavior of document() Function with Empty String From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: 17 Dec 2006 08:07:49 +0000 |
>>>>> "David" == David Carlisle <davidc@xxxxxxxxx> writes: David> document('') is a request to load the ml file at David> the relatve URI '' which is the current stylesheet, so long David> as the current stylesheet has base URI which allows the David> relative uri '' to be resolved (the stylesheet may nt have David> a uri if it has been constructed in memory. (Acually the David> RFC has some special rules about '' which might mean it David> could resolve to the current document even if that doesn't David> have a URI (I think) but I wouldn't rely on that. Which rule are you referring to? If you mean this (from page 31): if (R.path == "") then T.path = Base.path; This seems unambiguous to me, and therefore you can rely on it working, subject to the stylesheet having a base URI. Unfortunately, the latter condition is not required by XDM - I don't see any reason for this (in my implementation all documents have URIs, even in-memory ones), but there it is. I can't see any rule about '' when no base URI is defined. -- Colin Adams Preston Lancashire
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Behavior of document() Fu, David Carlisle | Thread | Re: [xsl] Behavior of document() Fu, David Carlisle |
Re: [xsl] Behavior of document() Fu, David Carlisle | Date | Re: [xsl] Behavior of document() Fu, David Carlisle |
Month |