Re: [xmlc] Problem using WML 1.3 DTD

Jacob Kjome <[email protected]> Wed, 27 Jul 2005 23:59:46 -0500
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
It looks like their DTD is invalid.  Here's the offending declaration...

<!ATTLIST pre
   xml:space        CDATA       #FIXED    "preserve"
   %coreattrs;
 >

Here's what it should be..

<!ATTLIST pre
   xml:space (default|preserve) 'preserve'
   %coreattrs;
 >
OR (probably more to what they were trying to get at)
<!ATTLIST pre
   xml:space (preserve) #FIXED 'preserve'
   %coreattrs;
 >

See:
http://www.w3.org/XML/xml-19980210-errata#E81
http://www.w3.org/TR/2000/REC-xml-20001006#sec-white-space
http://www.javacommerce.com/displaypage.jsp?name=whitespa.sql&id=18238

It's the CDATA that's incorrect.  I've modified this in the local copy 
distributed with XMLC (just checked in).  Can you try it out?


Jake

At 03:40 PM 7/27/2005 -0500, you wrote:
 >Since we don't store the WML 1.3 dtd local (only the 1.1 dtd), XMLC should be
 >downloading a validating against the dtd you are specifying.  To double check
 >this, try going offline and try to compile.  It should fail saying it can't
 >access the DTD.  If not, then something weird is going on.  If so, then it is
 >possible that XMLC's version of Xerces (1.4.4, I think) doesn't 
understand the
 >DTD.  I can try it when i get home.  I can also add the 1.3 dtd to 2.2.7 so
 >that compiles can occur without being connected to the internet.
 >
 >Jake
 >
 >Quoting Justin Akehurst <[email protected]>:
 >
 >> I am trying to compile this WML document, with XMLC 2.2.7 pre-release
 >> (built from HEAD)
 >>
 >> <?xml version="1.0" encoding="UTF-8"?>
 >> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
 >>    "http://www.wapforum.org/DTD/wml13.dtd">
 >> <wml>
 >>   <card title="Tone Content List">
 >>       <p id="toneContentList">
 >>         <a href="" id="toneLink">Tone Description</a><br id="br"/>
 >>         <a class="mockup" href="">Tone 1</a><br class="mockup"/>
 >>         <a class="mockup" href="">Tone 2</a>
 >>       </p>
 >>   </card>
 >> </wml>
 >>
 >> I get this error:
 >>
 >> org.xml.sax.SAXException: Stopping after fatal error: The attribute
 >> declaration for "xml:space" must be given as an enumerated type whose
 >> only possible values are "default" and "preserve".
 >>
 >> If I validate the document against the DTD by hand, it validates cleanly.
 >>
 >> Is there a way I can use the wml1.3 dtd with XMLC?
 >>
 >> -Justin
 >>
 >>
 >
 >
 >
 >
 >
 >--
 >You receive this message as a subscriber of the [email protected] mailing
 >list.
 >To unsubscribe: mailto:[email protected]
 >For general help: mailto:[email protected]?subject=help
 >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
message-footer.txt (text/plain, 269 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws