Re: [xslt] how to avoid lots of xmlns:xi and still get a valid doc



Daniel Veillard ha scritto:
On Tue, Aug 21, 2007 at 11:48:50AM +0200, Francesco Montorsi wrote:
Any hint?

  Update your DocBook DTD, this was supposed to be fixed there, by allowing
the namespace dclarations for XInclude on at least some elements.
I did that but alone it didn't help.

But still I've found the solution thanks to Thomas Schraitle; I'll report it here for benefit of others interested:

> ---------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
>                       "http://www.docbook.org/xml/4.4/docbookx.dtd";
> [
>   <!ENTITY % local.common.attrib
>   "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2001/XInclude'">
> ]>
> <book xmlns:xi="http://www.w3.org/2001/XInclude";>
>  <!-- ... -->
>  <xi:include .../>
> </book>
> ---------------------------------------------
>
> This inserts the xmlns:xi attribute into *every* element. If you want it only
> for book, replace "local.common.attrib" with "local.book.attrib".

Thanks anyway!
Francesco




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