On Thu, Feb 03, 2005 at 01:22:34AM +0100, Panard wrote:
> Hi,
> 
>       I've got the following problem :
> 
> === x1.xml ===
> <?xml version="1.0"?>
> <!DOCTYPE foo SYSTEM "foo.dtd">
> <foo>
>         <element>x1</element>
>         <xi:include href="x2.xml"/>
> </foo>
> 
> === x2.xml ===
> <?xml version="1.0"?>
> <!DOCTYPE foo SYSTEM "foo.dtd">
> <foo>
>         <element>x2</element>
> </foo>
> 
> === foo.dtd ===
> <!ELEMENT xi:include (xi:fallback?) >
> <!ATTLIST xi:include
>     xmlns:xi   CDATA       #FIXED    "http://www.w3.org/2001/XInclude";
>     href       CDATA       #REQUIRED
>     parse      (xml|text)  "xml"
>     encoding   CDATA       #IMPLIED >
> 
> <!ELEMENT xi:fallback ANY>
> <!ATTLIST xi:fallback
>     xmlns:xi   CDATA   #FIXED   "http://www.w3.org/2001/XInclude"; >
> 
> <!ELEMENT foo (element|xi:include|foo)*>
> 
> <!ELEMENT element (#PCDATA)>
> <!ATTLIST element
>         attr    CDATA   "default"
> >
> 
> =================
> 
> When running :
> $ xmllint --dtdattr --postvalid --xinclude x1.xml
> <?xml version="1.0"?>
> <!DOCTYPE foo SYSTEM "foo.dtd">
> <foo>
>         <element attr="default">x1</element>
>         <foo>
>         <element>x2</element>
> </foo>
> </foo>
> 
> 
> The x2.xml is correctly included, but why its element 'element' doesn't have 
> the default value for attribute 'attr' ? Is there a way to do that ?

  bugzilla this, it looks like flags not passed down to the XInclude processor.

    thanks,

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to