Re: [xml] Release of libxml2-2.4.28



On Fri, Nov 22, 2002 at 09:30:19PM +0300, Vitaly Ostanin wrote:
    * added encoding support for XInclude
    parse="text"

What encoding are supported ? 

When I try to build DocBook document with
<xi:include
href="doc-template.xml" parse="text"
encoding="windows-1251"
xmlns:xi="http://www.w3.org/2001/XInclude"/>

I get messages:
XInclude: encoding windows-1251 not supported
XInclude: could not load doc-template.xml, and no fallback was
found

  Hum, it's a limitation of the way I implemented it, currently
it's limited to the subset found in xmlCharEncoding in encoding.h,
there is no good reasons for it it was just an implementation convenience.

C.f. the comment around line 1166 in xinclude.c
        /*
         * TODO: we should not have to remap to the xmlCharEncoding
         *       predefined set, a better interface than
         *       xmlParserInputBufferCreateFilename should allow any
         *       encoding supported by iconv
         */


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]