- This topic has 12 replies, 8 voices, and was last updated 19 years, 2 months ago by dlread.
-
AuthorPosts
-
ShagVTMemberI have an XSL that works just fine at runtime that is being flagged with a validation error saying that it cannot find <xsl:stylesheet …> defined. Is there anything that can be done about that beyond just turning off validation?
[/b]
Riyad KallaMemberShag,
Is the file infact missing the xsl:stylesheet? If it IS and this is a file you know is invalid and treate specially, then no the only thing you can do is turn off XML validation and just validate the files you want manually via the right-click menu (instead of it being done automatically for you).
benson_marguliesMemberI have the same problem. Here’s the whole file. What is it complaining about when it says:
cvc-elt.1: Cannot find the declaration of element ‘xsl:stylesheet’.<?xml version=’1.0′?>
<xsl:stylesheet version=’1.0′ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”>
<xsl:output method=’xml’ indent=’yes’ />
<xsl:param name=”rlproot” select=”whoops” />
<xsl:template match=’@*|node()’>
<xsl:copy>
<xsl:apply-templates select=”@*” />
<xsl:apply-templates select=”GlobalNamingResources” />
<xsl:apply-templates select=”node()” />
</xsl:copy>
</xsl:template><xsl:template match=’GlobalNamingResources’>
<GlobalNamingResources>
<Resource name=”bean/RLPEnvironmentFactory” auth=”Container”
type=”com.basistech.rex.j2ee.EnvironmentBean”/>
<ResourceParams name=”bean/RLPEnvironmentFactory”>
<parameter>
<name>factory</name>
<value>com.basistech.rex.j2ee.EnvironmentFactory</value>
</parameter>
<parameter>
<name>RLPRoot</name>
<value><xsl:value-of select=”$rlproot” /></value>
</parameter>
</ResourceParams>
<xsl:copy-of select=”node()”/>
</GlobalNamingResources>
</xsl:template></xsl:stylesheet>
Gary BraswellMemberThis issue is a common problem. I’ve been getting with several different XML files that I’ve got, and it’s always the same thing “cvc-elt.1: Cannot find the declaration of element ‘<first node after the XML header>’
Gary BraswellMember@Manhattan wrote:
This issue is a common problem. I’ve been getting with several different XML files that I’ve got, and it’s always the same thing “cvc-elt.1: Cannot find the declaration of element ‘<first node after the XML header>’
I meant to add that while I get this problem, another person on my team has not seen it.
For now, I’ve just turned off XML validation b/c it’s too annoying to deal with.
Riyad KallaMemberI have filed this so we can look into it, thank you.
Mahoney266MemberAdd me to the list of people with this issue.
lkbMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
dhaboltMemberI have a similar problem with validation errors and the BUILDING WORKSPACE 0% issue, but it happens with a new J2EE 1.4 WebProject. After creating the project (using J2EE 1.4 and JSTL 1.1), I add struts capability. Everything is fine until I make any modification to the web.xml the system just created. The modification can be as simple as removing and adding a right bracket to dirty the file. When I attempt to save, I get the “Building Workspace 0%” for 3 minutes or so (with the CPU at 100% and I can’t do anything on my machine). I have to kick back to a 2.3 DTD to get it to work without disabling validation.
Actually, I just disabled all XML related validation (DTD Validator, XML Schema Validator and XML Validator) and I still have the same issue.
I’m using Eclipse 3.1 and MyEclipse 4.0M3.
Riyad KallaMemberdhabolt,
What is your Eclipse Build ID (Help > About) and MyEclipse Build ID (Window > Preferences > MyEclipse)?
dlreadMemberdhabolt wrote:
I have a similar problem with validation errors and the BUILDING WORKSPACE 0% issue, but it happens with a new J2EE 1.4 WebProject. After creating the project (using J2EE 1.4 and JSTL 1.1), I add struts capability. Everything is fine until I make any modification to the web.xml the system just created. The modification can be as simple as removing and adding a right bracket to dirty the file. When I attempt to save, I get the “Building Workspace 0%” for 3 minutes or so (with the CPU at 100% and I can’t do anything on my machine). I have to kick back to a 2.3 DTD to get it to work without disabling validation.
I have similar problems with 2.4 servlet web.xml, but only sporadically. The CPU will go up to 100% and my system doesn’t come back after 3 minutes. My Win2k box gets so bogged that I am forced to hit the hardware reset switch on my computer, which is really nasty.
Eclipse Platform Version: 3.1.0 Build id: I20050627-1435
MyEclipse JSF Support Version: 4.0.1 Build id: 20050930-4.0.1-GA -
AuthorPosts