W3C home > Mailing lists > Public > www-dom-ts@w3.org > June 2001

SV: xlink:form in DOM Level 1 XML sources

From: Dimitris Dimitriadis <dimitris.dimitriadis@improve.se>
Date: Tue, 19 Jun 2001 11:26:56 +0200
Message-ID: <9F67DC27F4CCD311ABA600508B6A66A44A6877@VXOIMP1>
To: "'Philippe Le Hegaret'" <plh@w3.org>, www-dom-ts@w3.org
Hi Philippe 

Thanks for the tips. However, It's not only XML Spy that doesn't manage to
resolve the xlink. The same happens when I use Xerces.

I'll use your dummy declarations and hope it works.

/Dimitris

-----Ursprungligt meddelande-----
Från: Philippe Le Hegaret [mailto:plh@w3.org]
Skickat: den 18 juni 2001 20:32
Till: www-dom-ts@w3.org
Ämne: xlink:form in DOM Level 1 XML sources



Dimitris has troubles in generating the XML schemas using
XML spy. The software returns an error on xlink:form.
The xlink:form attribute is defined in the spec.dtd file and the
prefix is in fact not mapped. I guess the reason is the date of
the document (1998) and it was based on a early version of Xlink.
The namespace name in the March 1998 draft of XLink wasn't defined
yet (and the namespace spec wasn't a recommendation at that time).

I recommend to not activate the namespace resolution when you try
to read the DOM Level 1 XML sources. If you cannot desactivate
namespaces support in your software, the better work around is to
add a fake namespace in the DTD such as:

<!ENTITY % fake-xlink.att
        'xmlns:xlink            CDATA   #FIXED
                                        "http://www.example.org/1998/xlink"
'>
        
<!ENTITY % href.att
        '%fake-xlink.att;
        xlink:form             CDATA           #IMPLIED
        href                    CDATA           #IMPLIED
        show                    CDATA           #FIXED "embed"
        actuate                 CDATA           #FIXED "auto" '>

<!ENTITY % href-req.att
        '%fake-xlink.att;
        xlink:form             CDATA           #FIXED "simple"
        href                    CDATA           #REQUIRED
        show                    CDATA           #FIXED "embed"
        actuate                 CDATA           #FIXED "auto" '>

<!ENTITY % source-req.att
        '%fake-xlink.att;
        xlink:form             CDATA           #FIXED "simple"
        xml:attributes          NMTOKENS        #FIXED "href source"
        source                  CDATA           #REQUIRED
        show                    CDATA           #FIXED "embed"
        actuate                 CDATA           #FIXED "auto" '>


Philippe
Received on Tuesday, 19 June 2001 05:27:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:44 GMT