- This topic has 6 replies, 4 voices, and was last updated 20 years, 10 months ago by
anderssv.
-
AuthorPosts
-
Wim GoossensMemberThis tld reports an error :
cvc-elt.1: Cannot find the declaration of element ‘taglib’.
This error was not there before 3.8.1
xsd seems to be there in XML catalog entries.
Regards
Wimtld in WEB-INF dir :
<?xml version=”1.0″ encoding=”UTF-8″ ?>
<taglib xmlns=”http://java.sun.com/xml/ns/j2ee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd”
version=”2.0″><tlib-version>1.0</tlib-version>
<short-name>ddlb</short-name>
<uri>http://wg.be/jx/taglibs/ddlb</uri><tag>
<name>populate</name>
<tag-class>be.wg.jx.taglibs.ddlb.JxPopulate</tag-class>
<body-content>empty</body-content>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ddlb</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag><tag>
<name>translate</name>
<tag-class>be.wg.jx.taglibs.ddlb.JxTranslate</tag-class>
<body-content>empty</body-content>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ddlb</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag></taglib>
August 23, 2004 at 8:57 am #213009
Scott AndersonParticipantWim,
First, please be sure you’ve restarted your installation with the -clean option.
Second, in the XML catalog, the XSD you’re referring to is keyed by its full URI which is:
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsdSo, youre namespace declaration needs to look like:
<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0">
Or, you can add a new entry to the XML catalog for your old URI, if you prefer.
August 23, 2004 at 1:38 pm #213087
Wim GoossensMemberScott,
I changed it to the full URI.
This solved the problem.
(don’t know why it did not give a problem in 3.8.0)Thank you
WimAugust 23, 2004 at 10:41 pm #213138
Scott AndersonParticipant(don’t know why it did not give a problem in 3.8.0)
Probably because validation was broken. 🙂
September 4, 2004 at 11:13 am #214570
dmitry-aMemberI’m gettinng the same problem with maven.xml — cvc-elt.1: Cannot find the declaration of element ‘project’..
<?xml version="1.0" encoding="UTF-8" ?> <project xmlns:j="jelly:core" xmlns:m="maven"> <goal name="war:install-local"> <copy file="target/forum.war" toDir="/home/dev/opt/jboss/server/default/deploy/"/> </goal> </project>
I was under the impression that if dtd or schema is not present, myeclipse 3.8.1 will not do the validation and will only check if xml tags are properly balanced.
Dmitry A>
September 4, 2004 at 1:17 pm #214573
Scott AndersonParticipantDmitry,
Actually, validation always validates if it’s turned on. The easiest solution is to add the schema you’re using as an entry in the user schema catalog at Window > Preferences > MyEclipse > Editors > XML Editor > XML Schema Catalog.
September 6, 2004 at 1:22 am #214594
anderssvMemberExcluding certain files/files without schemas should be possible. First off I can’t seem to find a schema for maven.xml and secondly I imagine the following line would require four schemas (but I know ver little about XML namespaces):
<project default=”snapshot” xmlns:m=”jelly:maven” xmlns:ant=”jelly:ant” xmlns:j=”jelly:core”/>
I get compile errors in all my Maven projects (and I don’t want to turn off XML validation), which is bugging me a bit.
-
AuthorPosts