[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] DocBook XMLschema in Visual Studio.Net
We had some success using "XMLSpy" to 'flatten' various flavours of DocBook DTD and then convert them into a usable XML Schema. Other tools may be able to do the same (maybe even VS.NET?). You could try manually adding a target namespace to the generated XSD if VS.NET can't handle elements defined in the 'no-namespace' namespace (this seems an odd restriction, though). You'll need to make appropriate mods to the stylesheets if you're using XSLT. After some experimentation we've reverted to DTD for simple edit-time validation because of better support in current generation editors. In particular I would check how/if you plan to use XML entities in your docs as with several editors these appear to be unusable in conjunction with an XSD. As far as I can see the XML Schema spec doesn't actually outlaw them, but I've not seen anyone recommending mixing the two. Rob. -----Original Message----- From: Jirka Kosek [mailto:jirka@kosek.cz] Sent: 01 April 2003 14:53 To: Kenneth Johansson Cc: DOCBOOK-APPS Subject: Re: [docbook-apps] DocBook XMLschema in Visual Studio.Net Kenneth Johansson wrote: > Developers here at Sectra are jumping up and down since they discovered DocBook and now they want to take it a step further by using DocBook for documenting sourcecode in Visual Studio.Net. However, they say it isn't possible to get runtime validation of the DocBook DTD in Visual Studio.Net, That's the lack of VS.NET. >but it is possible to use the XML Schema. XML schema for DocBook doesn't define target namespace. I think that VS.NET can't validate against schemas without target namespace. This might be problem. >What is the status of the DocBook XML Schema? If we use it in VS.Net, will it be possible to switch to the DocBook DTD for processing or are there compatibility issues between the two? I think that XML Schema is still experimental but dependency on XML schema should not affect processing tools as they usually didn't rely on validation. XML schema for DocBook is available in CVS repository at docbook.sourceforge.net. Jirka -- ----------------------------------------------------------------- Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]