XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Roger ShuttleworthSubject: Converting DTD to XSD with the Wizard
Author: Roger Shuttleworth
Date: 30 Jul 2004 05:25 PM
Trying to convert DocBook XML DTD 4.3 to schema using the document wizard.

All I get is the two-liner below:

<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
</xsd:schema>

I read a message that said that the encoding must be UTF-8, so I used Notepad to
change the encoding of every file in DocBook, including the ISO entity
files (a total of about 30 files!). No luck. Still get the same result.

What am I missing?

Roger Shuttleworth

Postnext
Ivan PedruzziSubject: Converting DTD to XSD with the Wizard
Author: Ivan Pedruzzi
Date: 30 Jul 2004 05:58 PM

Hi Roger,

DocBook is also available as XML Schema here http://www.docbook.org/xsd/4.3/

For your information changing the encoding PI doesn't change the file encoding.
Notepad doesn't know anything about XML. You have to use a XML Rditor like Stylus to change the encoding (Edit -> Change Encoding)

Hope this helps
Ivan

Postnext
Roger ShuttleworthSubject: Converting DTD to XSD with the Wizard
Author: Roger Shuttleworth
Date: 01 Aug 2004 08:20 PM
Hi Ivan

Thanks for your reply. I kinda thought that DocBook was available as schema
but couldn't find it.

I will try the encoding change that you mention (though I am away on
vacation next week 8^). It wasn't a processing instruction I changed -
at least, not it an XML file. I opened in Notepad, then did a Save As.
changing the encoding selection to UTF-8. If that doesn't change it in the file,
what is the option there for?

Posttop
Ivan PedruzziSubject: Converting DTD to XSD with the Wizard
Author: Ivan Pedruzzi
Date: 01 Aug 2004 11:33 PM
Roger,

<?xml version="1.0" encoding="UTF-8"?>

Above you can see an example of XML PI that defines the XML version and the character encoding.
If the XML PI is missing the encoding is assumed to be UTF-8.
The encoding PI has to be in synch with the file encoding other ways you end up with an invalid XML document.
Change encoding should always be done with XML aware tools.

Hope this helps
Ivan




 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.