facebook

XSL validation fails with NS defined in root element

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #212740 Reply

    ShagVT
    Member

    I 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]

    #212752 Reply

    Riyad Kalla
    Member

    Shag,
    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).

    #217457 Reply

    I 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”&gt;
    <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>

    #217676 Reply

    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>’

    #217678 Reply

    @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.

    #217681 Reply

    Riyad Kalla
    Member

    I have filed this so we can look into it, thank you.

    #218626 Reply

    Mahoney266
    Member

    Add me to the list of people with this issue.

    #237693 Reply

    lkb
    Member

    This message has not been recovered.

    #237713 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #238197 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #238385 Reply

    dhabolt
    Member

    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.

    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.

    #238387 Reply

    Riyad Kalla
    Member

    dhabolt,
    What is your Eclipse Build ID (Help > About) and MyEclipse Build ID (Window > Preferences > MyEclipse)?

    #239046 Reply

    dlread
    Member

    dhabolt 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

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: XSL validation fails with NS defined in root element

You must be logged in to post in the forum log in