Ok, that seems straight forward enough.  Do you folks generally recommend
one scheme over another? When I was first looking at the system I thought
it was interesting that I could load a document under a path like

  http://hostname.domain.org/fu/bar

or

  file:/fu/bar

Is using one form or the other likely to cause trouble?
 
> fn:base-uri() just returns you the most immediate encoding value of
> xml:base, or if there is none, the URI under which the document is stored.
> There is no requirement that it be an absolute URI or that it somehow be
> resolved to one if it isn't.  It is intended to be something you can
> use with resolve-uri, and it is certainly a bad idea to attempt to
> use it a relative base to resolve other relative URIs; and the specs say
> this is an error. (The algorithms in the RFC don't work in this case.)
> 
> MarkLogic Server preserves the invariant fn:base-uri( doc($x) ) = $x
> so that if you have "/a.xml" or "a.xml" the URI doesn't get munged to
> something else.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       [EMAIL PROTECTED]
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to