Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XML Catalog for validating v2.4 web.xml
XML Catalog for validating v2.4 web.xml [message #78702] Tue, 01 March 2005 18:08 Go to next message
Christian Nelson is currently offline Christian NelsonFriend
Messages: 9
Registered: July 2009
Junior Member
I'm trying to set-up my XML catalog so that I can vallidate a v2.4 web.xml
without coonnection to the internet. I made some progress, but can't
quite get it all working.

Note: I've successfully added entries for spring-beans.dtd and
hibernate-mapping.dtd without any problems, so I don't think I've got an
installation problem.

This is what I did...

1) Added User Specified Entry:

URI: platform:/resource/DisputeEffectiveness/catalog/web-app_2_4. xsd
Key Type: Schema Location
Key: http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd

This worked... that is, it found the file. BUT, this .xsd requires two
other schemas: j2ee_1_4.xsd and jsp_2_0.xsd. Both of which are included
using:

<xsd:include schemaLocation="j2ee_1_4.xsd"/>
<xsd:include schemaLocation="jsp_2_0.xsd"/>

2) So I added the entries:

URI: platform:/resource/DisputeEffectiveness/catalog/j2ee_1_4.xsd
Key Type: Schema Location
Key: j2ee_1_4.xsd

URI: platform:/resource/DisputeEffectiveness/catalog/jsp_2_0.xsd
Key Type: Schema Location
Key: jsp_2_0.xsd

3) Now when validating web-app_2_4.xsd, it finds the dependent schemas,
but it turns out j2ee_1_4.xsd needs two more schemas to validate, so I add
the entries:

URI:
platform:/resource/DisputeEffectiveness/catalog/j2ee_web_ser vices_client_1_1.xsd
Key Type: Schema Location
Key: http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd

URI: platform:/resource/DisputeEffectiveness/catalog/xml.xsd
Key Type: Schema Location
Key: http://www.w3.org/2001/xml.xsd

4) Now, it can find all of the dependant schemas for j2ee_1_4.xsd, but
gets these errors when valildating j2ee_1_4.xsd:

s4s-elt-invalid-content.1: The content of 'descriptionType' is invalid.
Element 'attribute' is invalid, misplaced, or occurs too often. (Line 133)
src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute
declaration' component. (Line 133)
s4s-elt-invalid-content.1: The content of 'display-nameType' is invalid.
Element 'attribute' is invalid, misplaced, or occurs too often. (Line 179)
s4s-elt-invalid-content.1: The content of 'iconType' is invalid. Element
'attribute' is invalid, misplaced, or occurs too often. (Line 625)

The error happens three times, always on this content:

<xsd:attribute ref="xml:lang"/>

I've hit a wall here... what else do I need to do to start validating
these files against the catalog?

Thanks a million!
Christian
Re: XML Catalog for validating v2.4 web.xml [message #79439 is a reply to message #78702] Wed, 02 March 2005 20:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mborra.yahoo_senza_senza.com

Christian Nelson ha scritto:
[cut]
I have the same problem!
Re: XML Catalog for validating v2.4 web.xml [message #79510 is a reply to message #78702] Wed, 02 March 2005 21:11 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
I was able to get this working by "porting" portions of the XML Catalog from the original IBM contribution. I implemented this
as an a plugin which added the Catalog entries to the Plugin Specified Entries. The entries added were (beware of possible line
wraps):

<extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
<catalogContributor catalogId="tweaks">
<mappingInfo
key="datatypes"
uri="dtds/datatypes.dtd">
</mappingInfo>
<mappingInfo
key="-//W3C//DTD XMLSCHEMA 200102//EN"
uri="dtds/XMLSchema.dtd">
</mappingInfo>
<mappingInfo
key="-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
uri="dtds/web-app_2_2.dtd">
</mappingInfo>
<mappingInfo
key="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
uri="dtds/web-app_2_3.dtd">
</mappingInfo>
<mappingInfo
key="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
uri="dtds/web-jsptaglibrary_1_1.dtd">
</mappingInfo>
<mappingInfo
key="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
uri="dtds/web-jsptaglibrary_1_2.dtd">
</mappingInfo>
<mappingInfo
key="http://www.w3.org/2001/XMLSchema"
uri="xsds/XMLSchema.xsd">
</mappingInfo>
<mappingInfo
key="http://java.sun.com/xml/ns/j2ee/"
uri="xsds/j2ee_1_4.xsd">
</mappingInfo>
<mappingInfo
key="http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd"
uri="xsds/jsp_2_0.xsd">
</mappingInfo>
<mappingInfo
key="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
uri="xsds/web-app_2_4.xsd">
</mappingInfo>
<mappingInfo
key="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
uri="xsds/web-jsptaglibrary_2_0.xsd">
</mappingInfo>
</catalogContributor>
</extension>

In addition, xml.xsd and j2ee_web_services_client_1_1.xsd files were added to the "xsds" directory. A Catalog entry wasn't
required for these. Missing in your case may be the "datatypes" Catalog entry which is used by the XMLSchema.dtd. HTH.

Cheers,
Larry


Christian Nelson wrote:
> I'm trying to set-up my XML catalog so that I can vallidate a v2.4
> web.xml without coonnection to the internet. I made some progress, but
> can't quite get it all working.
>
> Note: I've successfully added entries for spring-beans.dtd and
> hibernate-mapping.dtd without any problems, so I don't think I've got an
> installation problem.
>
> This is what I did...
>
> 1) Added User Specified Entry:
>
> URI: platform:/resource/DisputeEffectiveness/catalog/web-app_2_4. xsd
> Key Type: Schema Location
> Key: http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
>
> This worked... that is, it found the file. BUT, this .xsd requires two
> other schemas: j2ee_1_4.xsd and jsp_2_0.xsd. Both of which are included
> using:
>
> <xsd:include schemaLocation="j2ee_1_4.xsd"/>
> <xsd:include schemaLocation="jsp_2_0.xsd"/>
>
> 2) So I added the entries:
>
> URI: platform:/resource/DisputeEffectiveness/catalog/j2ee_1_4.xsd
> Key Type: Schema Location
> Key: j2ee_1_4.xsd
>
> URI: platform:/resource/DisputeEffectiveness/catalog/jsp_2_0.xsd
> Key Type: Schema Location
> Key: jsp_2_0.xsd
>
> 3) Now when validating web-app_2_4.xsd, it finds the dependent schemas,
> but it turns out j2ee_1_4.xsd needs two more schemas to validate, so I
> add the entries:
>
> URI:
> platform:/resource/DisputeEffectiveness/catalog/j2ee_web_ser vices_client_1_1.xsd
>
> Key Type: Schema Location
> Key: http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd
>
> URI: platform:/resource/DisputeEffectiveness/catalog/xml.xsd
> Key Type: Schema Location
> Key: http://www.w3.org/2001/xml.xsd
>
> 4) Now, it can find all of the dependant schemas for j2ee_1_4.xsd, but
> gets these errors when valildating j2ee_1_4.xsd:
>
> s4s-elt-invalid-content.1: The content of 'descriptionType' is invalid.
> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
> 133)
> src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute
> declaration' component. (Line 133)
> s4s-elt-invalid-content.1: The content of 'display-nameType' is invalid.
> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
> 179)
> s4s-elt-invalid-content.1: The content of 'iconType' is invalid.
> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
> 625)
>
> The error happens three times, always on this content:
>
> <xsd:attribute ref="xml:lang"/>
>
> I've hit a wall here... what else do I need to do to start validating
> these files against the catalog?
>
> Thanks a million!
> Christian
>
Re: XML Catalog for validating v2.4 web.xml [message #80500 is a reply to message #78702] Sat, 05 March 2005 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jmordax.terra.es

Christian Nelson wrote:

> I'm trying to set-up my XML catalog so that I can vallidate a v2.4
> web.xml without coonnection to the internet. I made some progress,
> but can't quite get it all working.
>
> Note: I've successfully added entries for spring-beans.dtd and
> hibernate-mapping.dtd without any problems, so I don't think I've got
> an installation problem.
>
> This is what I did...
>
> 1) Added User Specified Entry:
>
> URI: platform:/resource/DisputeEffectiveness/catalog/web-app_2_4. xsd
> Key Type: Schema Location
> Key: http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
>
> This worked... that is, it found the file. BUT, this .xsd requires two
> other schemas: j2ee_1_4.xsd and jsp_2_0.xsd. Both of which are
> included using:
>
> <xsd:include schemaLocation="j2ee_1_4.xsd"/>
> <xsd:include schemaLocation="jsp_2_0.xsd"/>
>
> 2) So I added the entries:
>
> URI: platform:/resource/DisputeEffectiveness/catalog/j2ee_1_4.xsd
> Key Type: Schema Location
> Key: j2ee_1_4.xsd
>
> URI: platform:/resource/DisputeEffectiveness/catalog/jsp_2_0.xsd
> Key Type: Schema Location
> Key: jsp_2_0.xsd
>
> 3) Now when validating web-app_2_4.xsd, it finds the dependent
> schemas, but it turns out j2ee_1_4.xsd needs two more schemas to
> validate, so I add the entries:
>
> URI:
> platform:/resource/DisputeEffectiveness/catalog/j2ee_web_ser vices_client_1_1.xsd
>
> Key Type: Schema Location
> Key: http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd
>
> URI: platform:/resource/DisputeEffectiveness/catalog/xml.xsd
> Key Type: Schema Location
> Key: http://www.w3.org/2001/xml.xsd
>
> 4) Now, it can find all of the dependant schemas for j2ee_1_4.xsd, but
> gets these errors when valildating j2ee_1_4.xsd:
>
> s4s-elt-invalid-content.1: The content of 'descriptionType' is
> invalid. Element 'attribute' is invalid, misplaced, or occurs too
> often. (Line 133)
> src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute
> declaration' component. (Line 133)
> s4s-elt-invalid-content.1: The content of 'display-nameType' is
> invalid. Element 'attribute' is invalid, misplaced, or occurs too
> often. (Line 179)
> s4s-elt-invalid-content.1: The content of 'iconType' is invalid.
> Element 'attribute' is invalid, misplaced, or occurs too often.
> (Line 625)
>
> The error happens three times, always on this content:
>
> <xsd:attribute ref="xml:lang"/>
>
> I've hit a wall here... what else do I need to do to start validating
> these files against the catalog?
>
> Thanks a million!
> Christian

I think it is related to this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=82261

Regards,

Chemi.
Re: XML Catalog for validating v2.4 web.xml [message #81795 is a reply to message #79510] Thu, 10 March 2005 08:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andrej.krevl.guest.arnes.si

Larry Isaacs wrote:
> I was able to get this working by "porting" portions of the XML Catalog
> from the original IBM contribution. I implemented this as an a plugin
> which added the Catalog entries to the Plugin Specified Entries. The
> entries added were (beware of possible line wraps):
>
> <extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
> <catalogContributor catalogId="tweaks">
> <mappingInfo
> key="datatypes"
> uri="dtds/datatypes.dtd">
> </mappingInfo>

*snip*

I'm having trouble adding this entries to XML Catalog. Could you please
tell me which plugin you used to get this settings applyed.

Thank you,
andrej.
Re: XML Catalog for validating v2.4 web.xml [message #82013 is a reply to message #81795] Thu, 10 March 2005 14:31 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
The manual way to set these as User Specified Entries is with Window ->
Preferences -> Web and XML -> XML Catalog. I chose to create my own
plug-in and add them to the Plugin Specified Entries using the
catalogContributor extension point. Only a plain blank plugin is
needed. I had to manually edit the plugin.xml to make these changes.

Cheers,
Larry

Andrej Krevl wrote:
> Larry Isaacs wrote:
>
>> I was able to get this working by "porting" portions of the XML
>> Catalog from the original IBM contribution. I implemented this as an
>> a plugin which added the Catalog entries to the Plugin Specified
>> Entries. The entries added were (beware of possible line wraps):
>>
>> <extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
>> <catalogContributor catalogId="tweaks">
>> <mappingInfo
>> key="datatypes"
>> uri="dtds/datatypes.dtd">
>> </mappingInfo>
>
>
> *snip*
>
> I'm having trouble adding this entries to XML Catalog. Could you please
> tell me which plugin you used to get this settings applyed.
>
> Thank you,
> andrej.
Re: XML Catalog for validating v2.4 web.xml [message #82373 is a reply to message #80500] Fri, 11 March 2005 06:12 Go to previous messageGo to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Chemi wrote:

> Christian Nelson wrote:

> I think it is related to this bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=82261

Yes, it's related. Take a look at the 'org.eclipse.jst.j2ee' plugin.xml
and you'll see a chunk of catalog contributions that've been commented.
These list all of the xsd and dtd files you might need. Depending on what
level of J2EE your using you'll only need the dtd's or xsd's. At least
this should help you understand the full set of xsd's or dtd's required
and where you can grab 'em from the web. If you create an 'xsds'
directory under the 'org.eclipse.jst.j2ee' plugin, you can just copy all
of the schemas there, and then uncomment the catalog mappings ... and
things should start working as you would like.


hope that helps!

craig
Re: XML Catalog for validating v2.4 web.xml [message #83687 is a reply to message #79510] Tue, 15 March 2005 12:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sameh.elsayed.gmail.com

the problem is where i can get the targeted xsd files you refrenced in
your solution -to copy it local-, i can't find
j2ee_web_services_client_1_1.xsd ,
and do i need to copy and past your added mappings to the plugin.xml file
only because i found this part is commneted in the original plugin.xml
file,
and i found that it's a posted bug in the curent system.

thnx
sameh



Larry Isaacs wrote:

> I was able to get this working by "porting" portions of the XML Catalog from
the original IBM contribution. I implemented this
> as an a plugin which added the Catalog entries to the Plugin Specified
Entries. The entries added were (beware of possible line
> wraps):

> <extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
> <catalogContributor catalogId="tweaks">
> <mappingInfo
> key="datatypes"
> uri="dtds/datatypes.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//W3C//DTD XMLSCHEMA 200102//EN"
> uri="dtds/XMLSchema.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> uri="dtds/web-app_2_2.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> uri="dtds/web-app_2_3.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
> uri="dtds/web-jsptaglibrary_1_1.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
> uri="dtds/web-jsptaglibrary_1_2.dtd">
> </mappingInfo>
> <mappingInfo
> key="http://www.w3.org/2001/XMLSchema"
> uri="xsds/XMLSchema.xsd">
> </mappingInfo>
> <mappingInfo
> key="http://java.sun.com/xml/ns/j2ee/"
> uri="xsds/j2ee_1_4.xsd">
> </mappingInfo>
> <mappingInfo
> key="http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd"
> uri="xsds/jsp_2_0.xsd">
> </mappingInfo>
> <mappingInfo
> key="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> uri="xsds/web-app_2_4.xsd">
> </mappingInfo>
> <mappingInfo
>
key="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
> uri="xsds/web-jsptaglibrary_2_0.xsd">
> </mappingInfo>
> </catalogContributor>
> </extension>

> In addition, xml.xsd and j2ee_web_services_client_1_1.xsd files were added
to the "xsds" directory. A Catalog entry wasn't
> required for these. Missing in your case may be the "datatypes" Catalog
entry which is used by the XMLSchema.dtd. HTH.

> Cheers,
> Larry


> Christian Nelson wrote:
>> I'm trying to set-up my XML catalog so that I can vallidate a v2.4
>> web.xml without coonnection to the internet. I made some progress, but
>> can't quite get it all working.
>>
>> Note: I've successfully added entries for spring-beans.dtd and
>> hibernate-mapping.dtd without any problems, so I don't think I've got an
>> installation problem.
>>
>> This is what I did...
>>
>> 1) Added User Specified Entry:
>>
>> URI: platform:/resource/DisputeEffectiveness/catalog/web-app_2_4. xsd
>> Key Type: Schema Location
>> Key: http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
>>
>> This worked... that is, it found the file. BUT, this .xsd requires two
>> other schemas: j2ee_1_4.xsd and jsp_2_0.xsd. Both of which are included
>> using:
>>
>> <xsd:include schemaLocation="j2ee_1_4.xsd"/>
>> <xsd:include schemaLocation="jsp_2_0.xsd"/>
>>
>> 2) So I added the entries:
>>
>> URI: platform:/resource/DisputeEffectiveness/catalog/j2ee_1_4.xsd
>> Key Type: Schema Location
>> Key: j2ee_1_4.xsd
>>
>> URI: platform:/resource/DisputeEffectiveness/catalog/jsp_2_0.xsd
>> Key Type: Schema Location
>> Key: jsp_2_0.xsd
>>
>> 3) Now when validating web-app_2_4.xsd, it finds the dependent schemas,
>> but it turns out j2ee_1_4.xsd needs two more schemas to validate, so I
>> add the entries:
>>
>> URI:
>>
platform:/resource/DisputeEffectiveness/catalog/j2ee_web_ser vices_client_1_1.xsd
>>
>> Key Type: Schema Location
>> Key: http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd
>>
>> URI: platform:/resource/DisputeEffectiveness/catalog/xml.xsd
>> Key Type: Schema Location
>> Key: http://www.w3.org/2001/xml.xsd
>>
>> 4) Now, it can find all of the dependant schemas for j2ee_1_4.xsd, but
>> gets these errors when valildating j2ee_1_4.xsd:
>>
>> s4s-elt-invalid-content.1: The content of 'descriptionType' is invalid.
>> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
>> 133)
>> src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute
>> declaration' component. (Line 133)
>> s4s-elt-invalid-content.1: The content of 'display-nameType' is invalid.
>> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
>> 179)
>> s4s-elt-invalid-content.1: The content of 'iconType' is invalid.
>> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
>> 625)
>>
>> The error happens three times, always on this content:
>>
>> <xsd:attribute ref="xml:lang"/>
>>
>> I've hit a wall here... what else do I need to do to start validating
>> these files against the catalog?
>>
>> Thanks a million!
>> Christian
>>
Re: XML Catalog for validating v2.4 web.xml [message #83893 is a reply to message #82373] Tue, 15 March 2005 17:26 Go to previous messageGo to next message
Juan Jimenez is currently offline Juan JimenezFriend
Messages: 15
Registered: July 2009
Junior Member
Craig Salter wrote:

> Chemi wrote:
>
>> Christian Nelson wrote:
>
>
>> I think it is related to this bug:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=82261
>
>
> Yes, it's related. Take a look at the 'org.eclipse.jst.j2ee' plugin.xml
> and you'll see a chunk of catalog contributions that've been commented.
> These list all of the xsd and dtd files you might need. Depending on
> what level of J2EE your using you'll only need the dtd's or xsd's. At
> least this should help you understand the full set of xsd's or dtd's
> required and where you can grab 'em from the web. If you create an
> 'xsds' directory under the 'org.eclipse.jst.j2ee' plugin, you can just
> copy all of the schemas there, and then uncomment the catalog mappings
> ... and things should start working as you would like.
>
>
> hope that helps!
>
> craig
>
>
Maybe, maybe not. This is what I did but it doesn't work:

1) create a folder 'xsds' under plugins\org.eclipse.jst.j2ee_1.0.0

2) copied file from

http://svn.controlhaus.org/ejb/trunk/schema/j2ee_web_service s_client_1_1.xsd?rev=159

to that xsds folder just created

3) added the following:

<extension point="com.ibm.etools.xmlcatalog.catalogContributor">
<catalogContributor catalogId="default">
<mappingInfo

key=" http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd"
uri="xsds/j2ee_web_services_client_1_1.xsd">
</mappingInfo>
</catalogContributor>
</extension>

to plugins\org.eclipse.jst.j2ee_1.0.0\plugin.xml

4) Restarted eclipse with -clean switch


Is the file wrong or have I used the wrong procedure to make it visible
to eclipse?? If the file is wrong, where can I get a good one from?

Thanks
Re: XML Catalog for validating v2.4 web.xml [message #84156 is a reply to message #79510] Wed, 16 March 2005 12:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sameh.elsayed.gmail.com

i did this and it didn't work !!!!!!!!!!!!?,
1- copied all the dtds and xsds from the net loclly to the dtds and xsds
dirs in the ../plugins/org.eclipse.jst.j2ee_1.0.0/dtds and xsds
2- changed the mapping in the plugin.xml file in the dir
../plugins/org.eclipse.jst.j2ee_1.0.0/
3- started eclipse with -clean
and the problem is the same !!!!!!!!!? ,

thnx
sameh


Larry Isaacs wrote:

> I was able to get this working by "porting" portions of the XML Catalog from
the original IBM contribution. I implemented this
> as an a plugin which added the Catalog entries to the Plugin Specified
Entries. The entries added were (beware of possible line
> wraps):

> <extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
> <catalogContributor catalogId="tweaks">
> <mappingInfo
> key="datatypes"
> uri="dtds/datatypes.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//W3C//DTD XMLSCHEMA 200102//EN"
> uri="dtds/XMLSchema.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> uri="dtds/web-app_2_2.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> uri="dtds/web-app_2_3.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
> uri="dtds/web-jsptaglibrary_1_1.dtd">
> </mappingInfo>
> <mappingInfo
> key="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
> uri="dtds/web-jsptaglibrary_1_2.dtd">
> </mappingInfo>
> <mappingInfo
> key="http://www.w3.org/2001/XMLSchema"
> uri="xsds/XMLSchema.xsd">
> </mappingInfo>
> <mappingInfo
> key="http://java.sun.com/xml/ns/j2ee/"
> uri="xsds/j2ee_1_4.xsd">
> </mappingInfo>
> <mappingInfo
> key="http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd"
> uri="xsds/jsp_2_0.xsd">
> </mappingInfo>
> <mappingInfo
> key="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> uri="xsds/web-app_2_4.xsd">
> </mappingInfo>
> <mappingInfo
>
key="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
> uri="xsds/web-jsptaglibrary_2_0.xsd">
> </mappingInfo>
> </catalogContributor>
> </extension>

> In addition, xml.xsd and j2ee_web_services_client_1_1.xsd files were added
to the "xsds" directory. A Catalog entry wasn't
> required for these. Missing in your case may be the "datatypes" Catalog
entry which is used by the XMLSchema.dtd. HTH.

> Cheers,
> Larry


> Christian Nelson wrote:
>> I'm trying to set-up my XML catalog so that I can vallidate a v2.4
>> web.xml without coonnection to the internet. I made some progress, but
>> can't quite get it all working.
>>
>> Note: I've successfully added entries for spring-beans.dtd and
>> hibernate-mapping.dtd without any problems, so I don't think I've got an
>> installation problem.
>>
>> This is what I did...
>>
>> 1) Added User Specified Entry:
>>
>> URI: platform:/resource/DisputeEffectiveness/catalog/web-app_2_4. xsd
>> Key Type: Schema Location
>> Key: http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
>>
>> This worked... that is, it found the file. BUT, this .xsd requires two
>> other schemas: j2ee_1_4.xsd and jsp_2_0.xsd. Both of which are included
>> using:
>>
>> <xsd:include schemaLocation="j2ee_1_4.xsd"/>
>> <xsd:include schemaLocation="jsp_2_0.xsd"/>
>>
>> 2) So I added the entries:
>>
>> URI: platform:/resource/DisputeEffectiveness/catalog/j2ee_1_4.xsd
>> Key Type: Schema Location
>> Key: j2ee_1_4.xsd
>>
>> URI: platform:/resource/DisputeEffectiveness/catalog/jsp_2_0.xsd
>> Key Type: Schema Location
>> Key: jsp_2_0.xsd
>>
>> 3) Now when validating web-app_2_4.xsd, it finds the dependent schemas,
>> but it turns out j2ee_1_4.xsd needs two more schemas to validate, so I
>> add the entries:
>>
>> URI:
>>
platform:/resource/DisputeEffectiveness/catalog/j2ee_web_ser vices_client_1_1.xsd
>>
>> Key Type: Schema Location
>> Key: http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd
>>
>> URI: platform:/resource/DisputeEffectiveness/catalog/xml.xsd
>> Key Type: Schema Location
>> Key: http://www.w3.org/2001/xml.xsd
>>
>> 4) Now, it can find all of the dependant schemas for j2ee_1_4.xsd, but
>> gets these errors when valildating j2ee_1_4.xsd:
>>
>> s4s-elt-invalid-content.1: The content of 'descriptionType' is invalid.
>> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
>> 133)
>> src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute
>> declaration' component. (Line 133)
>> s4s-elt-invalid-content.1: The content of 'display-nameType' is invalid.
>> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
>> 179)
>> s4s-elt-invalid-content.1: The content of 'iconType' is invalid.
>> Element 'attribute' is invalid, misplaced, or occurs too often. (Line
>> 625)
>>
>> The error happens three times, always on this content:
>>
>> <xsd:attribute ref="xml:lang"/>
>>
>> I've hit a wall here... what else do I need to do to start validating
>> these files against the catalog?
>>
>> Thanks a million!
>> Christian
>>
Re: XML Catalog for validating v2.4 web.xml [message #84292 is a reply to message #83893] Wed, 16 March 2005 15:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jose.herreros.panel.es

Ok... please, another site for download the .xsd files?

Thanks

Juan Jimenez wrote:

> Craig Salter wrote:
>
>> Chemi wrote:
>>
>>> Christian Nelson wrote:
>>
>>
>>
>>> I think it is related to this bug:
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=82261
>>
>>
>>
>> Yes, it's related. Take a look at the 'org.eclipse.jst.j2ee'
>> plugin.xml and you'll see a chunk of catalog contributions that've
>> been commented. These list all of the xsd and dtd files you might
>> need. Depending on what level of J2EE your using you'll only need the
>> dtd's or xsd's. At least this should help you understand the full set
>> of xsd's or dtd's required and where you can grab 'em from the web.
>> If you create an 'xsds' directory under the 'org.eclipse.jst.j2ee'
>> plugin, you can just copy all of the schemas there, and then uncomment
>> the catalog mappings ... and things should start working as you would
>> like.
>>
>>
>> hope that helps!
>>
>> craig
>>
>>
> Maybe, maybe not. This is what I did but it doesn't work:
>
> 1) create a folder 'xsds' under plugins\org.eclipse.jst.j2ee_1.0.0
>
> 2) copied file from
>
> http://svn.controlhaus.org/ejb/trunk/schema/j2ee_web_service s_client_1_1.xsd?rev=159
>
>
> to that xsds folder just created
>
> 3) added the following:
>
> <extension point="com.ibm.etools.xmlcatalog.catalogContributor">
> <catalogContributor catalogId="default">
> <mappingInfo
>
> key=" http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd"
> uri="xsds/j2ee_web_services_client_1_1.xsd">
> </mappingInfo>
> </catalogContributor>
> </extension>
>
> to plugins\org.eclipse.jst.j2ee_1.0.0\plugin.xml
>
> 4) Restarted eclipse with -clean switch
>
>
> Is the file wrong or have I used the wrong procedure to make it visible
> to eclipse?? If the file is wrong, where can I get a good one from?
>
> Thanks
Re: XML Catalog for validating v2.4 web.xml [message #84352 is a reply to message #83893] Wed, 16 March 2005 17:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jose.herreros.panel.es

Maybe the thread "Enable to create any WTP project!" it can be helpful.

Juan Jimenez wrote:

> Craig Salter wrote:
>
>> Chemi wrote:
>>
>>> Christian Nelson wrote:
>>
>>
>>
>>> I think it is related to this bug:
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=82261
>>
>>
>>
>> Yes, it's related. Take a look at the 'org.eclipse.jst.j2ee'
>> plugin.xml and you'll see a chunk of catalog contributions that've
>> been commented. These list all of the xsd and dtd files you might
>> need. Depending on what level of J2EE your using you'll only need the
>> dtd's or xsd's. At least this should help you understand the full set
>> of xsd's or dtd's required and where you can grab 'em from the web.
>> If you create an 'xsds' directory under the 'org.eclipse.jst.j2ee'
>> plugin, you can just copy all of the schemas there, and then uncomment
>> the catalog mappings ... and things should start working as you would
>> like.
>>
>>
>> hope that helps!
>>
>> craig
>>
>>
> Maybe, maybe not. This is what I did but it doesn't work:
>
> 1) create a folder 'xsds' under plugins\org.eclipse.jst.j2ee_1.0.0
>
> 2) copied file from
>
> http://svn.controlhaus.org/ejb/trunk/schema/j2ee_web_service s_client_1_1.xsd?rev=159
>
>
> to that xsds folder just created
>
> 3) added the following:
>
> <extension point="com.ibm.etools.xmlcatalog.catalogContributor">
> <catalogContributor catalogId="default">
> <mappingInfo
>
> key=" http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd"
> uri="xsds/j2ee_web_services_client_1_1.xsd">
> </mappingInfo>
> </catalogContributor>
> </extension>
>
> to plugins\org.eclipse.jst.j2ee_1.0.0\plugin.xml
>
> 4) Restarted eclipse with -clean switch
>
>
> Is the file wrong or have I used the wrong procedure to make it visible
> to eclipse?? If the file is wrong, where can I get a good one from?
>
> Thanks
Re: XML Catalog for validating v2.4 web.xml [message #86291 is a reply to message #83893] Wed, 23 March 2005 17:57 Go to previous messageGo to next message
Lawrence Mandel is currently offline Lawrence MandelFriend
Messages: 486
Registered: July 2009
Senior Member
The missing schema (XSD) file is now available at
http://www-128.ibm.com/developerworks/webservices/jsrproject /j2ee_web_services_client_1_1.xsd.

I'm working with ibm.com to get the redirect to this schema updated.


Lawrence
Re: XML Catalog for validating v2.4 web.xml [message #101792 is a reply to message #82013] Tue, 10 May 2005 01:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: laurentd75___no.sp_am.yahoo.fr

"Larry Isaacs" wrote:

> The manual way to set these as User Specified Entries is with Window ->
> Preferences -> Web and XML -> XML Catalog. I chose to create my own
> plug-in and add them to the Plugin Specified Entries using the
> catalogContributor extension point. Only a plain blank plugin is
> needed. I had to manually edit the plugin.xml to make these changes.
>

Hi Larry,

I've been fighting my way with the XML Catalog lately, trying to find a way
to configure it so I can create webapps while offline.

(please see the thread I initiated on the subject: "WTP M4 - Configuring XML
Catalog entries to allow offline creation of Webapps/Servlets"
<news:d5ha02$ehb$1@news.eclipse.org>)

I would be very grateful if you could please post the plugin you created for
XML Catalog entries to this newsgroup, or else create a Bugzilla report and
attach it)

Looking forward to your help on this,

Regards,
Laurent
Re: XML Catalog for validating v2.4 web.xml [message #101937 is a reply to message #101792] Tue, 10 May 2005 13:49 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Hi Laurent,

This is an old post, and as of M4, I no longer use this plugin.
Instead, I uncomment the catalogContributor section in the plugin.xml
for org.eclipse.jst.j2ee_1.0.0 and change it to:

<extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
....

I then create "dtds" and "xsds" subdirectories under this plugin and add
copies of the files listed in the plugin.xml, plus "xml.xsd" in the
"xsds" directory. I also fixed the org.eclipse.wst.xsd.ui_1.0.0
plugin.xml (i.e. "platform:/resource/..." -> "platform:/plugin/...").
This gives me a "full" XML Catalog with no errors and accomplishes
basically the same thing the old plugin did.

However, this doesn't fix the Servlet 2.3 module creation problem. I
still get the error about not finding web-app_2_3.dtd if the Internet is
not available. I know Xerces default behavior is to hit the Internet
for entities not resolved locally. I haven't had time to try to debug
why the XML Catalog doesn't appear to come into play in this situation.

Cheers,
Larry


Laurent D wrote:
> "Larry Isaacs" wrote:
>
>
>>The manual way to set these as User Specified Entries is with Window ->
>>Preferences -> Web and XML -> XML Catalog. I chose to create my own
>>plug-in and add them to the Plugin Specified Entries using the
>>catalogContributor extension point. Only a plain blank plugin is
>>needed. I had to manually edit the plugin.xml to make these changes.
>>
>
>
> Hi Larry,
>
> I've been fighting my way with the XML Catalog lately, trying to find a way
> to configure it so I can create webapps while offline.
>
> (please see the thread I initiated on the subject: "WTP M4 - Configuring XML
> Catalog entries to allow offline creation of Webapps/Servlets"
> <news:d5ha02$ehb$1@news.eclipse.org>)
>
> I would be very grateful if you could please post the plugin you created for
> XML Catalog entries to this newsgroup, or else create a Bugzilla report and
> attach it)
>
> Looking forward to your help on this,
>
> Regards,
> Laurent
>
>
Re: XML Catalog for validating v2.4 web.xml [message #102147 is a reply to message #101937] Tue, 10 May 2005 22:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: laurentd75___no.sp_am.yahoo.fr

"Larry Isaacs" wrote:
> I uncomment the catalogContributor section in the plugin.xml
> for org.eclipse.jst.j2ee_1.0.0 and change it to:
> <extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
> ...
>
> I then create "dtds" and "xsds" subdirectories under this plugin and add
> copies of the files listed in the plugin.xml, plus "xml.xsd" in the
> "xsds" directory. I also fixed the org.eclipse.wst.xsd.ui_1.0.0
> plugin.xml (i.e. "platform:/resource/..." -> "platform:/plugin/...").
> This gives me a "full" XML Catalog with no errors and accomplishes
> basically the same thing the old plugin did.
>
> However, this doesn't fix the Servlet 2.3 module creation problem. I
> still get the error about not finding web-app_2_3.dtd if the Internet is
> not available. I know Xerces default behavior is to hit the Internet
> for entities not resolved locally. I haven't had time to try to debug
> why the XML Catalog doesn't appear to come into play in this situation.
>

Many thanks Larry, this was extremely kind of you to detail the whole
procedure for me.

Unfortunately.... Bad luck again, I'm afraid...

I followed the procedure through, downloaded all DTDs/XSDs referenced and
saved them in dtds/ and xsds/ sub-directories of the plugin, and it made no
change whatsoever...

I tried this both under M3 and M4 (Note: for M3, the last part about
org.eclipse.wst.xsd.ui_1.0.0 would not apply since there is no "platform:/"
URL in the version of the plugin.xml file).

After "patching" M3, I still cannot create Web modules while disconnected,
still getting the 'external entity not found' for 2.3 Web module, and
getting an error in the generated web.xml for a 2.4 Web module.

After patching M4, it's the same, plus, strangely enough, the
org.eclipse.wst.xsd.ui_1.0.0 patch of plugin.xml doesn't seem to work !?
While I did replace "resources" by "plugins" in the "platform:" URL, the
last plugin entry in the Preferences --> XML Catalog is not corrected and
still shows the incorrect "platform:/resources" URL, this is really odd !!

Many thanks again for your help, but I'm really getting disheartened now...

ONE THING I thought of though, for resolving the problem with
web-app_2_3.dtd not found:

As a "brute force patch", how about trying to add the DTD directly to the
xerces.jar archive of the plugin that generates and validates the web.xml
descriptor ??

Only thing is, I have no clue as to *which* plugin I should modify... Would
you be able to point me to the adequate plugin ??

Thanks,

Laurent
Re: XML Catalog for validating v2.4 web.xml [message #102392 is a reply to message #102147] Wed, 11 May 2005 12:51 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
If I turn off the Internet proxy, a 2.4 web.xml won't validate for me
either. When I get the chance, I'll see if I can dig a little deeper
into the source of the problem.

Larry

Laurent D wrote:
> "Larry Isaacs" wrote:
>
>>I uncomment the catalogContributor section in the plugin.xml
>>for org.eclipse.jst.j2ee_1.0.0 and change it to:
>><extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
>>...
>>
>>I then create "dtds" and "xsds" subdirectories under this plugin and add
>>copies of the files listed in the plugin.xml, plus "xml.xsd" in the
>>"xsds" directory. I also fixed the org.eclipse.wst.xsd.ui_1.0.0
>>plugin.xml (i.e. "platform:/resource/..." -> "platform:/plugin/...").
>>This gives me a "full" XML Catalog with no errors and accomplishes
>>basically the same thing the old plugin did.
>>
>>However, this doesn't fix the Servlet 2.3 module creation problem. I
>>still get the error about not finding web-app_2_3.dtd if the Internet is
>>not available. I know Xerces default behavior is to hit the Internet
>>for entities not resolved locally. I haven't had time to try to debug
>>why the XML Catalog doesn't appear to come into play in this situation.
>>
>
>
> Many thanks Larry, this was extremely kind of you to detail the whole
> procedure for me.
>
> Unfortunately.... Bad luck again, I'm afraid...
>
> I followed the procedure through, downloaded all DTDs/XSDs referenced and
> saved them in dtds/ and xsds/ sub-directories of the plugin, and it made no
> change whatsoever...
>
> I tried this both under M3 and M4 (Note: for M3, the last part about
> org.eclipse.wst.xsd.ui_1.0.0 would not apply since there is no "platform:/"
> URL in the version of the plugin.xml file).
>
> After "patching" M3, I still cannot create Web modules while disconnected,
> still getting the 'external entity not found' for 2.3 Web module, and
> getting an error in the generated web.xml for a 2.4 Web module.
>
> After patching M4, it's the same, plus, strangely enough, the
> org.eclipse.wst.xsd.ui_1.0.0 patch of plugin.xml doesn't seem to work !?
> While I did replace "resources" by "plugins" in the "platform:" URL, the
> last plugin entry in the Preferences --> XML Catalog is not corrected and
> still shows the incorrect "platform:/resources" URL, this is really odd !!
>
> Many thanks again for your help, but I'm really getting disheartened now...
>
> ONE THING I thought of though, for resolving the problem with
> web-app_2_3.dtd not found:
>
> As a "brute force patch", how about trying to add the DTD directly to the
> xerces.jar archive of the plugin that generates and validates the web.xml
> descriptor ??
>
> Only thing is, I have no clue as to *which* plugin I should modify... Would
> you be able to point me to the adequate plugin ??
>
> Thanks,
>
> Laurent
>
>
Re: XML Catalog for validating v2.4 web.xml [message #103190 is a reply to message #102392] Thu, 12 May 2005 23:23 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
To fix the 2.4 web.xml validate problem, XMLCatalog mappings are needed
with the following keys:

http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd
http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/xml.xsd

I added the first to org.eclipse.jst.j2ee_1.0.0 plugin.xml by adding:

<mappingInfo key="http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd"
uri="xsds/j2ee_1_4.xsd"/>

The others I added to org.eclipse.wst.xsd.ui_1.0.0 plugin.xml by adding:

<mappingInfo key="http://www.w3.org/2001/XMLSchema-instance"
uri=" platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/XMLSc hema-instance.xsd "/>
<mappingInfo key="http://www.w3.org/2001/xml.xsd"
uri=" platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.x sd "/>

This allows me to validate a 2.4 web.xml without accessing the Internet.
I haven't played yet with Web Services to see if that needs any other
additions. Also, this doesn't fix the 2.3 Web Module creation problem
when the Internet isn't available.

Cheers,
Larry

Larry Isaacs wrote:
> If I turn off the Internet proxy, a 2.4 web.xml won't validate for me
> either. When I get the chance, I'll see if I can dig a little deeper
> into the source of the problem.
>
> Larry
>
> Laurent D wrote:
>
>> "Larry Isaacs" wrote:
>>
>>> I uncomment the catalogContributor section in the plugin.xml
>>> for org.eclipse.jst.j2ee_1.0.0 and change it to:
>>> <extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
>>> ...
>>>
>>> I then create "dtds" and "xsds" subdirectories under this plugin and add
>>> copies of the files listed in the plugin.xml, plus "xml.xsd" in the
>>> "xsds" directory. I also fixed the org.eclipse.wst.xsd.ui_1.0.0
>>> plugin.xml (i.e. "platform:/resource/..." -> "platform:/plugin/...").
>>> This gives me a "full" XML Catalog with no errors and accomplishes
>>> basically the same thing the old plugin did.
>>>
>>> However, this doesn't fix the Servlet 2.3 module creation problem. I
>>> still get the error about not finding web-app_2_3.dtd if the Internet is
>>> not available. I know Xerces default behavior is to hit the Internet
>>> for entities not resolved locally. I haven't had time to try to debug
>>> why the XML Catalog doesn't appear to come into play in this situation.
>>>
>>
>>
>> Many thanks Larry, this was extremely kind of you to detail the whole
>> procedure for me.
>>
>> Unfortunately.... Bad luck again, I'm afraid...
>>
>> I followed the procedure through, downloaded all DTDs/XSDs referenced and
>> saved them in dtds/ and xsds/ sub-directories of the plugin, and it
>> made no
>> change whatsoever...
>>
>> I tried this both under M3 and M4 (Note: for M3, the last part about
>> org.eclipse.wst.xsd.ui_1.0.0 would not apply since there is no
>> "platform:/"
>> URL in the version of the plugin.xml file).
>>
>> After "patching" M3, I still cannot create Web modules while
>> disconnected,
>> still getting the 'external entity not found' for 2.3 Web module, and
>> getting an error in the generated web.xml for a 2.4 Web module.
>>
>> After patching M4, it's the same, plus, strangely enough, the
>> org.eclipse.wst.xsd.ui_1.0.0 patch of plugin.xml doesn't seem to work !?
>> While I did replace "resources" by "plugins" in the "platform:" URL, the
>> last plugin entry in the Preferences --> XML Catalog is not corrected and
>> still shows the incorrect "platform:/resources" URL, this is really
>> odd !!
>>
>> Many thanks again for your help, but I'm really getting disheartened
>> now...
>>
>> ONE THING I thought of though, for resolving the problem with
>> web-app_2_3.dtd not found:
>>
>> As a "brute force patch", how about trying to add the DTD directly to the
>> xerces.jar archive of the plugin that generates and validates the web.xml
>> descriptor ??
>>
>> Only thing is, I have no clue as to *which* plugin I should modify...
>> Would
>> you be able to point me to the adequate plugin ??
>>
>> Thanks,
>>
>> Laurent
>>
>>
Re: XML Catalog for validating v2.4 web.xml [message #105209 is a reply to message #103190] Wed, 18 May 2005 20:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: laurentd75___no.sp_am.yahoo.fr

Hi Larry,

MANY THANKS FOR THIS..... IT WORKS !!! ;-)

PLEASE NOTE THOUGH: I think there was a little error in the "syntax" of the
entries printed in your message: I believe the first part of the "uri"
attributes should read "uri="platform:/plugins/........" (note the plural
"s") instead of uri="platform:/plugin/.........."

Anyway... After adding these entries to the plugin XML definition files, I
was able to create & validate a 2.4 Webapp module while disconnected from
the Internet...

As you indicated though, this does NOT solve the Webapp 2.3 creation
problem....

I really don't understand why the XML Catalog doesn't really do "what it
says on the tin"....

Apparently, configuring Plug-in entries sort of works about OK
(sometimes...) however the configuration of User entries clearly doesn't
seem to work...

An by the way, even with your modifications, I still have an error mark
displayed in my XML Catalog plugin entries for the XML Schema entry. Details
for this entry appear as printed below:

URI:
file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd
Key Type: Namespace Name
Key: http://www.w3.org/2001/XMLSchema

Clearly, the URI is still wrong: it is wrongly appending a
"platform:/resource" part to the path to the plugin directory, and this has
nothing to do whatsoever with the entry I added to the plugin.xml file which
I reproduce below:
<mappingInfo
key="http://www.w3.org/2001/XMLSchema"

uri=" platform:/plugins/org.eclipse.xsd/cache/www.w3.org/2001/XMLS chema.xsd "
/>

I really can't make head or tail of all this...

Cheers for your help in any case,

Laurent

> To fix the 2.4 web.xml validate problem, XMLCatalog mappings are needed
> with the following keys:
>
> http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd
> http://www.w3.org/2001/XMLSchema-instance
> http://www.w3.org/2001/xml.xsd
>
> I added the first to org.eclipse.jst.j2ee_1.0.0 plugin.xml by adding:
>
> <mappingInfo key="http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd"
> uri="xsds/j2ee_1_4.xsd"/>
>
> The others I added to org.eclipse.wst.xsd.ui_1.0.0 plugin.xml by adding:
>
> <mappingInfo key="http://www.w3.org/2001/XMLSchema-instance"
>
uri=" platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/XMLSc hema-instan
ce.xsd"/>
> <mappingInfo key="http://www.w3.org/2001/xml.xsd"
> uri=" platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.x sd "/>
>
> This allows me to validate a 2.4 web.xml without accessing the Internet.
> I haven't played yet with Web Services to see if that needs any other
> additions. Also, this doesn't fix the 2.3 Web Module creation problem
> when the Internet isn't available.
>
> Cheers,
> Larry
Re: XML Catalog for validating v2.4 web.xml [message #105258 is a reply to message #105209] Wed, 18 May 2005 22:53 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Hi Laurent,

What was in my prior e-mail was copy & pasted from my plugin.xml. I
believe "platform:/plugin/org.eclipse.xsd/" is the URL fragment that,
via special handling, gets you to the plugin directory of the
org.eclipse.xsd plugin, regardless of version. I don't see error marks
in the XML Catalog and the URI displays correctly for me this way.

I haven't had time to dig further into the 2.3 webapp problem. I'm
guessing that for 2.3 webapps, the web.xml is being created in a way
that isn't able to bring the XML Catalog into play correctly, or at all.
Without such an entity resolver, Xerces' default behavior is to hit
the Internet. Initially, I'm not assuming it is a problem that can be
fixed playing with the XML Catalog further.

Cheers,
Larry


Laurent D wrote:
> Hi Larry,
>
> MANY THANKS FOR THIS..... IT WORKS !!! ;-)
>
> PLEASE NOTE THOUGH: I think there was a little error in the "syntax" of the
> entries printed in your message: I believe the first part of the "uri"
> attributes should read "uri="platform:/plugins/........" (note the plural
> "s") instead of uri="platform:/plugin/.........."
>
> Anyway... After adding these entries to the plugin XML definition files, I
> was able to create & validate a 2.4 Webapp module while disconnected from
> the Internet...
>
> As you indicated though, this does NOT solve the Webapp 2.3 creation
> problem....
>
> I really don't understand why the XML Catalog doesn't really do "what it
> says on the tin"....
>
> Apparently, configuring Plug-in entries sort of works about OK
> (sometimes...) however the configuration of User entries clearly doesn't
> seem to work...
>
> An by the way, even with your modifications, I still have an error mark
> displayed in my XML Catalog plugin entries for the XML Schema entry. Details
> for this entry appear as printed below:
>
> URI:
> file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd
> Key Type: Namespace Name
> Key: http://www.w3.org/2001/XMLSchema
>
> Clearly, the URI is still wrong: it is wrongly appending a
> "platform:/resource" part to the path to the plugin directory, and this has
> nothing to do whatsoever with the entry I added to the plugin.xml file which
> I reproduce below:
> <mappingInfo
> key="http://www.w3.org/2001/XMLSchema"
>
> uri=" platform:/plugins/org.eclipse.xsd/cache/www.w3.org/2001/XMLS chema.xsd "
> />
>
> I really can't make head or tail of all this...
>
> Cheers for your help in any case,
>
> Laurent
>
>
>>To fix the 2.4 web.xml validate problem, XMLCatalog mappings are needed
>>with the following keys:
>>
>> http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd
>> http://www.w3.org/2001/XMLSchema-instance
>> http://www.w3.org/2001/xml.xsd
>>
>>I added the first to org.eclipse.jst.j2ee_1.0.0 plugin.xml by adding:
>>
>><mappingInfo key="http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd"
>>uri="xsds/j2ee_1_4.xsd"/>
>>
>>The others I added to org.eclipse.wst.xsd.ui_1.0.0 plugin.xml by adding:
>>
>><mappingInfo key="http://www.w3.org/2001/XMLSchema-instance"
>>
>
> uri=" platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/XMLSc hema-instan
> ce.xsd"/>
>
>><mappingInfo key="http://www.w3.org/2001/xml.xsd"
>>uri=" platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.x sd "/>
>>
>>This allows me to validate a 2.4 web.xml without accessing the Internet.
>> I haven't played yet with Web Services to see if that needs any other
>>additions. Also, this doesn't fix the 2.3 Web Module creation problem
>>when the Internet isn't available.
>>
>>Cheers,
>>Larry
>
>
>
Re: XML Catalog for validating v2.4 web.xml [message #105273 is a reply to message #105258] Wed, 18 May 2005 23:06 Go to previous messageGo to next message
Max Rydahl Andersen is currently offline Max Rydahl AndersenFriend
Messages: 233
Registered: July 2009
Senior Member
Anyone who knows if its possible to refer inside a jar file in a plugin via
these mappinginfo extensions ?

e.g.
plugin:/plugins/org.hibernate.eclipse/lib/hibernate.jar/org/ hibernate/some.dtd
?


/max

> Hi Laurent,
>
> What was in my prior e-mail was copy & pasted from my plugin.xml. I
> believe "platform:/plugin/org.eclipse.xsd/" is the URL fragment that,
> via special handling, gets you to the plugin directory of the
> org.eclipse.xsd plugin, regardless of version. I don't see error marks
> in the XML Catalog and the URI displays correctly for me this way.
>
> I haven't had time to dig further into the 2.3 webapp problem. I'm
> guessing that for 2.3 webapps, the web.xml is being created in a way
> that isn't able to bring the XML Catalog into play correctly, or at all.
> Without such an entity resolver, Xerces' default behavior is to hit
> the Internet. Initially, I'm not assuming it is a problem that can be
> fixed playing with the XML Catalog further.
>
> Cheers,
> Larry
>
>
> Laurent D wrote:
>> Hi Larry,
>> MANY THANKS FOR THIS..... IT WORKS !!! ;-)
>> PLEASE NOTE THOUGH: I think there was a little error in the "syntax"
>> of the
>> entries printed in your message: I believe the first part of the "uri"
>> attributes should read "uri="platform:/plugins/........" (note the
>> plural
>> "s") instead of uri="platform:/plugin/.........."
>> Anyway... After adding these entries to the plugin XML definition
>> files, I
>> was able to create & validate a 2.4 Webapp module while disconnected
>> from
>> the Internet...
>> As you indicated though, this does NOT solve the Webapp 2.3 creation
>> problem....
>> I really don't understand why the XML Catalog doesn't really do "what
>> it
>> says on the tin"....
>> Apparently, configuring Plug-in entries sort of works about OK
>> (sometimes...) however the configuration of User entries clearly
>> doesn't
>> seem to work...
>> An by the way, even with your modifications, I still have an error mark
>> displayed in my XML Catalog plugin entries for the XML Schema entry.
>> Details
>> for this entry appear as printed below:
>> URI:
>> file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd
>> Key Type: Namespace Name
>> Key: http://www.w3.org/2001/XMLSchema
>> Clearly, the URI is still wrong: it is wrongly appending a
>> "platform:/resource" part to the path to the plugin directory, and this
>> has
>> nothing to do whatsoever with the entry I added to the plugin.xml file
>> which
>> I reproduce below:
>> <mappingInfo
>> key="http://www.w3.org/2001/XMLSchema"
>>
>> uri=" platform:/plugins/org.eclipse.xsd/cache/www.w3.org/2001/XMLS chema.xsd "
>> />
>> I really can't make head or tail of all this...
>> Cheers for your help in any case,
>> Laurent
>>
>>> To fix the 2.4 web.xml validate problem, XMLCatalog mappings are needed
>>> with the following keys:
>>>
>>> http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd
>>> http://www.w3.org/2001/XMLSchema-instance
>>> http://www.w3.org/2001/xml.xsd
>>>
>>> I added the first to org.eclipse.jst.j2ee_1.0.0 plugin.xml by adding:
>>>
>>> <mappingInfo key="http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd"
>>> uri="xsds/j2ee_1_4.xsd"/>
>>>
>>> The others I added to org.eclipse.wst.xsd.ui_1.0.0 plugin.xml by
>>> adding:
>>>
>>> <mappingInfo key="http://www.w3.org/2001/XMLSchema-instance"
>>>
>>
>> uri=" platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/XMLSc hema-instan
>> ce.xsd"/>
>>
>>> <mappingInfo key="http://www.w3.org/2001/xml.xsd"
>>> uri=" platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.x sd "/>
>>>
>>> This allows me to validate a 2.4 web.xml without accessing the
>>> Internet.
>>> I haven't played yet with Web Services to see if that needs any other
>>> additions. Also, this doesn't fix the 2.3 Web Module creation problem
>>> when the Internet isn't available.
>>>
>>> Cheers,
>>> Larry
>>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: XML Catalog for validating v2.4 web.xml [message #105362 is a reply to message #105209] Thu, 19 May 2005 05:18 Go to previous messageGo to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Laurent D wrote:

> I really don't understand why the XML Catalog doesn't really do "what it
> says on the tin"....

I'm not sure what you mean by this. What is it not doing correctly? If
you can point to something specific that's wrong I'll be happy to look
into a fix.

> Apparently, configuring Plug-in entries sort of works about OK
> (sometimes...) however the configuration of User entries clearly doesn't
> seem to work...

> An by the way, even with your modifications, I still have an error mark
> displayed in my XML Catalog plugin entries for the XML Schema entry. Details
> for this entry appear as printed below:

> URI:
>
file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd
> Key Type: Namespace Name
> Key: http://www.w3.org/2001/XMLSchema

> Clearly, the URI is still wrong: it is wrongly appending a
> "platform:/resource" part to the path to the plugin directory, and this has
> nothing to do whatsoever with the entry I added to the plugin.xml file which
> I reproduce below:
> <mappingInfo
> key="http://www.w3.org/2001/XMLSchema"

> uri=" platform:/plugins/org.eclipse.xsd/cache/www.w3.org/2001/XMLS chema.xsd "
> />

> I really can't make head or tail of all this...

You can ignore the 'red x' your seeing in the catalog for this. It's a
bogus error message. We goof up the way we resolve the "platform:/plugin"
URI at the superficial level of the Catalog UI. In fact thus plugin
extension point is perfectly correct in M4.

Hope that help!
Re: XML Catalog for validating v2.4 web.xml [message #105377 is a reply to message #105273] Thu, 19 May 2005 05:55 Go to previous messageGo to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Hi Max,

> Anyone who knows if its possible to refer inside a jar file in a plugin via
> these mappinginfo extensions ?

Nope not today. Since jar protocol is used like this...

jar:<URL for jar file>!<path in jar file>

Then if you wanted jars within plugins you'd need to type something like
this as the 'uri' in the extension point ...

jar:platform:/plugin/my.plugin.id/xsd/schemas.jar!/myschema. xsd

If you'd like this capability feel free to open a bug for an enhancement.

BTW I've only added the uri="platform:/plugin/..." support as a temporary
means to be able to reference schemas for other plugins (without having to
copy them into a plugin that you own). If developers like mechanism, then
I'll leave this capability in place.
Re: XML Catalog for validating v2.4 web.xml [message #105390 is a reply to message #105362] Thu, 19 May 2005 06:16 Go to previous messageGo to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
BTW... In my latest M4 driver, the 'details' for the 'schema4schema'
catalog entry looks like this in the UI.

URI:
file:/D:/workspaces/wtp-dev/plugins/org.eclipse.xsd/cache/ww w.w3.org/2001/XMLSchema.xsd
Key Type: Namespace Name
Key: http://www.w3.org/2001/XMLSchema

I think that bug you mentioned (where the URI was getting messed up) was
fixed for M4 or just shortly after. If you're still seeing this with a
recent build please open a bug report and assign it me (csalter@ca.ibm.com)

thanks!
Re: XML Catalog for validating v2.4 web.xml [message #105606 is a reply to message #105362] Thu, 19 May 2005 14:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: laurentd75__no___spa_m.yahoo.fr

Hi Craig,

First of all, many thanks for looking into these problems, I'm really
grateful for all this.


>> I really don't understand why the XML Catalog doesn't really do "what it
>> says on the tin"....

> I'm not sure what you mean by this. What is it not doing correctly? If
> you can point to something specific that's wrong I'll be happy to look
> into a fix.

I realize this may have sounded like a disparaging comment, sorry, I
didn't mean to be.

What I meant was: being somewhat familiar with WSAD 5.1, and reading the
XML Catalog tutorial, I assumed that the functionality provided was for
locally caching XML 'entities' (namely: DTDs and XSDs) and allowing
whatever plugins need access to them to resolve them without the need to
get on the Internet.

And while the XML Catalog seems to work perfectly in WSAD, it doesn't seem
to be working in Eclipse WTP. Namely, the main problems I ave identified
are:

- XML Catalog only seems to "recognise" and use Plugin entries. It doesn't
seem to care about User entries.
- About user entries: it is totally unclear *where* these should reside
exactly, but apparently they should be in the workspace in some project,
which I find a bit strange. For me, it would make more sense to define
some standard place outside the workspace where to put DTDs/XSDs and then
define entries in the XML Catalog pointing to these files, so the settings
could be workspace-wide.
- Finally, the XML Catalog doesn't seem to handle DTDs correctly, whether
you define plugin entries or user entries to have them locally resolved.


Since then, people have hinted that the 'external entity cache' mechanism
is actually provided by a kind of 'joint functionality' of XML Catalog
*and* Xerces... Some people also hinted that the 'classpath' played some
role, i.e. you somehow had to include DTDs and XSDs somewhere in the
classpath... (But "which" classpath, whether Eclipse's or the plugin's,
I'm not sure !!!)


So, what I thought was "written on the tin" was: "XML Catalog can be used
to define mappings for locally resolving DTDs and schemas" but apparently
it's not as simple as that...

Again thanks for your help. I am aware that people have been working hard
to deliver WTP, and I think us in the comunity have a lot of respect for
that, even if we're not showing it ostentatiously... I just have a piece
of advice though, for what it's worth: I am under the impression you are
sometimes wanting to deliver "more than you can", and I think it would be
better to concentrate on fewer things and "do them better". Arguably, it
is better to have a small but reliable framework built on a solid
fundation rather than a large but unstable framework built on a "dodgy"
base... And it also help to take the time to accurately *document* the
functionality you provide so that users know what it's meant for and how
to use it !!

Speaking of the XML Catalog documentation, the tutorial dates back from
the M2 release, so maybe it needs updating. Personally I think it needs
updating anyway, since it only deals with a simple case of user entry (for
"invoice.dtd") and I do not find it to ber very useful or informative
(again,I'm just plainly speaking my mind plain, I do not intend any of
this as a reproof).

Kind Regards,

Laurent
Re: XML Catalog for validating v2.4 web.xml [message #105697 is a reply to message #105258] Thu, 19 May 2005 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: laurentd75__no___spa_m.yahoo.fr

Hi Larry,

Thanks again for your help and the quick response, this is really nice.

> I haven't had time to dig further into the 2.3 webapp problem. I'm
> guessing that for 2.3 webapps, the web.xml is being created in a way
> that isn't able to bring the XML Catalog into play correctly, or at all.
> Without such an entity resolver, Xerces' default behavior is to hit
> the Internet. Initially, I'm not assuming it is a problem that can be
> fixed playing with the XML Catalog further.

Regarding this issue:

Can anybody sched some light on how the web.xml is created and/or why the
entity resolver isn't triggered for a web-app_2_3.dtd entity ?

As for Xerces:

I found "xercesImpl.jar" in
plugins\org.eclipse.wst.xml.validation_1.0.0\jars ...

.. and I was just wondering: would it be possible to modify the JAR file
and add all required DTDs / XSDs into it so that Xerces can use the files
embedded in the JAR instead of trying to connect to the Internet ??

Actually I did try it but it seems it's not that simple: I created a
"dtds/" folder in the JAR where I added all standard DTDs, and likewise
created a "xsds/" folder where I put all standard schemas....

...It doesn't work of course (I would have been surprised if it had been
so simple), but maybe there is a way to achieve what I'm trying to, by
adding some configuration properties into some file in the Xerces JAR ??

I'm not really familiar with Xerces, and I did run a search on Google that
turned up some stuff about *programmatically* creating an entity resolver
cache, but no info about *declaratively* configuring Xerces to use a
specific cache.

(Note: One good article I found about the EntityResolver interface is:
http://java.sun.com/developer/technicalArticles/xml/JavaTech andXML_part3/
See section on "Caching With a Custom EntityResolver", and code sample 8)

Would anyone be able to help on this ?

Thanks,

Laurent
Re: XML Catalog for validating v2.4 web.xml [message #105711 is a reply to message #105606] Thu, 19 May 2005 16:56 Go to previous messageGo to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Hi Laurent,

Thanks for your feedback and please don't be concerned about offending any
of us I'm just interesting in understanding the probems you're having more
clearly.

> Namely, the main problems I ave identified are:
> - XML Catalog only seems to "recognise" and use Plugin entries. It doesn't
> seem to care about User entries.

Hmm.. that sounds like a bug. I've never encountered that before but I'd
encourage you to open a bugzilla (if you already have thanks).

> - About user entries: it is totally unclear *where* these should reside
> exactly, but apparently they should be in the workspace in some project,
> which I find a bit strange. For me, it would make more sense to define
> some standard place outside the workspace where to put DTDs/XSDs and then
> define entries in the XML Catalog pointing to these files, so the settings
> could be workspace-wide.

I agree that we don't clearly provide a means to locate files from the
external file system. In fact you can type in a 'file:///' URL in the
location field in the 'Catalog Entry' dialog but we should really do
better here. I'd encourage you to open a bug to suggest an enhancement
such as 'XML Catalog should support a file system browse option to locate
files directly from the disk'.

> - Finally, the XML Catalog doesn't seem to handle DTDs correctly, whether
> you define plugin entries or user entries to have them locally resolved.

That sounds strange. Please open a bug with some example attached.

> Since then, people have hinted that the 'external entity cache' mechanism
> is actually provided by a kind of 'joint functionality' of XML Catalog
> *and* Xerces... Some people also hinted that the 'classpath' played some
> role, i.e. you somehow had to include DTDs and XSDs somewhere in the
> classpath... (But "which" classpath, whether Eclipse's or the plugin's,
> I'm not sure !!!)

Classpath plays no role in the XML artifact resolvers currently existing
in WTP. If the resource isn't found in the catalog, we go of to the cache
to try to find it. If it's not in the cache we go of to the network and
if we can read the file we cache it.

> So, what I thought was "written on the tin" was: "XML Catalog can be used
> to define mappings for locally resolving DTDs and schemas" but apparently
> it's not as simple as that...

Well it should be and if it's not it's a bug.

> Speaking of the XML Catalog documentation, the tutorial dates back from
> the M2 release, so maybe it needs updating. Personally I think it needs
> updating anyway..

Hmm... perhaps you'd like to volunteer to write a better tutorial? If you
could write up a tutorial from the point of view of what you'd expect the
catalog to do, we could review it to understand your expectations. It may
be a good way to flush out where expectation != reality. Or maybe there's
just a few bugs that need to be resolved to make expectations == reality.
So I'd encourage you to write it up and attach it to a bugzilla bug for an
('enhanced XML Catalog tutorial'). BTW what OS are you using? It may be
that some of these issues are OS related so please specify this in any bug
reports.

Finally, thanks for your comments. I really apprecitate your feedback. I
really enjoy getting input from the community (positive or negative) and
it's one of the nicest thing about working on opensource (vs my day job).
With the amount of work we have on our plates it really helps to
understand what parts of the code need added attention ... and this sounds
like it may be one of them. Of course we're always looking for help to
fix the code too :-) If you (or anyone else) is interested I'm always
willing to walk you thru the code to help you get started.


thanks again

craig
Re: XML Catalog for validating v2.4 web.xml [message #105773 is a reply to message #105711] Thu, 19 May 2005 17:56 Go to previous message
Eclipse UserFriend
Originally posted by: laurentd75__no___spa_m.yahoo.fr

Craig Salter wrote:


>> - XML Catalog only seems to "recognise" and use Plugin entries. It doesn't
>> seem to care about User entries.
> Hmm.. that sounds like a bug. I've never encountered that before but I'd
> encourage you to open a bugzilla (if you already have thanks).

Not 100% sure but I'll try to reproduce and open a bug report with an
example ASAP.


>> - About user entries:
> I agree that we don't clearly provide a means to locate files from the
> external file system. In fact you can type in a 'file:///' URL in the
> location field in the 'Catalog Entry' dialog but we should really do
> better here. I'd encourage you to open a bug to suggest an enhancement
> such as 'XML Catalog should support a file system browse option to locate
> files directly from the disk'.

OK, will open an enhancement request ASAP

>> - Finally, the XML Catalog doesn't seem to handle DTDs correctly, whether
>> you define plugin entries or user entries to have them locally resolved.
> That sounds strange. Please open a bug with some example attached.

Well, I'm 110% sure of this one ;-) and will open a bug report ASAP too.

> Classpath plays no role in the XML artifact resolvers currently existing
> in WTP. If the resource isn't found in the catalog, we go of to the cache
> to try to find it. If it's not in the cache we go of to the network and
> if we can read the file we cache it.

Thanks for clarifying this... I suppose then it's useless of me trying to
add DTDs/XSDs somewhere in the "XercesImpl.jar" file then...


>> Speaking of the XML Catalog documentation
> Hmm... perhaps you'd like to volunteer to write a better tutorial?
> <...>
> So I'd encourage you to write it up and attach it to a bugzilla bug for an
> ('enhanced XML Catalog tutorial')

Well I wouldn't think of myself as the best person do write a tutorial on
the subject given my limited understanding of the XML Catalog feature in
particular, and of XML in general ;-)

Having said that, I'd be more than happy to have a try at it, if you or
someone else in the team can review it for inacurracies etc... and maybe
point me to some associated features I'm not aware of.

But I was just thinking too: would anybody know of any existing material
in the WSAD documentation that we can use as a "basis" ? (I don't mean to
"copy" copyrighted material, I just want to get general inspiration and
technical information from it as I understand that the XML Catalog is more
or less a port of the existing WSAD feature)

And another thing, do you have any "templates" for tutorials, and what
document formats do you accept/prefer ?


>. BTW what OS are you using?

Using Windows XP Pro SP1 at home (French edition) and at work (US Edition).


> Finally, thanks for your comments. I really apprecitate your feedback. I
> really enjoy getting input from the community (positive or negative) and
> it's one of the nicest thing about working on opensource (vs my day job).

You're very welcome Craig... And rest assured I have plenty more feedback
for this group ;-))
Again, my feedback may often sound as negative because I basically
"complain" about problems,
but I think everyone, including myself, is very appreciative of all the
good will and efforts the whole team has been putting in this project.
The community owes you a lot. And I supposed we're all ready to help you
in turn, if only in 'little ways'.

> Of course we're always looking for help to
> fix the code too :-) If you (or anyone else) is interested I'm always
> willing to walk you thru the code to help you get started.

Well... Not that I have any problem with that, but I have to confess I
don't know a thing about the Eclipse plugin architecture etc. !!

I did actually get the WTP code from CVS and tried to look at some of the
bits regarding the XML Catalog, but I found it quite hard to understand...
Obviousl there are 'dependencies' on many things, and it's hard to get a
clear picture if you don't know the project.... And you guys are not very
generous with comments in the code too ;-)

It's hard to 'dive' into this when you don't even know how much time
you're going to have to spare to actually "master" the code and be able to
change it.

I'm not even sure what would be needed (in termes of SDK downloads or
environement setup) to actually be able to compile, modify and test WTP
plugins.


Thanks again Craig,

Laurent
Previous Topic:Can't get xhtml1-strict.xsd to validate (M4)
Next Topic:No Endpoint Error
Goto Forum:
  


Current Time: Thu Apr 25 08:36:27 GMT 2024

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

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

Back to the top