- This topic has 23 replies, 6 voices, and was last updated 18 years ago by
Riyad Kalla.
-
AuthorPosts
-
Riyad KallaMemberThis message has not been recovered.
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.
lkbMemberResource foo.xsl was not validated because none of the enabled validators validates that type of resource.
Validation of resource foo.xsl is complete.
Riyad KallaMemberMake sure your XML validator is enabled for your project and/or globally for the workbenhc.
knegarpetterMemberI get the same result as lkb, and i (think) have the xml validator enabled, (how do i check that)
regards
Petter
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.
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.
Riyad KallaMemberpcwappdev,
Be sure to clear your error markers then re-run validation. MyEclipse > Remove All Error Markers
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
Riyad KallaMemberCan you post the contents of the file so I can dump it into a project on my end and try it out?
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>
Riyad KallaMemberDid you not follow the steps outlined in the first post of this thread? I just did and the file validates fine.
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.
Riyad KallaMemberChange it to namespace, that is what I have mine set to.
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