Re: [xml] mobile links for XInclude?



On Fri, Jun 20, 2003 at 10:33:18PM +0100, Ben Decker wrote:
variable location, and not a hard physical link. The situation is this: I have a filetree of interlinked 
XML file and I 

  There is no such definition as a "physical link" in the whole set of 
specifications related to XML or the Web.

would like to move the whole filetree to a different location. Would something like this ever be possible:



<xi:include href="$XMLDATA/program/python.xml#xpointer(//python/libs)" parse="xml"

  No. The href attribute content is an URI Reference as defined in RFC 2396.
So far this has been sufficient to build the Web, that should be sufficient
for XInclude. Use relative URI reference or HTTP redirects.
  If you really want to make something not portable and are ready to
design something that broken, then you can define your own entity handler
at the libxml2 level
   http://xmlsoft.org/xmlio.html#entities

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]