Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » XML Catalog and Validation
XML Catalog and Validation [message #73454] Sat, 12 February 2005 05:05 Go to next message
Eclipse UserFriend
Hello,

I played with the XML Catalog facility of the latest milestone
release of WTP based on the "XMLExamples" project. I simply
followed the tutorial presented at

http://www.eclipse.org/webtools/testtutorials/M2/xml/XMLCata logTutorial.html

I follow the instructions and can use tag completion (typing "<"
and waiting for a list of available tag names). However, I am not
able to validate the document. The DTD example gives a "File not
found: ..." problem and the XSD examples tells me "Cannot find
declaration of element 'c:Catalogue'".

Franz
Re: XML Catalog and Validation [message #73824 is a reply to message #73454] Mon, 14 February 2005 14:35 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

I ran through the tutorial specified by the link with M2 and it worked
fine for me. Did you use the export and import functionality? There is a
note in the tutorial which talked about a bug with exporting the catalog.

If you're still having problems, please specify the steps you went through
to
encounter the problem.

thanks.
Richard


Franz Haeuslschmid wrote:

> Hello,

> I played with the XML Catalog facility of the latest milestone
> release of WTP based on the "XMLExamples" project. I simply
> followed the tutorial presented at

>
http://www.eclipse.org/webtools/testtutorials/M2/xml/XMLCata logTutorial.html

> I follow the instructions and can use tag completion (typing "<"
> and waiting for a list of available tag names). However, I am not
> able to validate the document. The DTD example gives a "File not
> found: ..." problem and the XSD examples tells me "Cannot find
> declaration of element 'c:Catalogue'".

> Franz
Re: XML Catalog and Validation [message #73895 is a reply to message #73824] Mon, 14 February 2005 16:35 Go to previous messageGo to next message
Eclipse UserFriend
rmah@ca.ibm.com (Richard Mah) writes:

> Hello,
>
> I ran through the tutorial specified by the link with M2 and it worked fine for
> Me. Did you use the export and import functionality? There is a note in the
> tutorial which talked about a bug with exporting the catalog.
Yes, I noticed the note. The problem is as usually sitting in
front of the screen. Another day and refreshed patience seem to
be helpful. However, there is still one thing that strikes me:

I created a catalog entry for the XML schema in the
PublicationCatalogue folder and performed the steps analogous to
the DTD example. Selecting the key type "Namespace Name" worked
well, it is the preset situation.

I use for the alternative key type the following details:

URI XMLExamples/PublicationCatalogue2/Catalogue.xsd
Key Type Schema Location
Key Catalogue.xsd

The value for the "Key" field seems reasonable to me, it
corresponds with the value specified by the xsi:schemaLocation
attribute of the document instance:

<c:Catalogue xmlns:c="http://www.eclipse.org/webtools/Catalogue"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.eclipse.org/webtools/Catalogue Catalogue.xsd">
....
</c:Catalogue>


Thanks,
Franz.
Re: XML Catalog and Validation [message #73932 is a reply to message #73895] Mon, 14 February 2005 23:22 Go to previous messageGo to next message
Eclipse UserFriend
Franz Haeuslschmid wrote:

> I use for the alternative key type the following details:

> URI XMLExamples/PublicationCatalogue2/Catalogue.xsd
> Key Type Schema Location
> Key Catalogue.xsd

> The value for the "Key" field seems reasonable to me, it
> corresponds with the value specified by the xsi:schemaLocation
> attribute of the document instance:

Franz,

We currently have a limitation in our catalog that prevents the use of a
'base name' as a schema location key. Things should work fine if the
schema location is a fully qualified name (e.g.
'http://example.org/myschemas/Catalogue.xsd'). In most cases where keying
by location is useful the location will in fact be some remote URL. In
general if you're designing your XML documents to work with schemas in an
XML Catalog (and you want to key by location) I'd encourage you to use a
fully qualified schema location.

Please open a bugzilla bug for this case. We should either support using
a 'base name' as a key or we should provide error feedback in the UI when
the catalog entry is defined.

I hope that helps clarify. Thanks for your feedback!
Re: XML Catalog and Validation [message #73985 is a reply to message #73932] Tue, 15 February 2005 03:46 Go to previous messageGo to next message
Eclipse UserFriend
csalter@ca.ibm.com (Craig Salter) writes:

> Please open a bugzilla bug for this case. We should either support using a
> 'base name' as a key or we should provide error feedback in the UI when the
> catalog entry is defined.
Bug report created with number 85221.

> I hope that helps clarify. Thanks for your feedback!
Yes, it does. I have to thank you for your efforts.

Franz.
Re: XML Catalog and Validation [message #77506 is a reply to message #73824] Sat, 26 February 2005 16:30 Go to previous message
Eclipse UserFriend
Hello.

rmah@ca.ibm.com (Richard Mah) writes:
> I ran through the tutorial specified by the link with M2 and it worked fine for
> me. Did you use the export and import functionality? There is a note in the
> tutorial which talked about a bug with exporting the catalog.
>
> If you're still having problems, please specify the steps you went through to
> encounter the problem.

Since my last post, I found another cause that actually gave me
reason to post my original message. The project I wanted the XML
catalog to use for contained a space in its name. In order to
reproduce this situation, Once again, it is time to run through
the tutorial. This time, name the example project "XML Examples".
When the tutorial instructs you to validate the XML document, it
will fail.

This behaviour applies at least for the last milestone release
(M3) of the web tools platform.

Franz.
Previous Topic:Eclipse as JSP editor
Next Topic:JSP, security and MySQL
Goto Forum:
  


Current Time: Sun Nov 09 14:59:19 EST 2025

Powered by FUDForum. Page generated in 0.04150 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top