- This topic has 23 replies, 6 voices, and was last updated 18 years, 2 months ago by
Riyad Kalla.
-
AuthorPosts
-
Riyad KallaMemberThis message has not been recovered.
October 3, 2005 at 1:23 pm #238580
lkbMemberWhen I try to add it, it wont let me use “Public ID”.
It forces to Namespace Name.
Then when I valitade an XSL file, it says “Validation Complete” but the box says no validator is set up for this type.
October 3, 2005 at 1:24 pm #238581
lkbMemberResource foo.xsl was not validated because none of the enabled validators validates that type of resource.
Validation of resource foo.xsl is complete.October 3, 2005 at 3:00 pm #238588
Riyad KallaMemberMake sure your XML validator is enabled for your project and/or globally for the workbenhc.
November 1, 2005 at 3:45 am #240558
knegarpetterMemberI get the same result as lkb, and i (think) have the xml validator enabled, (how do i check that)
regards
PetterNovember 1, 2005 at 8:00 am #240575
Riyad KallaMemberYou can check for your project level by opening up your project properties and going to MyEclipse-Validation, if they are all grayed out then you need to navigate to Window > Prefs > MyEclipse > Validation and check there.
February 16, 2006 at 4:56 pm #246910
pcwappdevMemberI’ve followed the instructions here, but I still get the validation error:
2 cvc-elt.1: Cannot find the declaration of element ‘xsl:stylesheet’. article_simple.xsl pcw/web/WEB-INF/xsl line 2 February 16, 2006I’ve checked and I do have the xml validator enabled.
MyEclipse version info:
Version: 4.1.0
Build id: 20060122-4.1-GAEclipse version info:
Version: 3.1.2
Build id: M20060118-1600any ideas? this is mostly just a nuisance, but it would be nice to get rid of this nuisance.
February 16, 2006 at 5:02 pm #246911
Riyad KallaMemberpcwappdev,
Be sure to clear your error markers then re-run validation. MyEclipse > Remove All Error MarkersFebruary 16, 2006 at 5:26 pm #246913
pcwappdevMemberi didn’t have an option to remove all error markers, I right clicked on my project clicked on MyEclipse > Remove All Validation Markers
I then right clicked on my xsl file and clicked on “Validate XSL file”, got the same error mentioned above.
I tried right clicking the xsl file and then clicking on MyEclipse > Run Validation, but I got the following error:
Resource /pcw/web/WEB-INF/xsl/article_simple.xsl was not validated because none of the enabled validators validates that type of resource.
Validation of resource /pcw/web/WEB-INF/xsl/article_simple.xsl is complete.As I mentioned, xml validation is enabled for this project.
Thanks for the quick response
February 16, 2006 at 5:46 pm #246914
Riyad KallaMemberCan you post the contents of the file so I can dump it into a project on my end and try it out?
February 16, 2006 at 5:49 pm #246915
pcwappdevMemberthe validation fails for any kind of xsl file. Here is a very simple xsl file which on my system fails validation as described above.
<?xml version=”1.0″?>
<xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” version=”1.0″>
<xsl:output method=”xml” omit-xml-declaration=”yes” />
<xsl:variable name=”apos”>'</xsl:variable>
<xsl:template match=”/”><xsl:apply-templates /></xsl:template>
</xsl:stylesheet>February 16, 2006 at 8:39 pm #246919
Riyad KallaMemberDid you not follow the steps outlined in the first post of this thread? I just did and the file validates fine.
February 17, 2006 at 12:26 am #246925
pcwappdevMemberI did follow the steps outlined in the first post of this thread, and yet my xsl file still does not validate.
when i right click on my xsl and select “Validate XSL File”, I get:
Severity Description Resource In Folder Location Creation Time Id
2 cvc-elt.1: Cannot find the declaration of element ‘xsl:stylesheet’. article_simple.xsl pcw/web/WEB-INF/xsl line 2 February 16, 2006 10:17:35 PM 3366when I right click on my xsl and select “MyEclipse > Run Validation”, I get:
Resource /pcw/web/WEB-INF/xsl/article_simple.xsl was not validated because none of the enabled validators validates that type of resource.
Validation of resource /pcw/web/WEB-INF/xsl/article_simple.xsl is complete.I should mention that previously, I had saved this file: http://www.myeclipseide.com/examplecode/schema-for-xslt20.xsd with an .xml extension. I noticed this and changed the extension to .xsd . Once I did this, the only options I had for “Key Type” when adding this file to the xml catalog are “Schema Location” and “Namespace Location”. Currently the details for my user specified xml catalog are:
URI: platform:/resource/pcw/web/WEB-INF/xsd/xsl-schema.xml
Key Type: Schema Location
Key: http://www.w3.org/1999/XSL/TransformBut no matter what I select for Key Type, I still get the same errors when trying to validate the xsl file.
February 17, 2006 at 2:26 am #246928
Riyad KallaMemberChange it to namespace, that is what I have mine set to.
February 17, 2006 at 11:20 am #246948
pcwappdevMemberhehehe, I figured out what it was, there was a trailing space in the key for the xml catalog, so the key was “http://www.w3.org/1999/XSL/Transform ” instead of “http://www.w3.org/1999/XSL/Transform”
doh!
once I removed the trailing space, the xsl file validates.
thanks for your patience Riyad.
-
AuthorPosts