This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] DocBook XMLschema in Visual Studio.Net
- From: Jirka Kosek <jirka at kosek dot cz>
- To: "Wills, Robert" <Robert dot Wills at sts dot co dot uk>
- Cc: Kenneth Johansson <ke-joh at sectra dot se>, DOCBOOK-APPS <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 01 Apr 2003 17:08:43 +0200
- Subject: Re: [docbook-apps] DocBook XMLschema in Visual Studio.Net
- References: <B0B3EF6EA2E66F4F80D39E793B4095EC0219A8@wm2kswi560.sts.co.uk>
"Wills, Robert" wrote:
>
> 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
VS.NET uses target namespace to pick correct XSD from schema cache (all
schemas in current project are part of this cache). AFAIK XML editor in
VS.NET doesn't recognize xsi:schemaLocation and
xsi:noNamespaceSchemaLocation attributes. It's weird as XML parser in
.NET library handle these attributes.
> need to make appropriate mods to the stylesheets if you're using XSLT.
Dont't add namespace to your DocBook documents. Appropriate mods to
stylesheets means complete hassle. As XSLT doesn't have notation of
default namespace for XPath expression you will end up with modifying
several thousands of XPath expression in stylesheets.
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka at kosek dot cz
http://www.kosek.cz
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org