- From: Konrad Lanz <Konrad.Lanz@iaik.tugraz.at>
- Date: Wed, 31 May 2006 15:00:05 +0200
- To: public-xml-core-wg@w3.org
- Message-ID: <447D9355.9040606@iaik.tugraz.at>
> > That is illegal: xinclude hrefs must not have fragment identifiers. > You use the xpointer attribute to specify a fragment of the > target document. So fragments won't come into it when doing > xml:base fixup for xinclude. You are right --> example updated. Btw. I did not have a lot of time to construct this example, so I had to make some more corrections. I hope it is now more understandable. However the point I was trying to make was that the "Base URI Fixup" (http://www.w3.org/TR/xinclude/#base) should also work for parts of documents. chap01.xml: <book xmlns="http://docbook.org/docbook-ng" version="ipa"> <title id="c1-top">My Book</title> <chapter id="c1-start" version="ipa"> <title>My Chapter</title> <para>This is my chapter.</para> <mediaobject> <imageobject> <imagedata fileref="picture.png"/> </imageobject> </mediaobject> <unlink uri="#c1-top">Included from here</ulink> <unlink uri="#">Source File</ulink> </chapter> </book> <book xmlns="http://docbook.org/docbook-ng" xmlns:xi="http://www.w3.org/2001/XInclude" version="ipa"> <title id="b-top">My Book</title> <xi:include href="chapters/chap01.xml" xpointer="c1-start"/> </book> <book xmlns="http://docbook.org/docbook-ng" xmlns:xi="http://www.w3.org/2001/XInclude" version="ipa"> <title id="b-top">My Book</title> <chapter xmlns="http://docbook.org/docbook-ng" version="ipa" xml:base="chapters/chap01.xml"> <title>My Chapter</title> <para>This is my chapter.</para> <mediaobject> <imageobject> <imagedata fileref="picture.png"/> </imageobject> </mediaobject> <unlink uri="#c1-top">Included from here</ulink> <unlink uri="#">Source File</ulink> </chapter> </book> -- Konrad Lanz, IAIK/SIC - Graz University of Technology Inffeldgasse 16a, 8010 Graz, Austria Tel: +43 316 873 5547 Fax: +43 316 873 5520 https://www.iaik.tugraz.at/aboutus/people/lanz http://jce.iaik.tugraz.at Certificate chain (including the EuroPKI root certificate): https://europki.iaik.at/ca/europki-at/cert_download.htm -- Konrad Lanz, IAIK/SIC - Graz University of Technology Inffeldgasse 16a, 8010 Graz, Austria Tel: +43 316 873 5547 Fax: +43 316 873 5520 https://www.iaik.tugraz.at/aboutus/people/lanz http://jce.iaik.tugraz.at Certificate chain (including the EuroPKI root certificate): https://europki.iaik.at/ca/europki-at/cert_download.htm
Received on Wednesday, 31 May 2006 15:03:05 UTC