Skip to main content



      Home
Home » Newcomers » Newcomers » XSL validation error when file name contains a space
XSL validation error when file name contains a space [message #264614] Mon, 22 September 2008 16:13 Go to next message
Eclipse UserFriend
Hi,

I noticed that I get the following validation error:
"cvs-elt.1: Cannot find the declaration of element 'xsl:stylesheet'

when the file has a space e.g. "New File.xsl"

Is this a known issue, a feature, a bug? I don't see anything like this on
bugs.eclipse.org
Re: XSL validation error when file name contains a space [message #264619 is a reply to message #264614] Mon, 22 September 2008 16:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Lews Carroll wrote:
> Hi,
>
> I noticed that I get the following validation error:
> "cvs-elt.1: Cannot find the declaration of element 'xsl:stylesheet'
>
> when the file has a space e.g. "New File.xsl"
>
> Is this a known issue, a feature, a bug? I don't see anything like this
> on bugs.eclipse.org
>

Hmmm...I just tried this with "New File.xsl". Make sure that you have
the version specified in your styelesheet. Something like the following
should work as I just tried it with XSL Tools 0.5 and greater:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<!-- TODO: Auto-generated template -->
</xsl:template>
</xsl:stylesheet>

Notice the version attributue...if you are using the XSL Tools editor
that version has to be either 1.0 or 2.0.

If you are still having a problem please open a bug with a sample XSL
that produces the problem, and the exact steps to reproduce as what
versions you have installed of eclipse, web tools, and xsl tools.


Dave
Re: XSL validation error when file name contains a space [message #264628 is a reply to message #264619] Mon, 22 September 2008 17:04 Go to previous messageGo to next message
Eclipse UserFriend
David Carver wrote:
> Lews Carroll wrote:
>> Hi,
>>
>> I noticed that I get the following validation error:
>> "cvs-elt.1: Cannot find the declaration of element 'xsl:stylesheet'
>>
>> when the file has a space e.g. "New File.xsl"
>>
>> Is this a known issue, a feature, a bug? I don't see anything like
>> this on bugs.eclipse.org
>>
>
> Hmmm...I just tried this with "New File.xsl". Make sure that you have
> the version specified in your styelesheet. Something like the following
> should work as I just tried it with XSL Tools 0.5 and greater:

Right. I'm running 0.5. I don't find a plugin specifically called "XSL
Tools", but I'm assuming I couldn't have come this far w/o that tool
set. FWIW, this is not the first DTD I've developed using Eclipse. It is
however, the first w/ a space in the file name.

> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="/">
> <!-- TODO: Auto-generated template -->
> </xsl:template>
> </xsl:stylesheet>
>
> Notice the version attributue...if you are using the XSL Tools editor
> that version has to be either 1.0 or 2.0.

Like the sample you posted, the version number's contained in the
template. In fact, I copied the headers from a validating DTD to the
problem child and the validation error persisted.

> If you are still having a problem please open a bug with a sample XSL
> that produces the problem, and the exact steps to reproduce as what
> versions you have installed of eclipse, web tools, and xsl tools.

I'm concerned that the error is tied to some local setup. It looks like
you reproduced the problem as I did: File > New > XSL > (put a space in
the name) > Finish

You don't mention invoking (right mouse click) > Validate, which step
I'm assuming was performed. Can you confirm that? After that, I'll file
a bug.

Cheers,
lc
Re: XSL validation error when file name contains a space [message #264635 is a reply to message #264628] Mon, 22 September 2008 20:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Yeah, I cliecked validate and get no errors.

Make sure that you don't have anything in your XML Catalog that
corresponds to the XSL namespace as that could mess you up as well.

One other question I'll ask, is which Operating System is this happening
on? I've tested this under Linux and it is work as expected. No
problems. I'm one of the developers on the XSL Tools project. Also,
you could try 1.0M2 in a couple of weeks. It'll still work on eclipse
3.4. Again if you can give us as much detail as possible we'll try to
address the problem and reproduce it.

Dave

Lews Carroll wrote:
> David Carver wrote:
>> Lews Carroll wrote:
>>> Hi,
>>>
>>> I noticed that I get the following validation error:
>>> "cvs-elt.1: Cannot find the declaration of element 'xsl:stylesheet'
>>>
>>> when the file has a space e.g. "New File.xsl"
>>>
>>> Is this a known issue, a feature, a bug? I don't see anything like
>>> this on bugs.eclipse.org
>>>
>> Hmmm...I just tried this with "New File.xsl". Make sure that you have
>> the version specified in your styelesheet. Something like the following
>> should work as I just tried it with XSL Tools 0.5 and greater:
>
> Right. I'm running 0.5. I don't find a plugin specifically called "XSL
> Tools", but I'm assuming I couldn't have come this far w/o that tool
> set. FWIW, this is not the first DTD I've developed using Eclipse. It is
> however, the first w/ a space in the file name.
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <xsl:stylesheet version="1.0"
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>> <xsl:template match="/">
>> <!-- TODO: Auto-generated template -->
>> </xsl:template>
>> </xsl:stylesheet>
>>
>> Notice the version attributue...if you are using the XSL Tools editor
>> that version has to be either 1.0 or 2.0.
>
> Like the sample you posted, the version number's contained in the
> template. In fact, I copied the headers from a validating DTD to the
> problem child and the validation error persisted.
>
>> If you are still having a problem please open a bug with a sample XSL
>> that produces the problem, and the exact steps to reproduce as what
>> versions you have installed of eclipse, web tools, and xsl tools.
>
> I'm concerned that the error is tied to some local setup. It looks like
> you reproduced the problem as I did: File > New > XSL > (put a space in
> the name) > Finish
>
> You don't mention invoking (right mouse click) > Validate, which step
> I'm assuming was performed. Can you confirm that? After that, I'll file
> a bug.
>
> Cheers,
> lc
Re: XSL validation error when file name contains a space [message #264637 is a reply to message #264635] Mon, 22 September 2008 21:06 Go to previous messageGo to next message
Eclipse UserFriend
David Carver wrote:
> Yeah, I cliecked validate and get no errors.

Ok.

>
> Make sure that you don't have anything in your XML Catalog that
> corresponds to the XSL namespace as that could mess you up as well.

I'll check. I have another DTD that has no such problems.

> One other question I'll ask, is which Operating System is this happening
> on?

Debian Lenny, but running the stock version of Eclipse Ganymede.

> I've tested this under Linux and it is work as expected. No
> problems. I'm one of the developers on the XSL Tools project. Also,
> you could try 1.0M2 in a couple of weeks.

OK.

> It'll still work on eclipse
> 3.4. Again if you can give us as much detail as possible we'll try to
> address the problem and reproduce it.

Alright, I'll file a bug tomorrow. As noted, the workaround is to not
put a space into the file name. FWIW, I've also noticed this problem
when RUNning an XSL transform. The output file "sample report.out.html"
generated a runtime error. Eliminating the space solved the issue.

Thank-you for your support!

Cheers,
lc

>
> Dave
>
> Lews Carroll wrote:
>> David Carver wrote:
>>> Lews Carroll wrote:
>>>> Hi,
>>>>
>>>> I noticed that I get the following validation error:
>>>> "cvs-elt.1: Cannot find the declaration of element 'xsl:stylesheet'
>>>>
>>>> when the file has a space e.g. "New File.xsl"
>>>>
>>>> Is this a known issue, a feature, a bug? I don't see anything like
>>>> this on bugs.eclipse.org
>>>>
>>> Hmmm...I just tried this with "New File.xsl". Make sure that you have
>>> the version specified in your styelesheet. Something like the following
>>> should work as I just tried it with XSL Tools 0.5 and greater:
>>
>> Right. I'm running 0.5. I don't find a plugin specifically called "XSL
>> Tools", but I'm assuming I couldn't have come this far w/o that tool
>> set. FWIW, this is not the first DTD I've developed using Eclipse. It is
>> however, the first w/ a space in the file name.
>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <xsl:stylesheet version="1.0"
>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>>> <xsl:template match="/">
>>> <!-- TODO: Auto-generated template -->
>>> </xsl:template>
>>> </xsl:stylesheet>
>>>
>>> Notice the version attributue...if you are using the XSL Tools editor
>>> that version has to be either 1.0 or 2.0.
>>
>> Like the sample you posted, the version number's contained in the
>> template. In fact, I copied the headers from a validating DTD to the
>> problem child and the validation error persisted.
>>
>>> If you are still having a problem please open a bug with a sample XSL
>>> that produces the problem, and the exact steps to reproduce as what
>>> versions you have installed of eclipse, web tools, and xsl tools.
>>
>> I'm concerned that the error is tied to some local setup. It looks like
>> you reproduced the problem as I did: File > New > XSL > (put a space in
>> the name) > Finish
>>
>> You don't mention invoking (right mouse click) > Validate, which step
>> I'm assuming was performed. Can you confirm that? After that, I'll file
>> a bug.
>>
>> Cheers,
>> lc
Re: XSL validation error when file name contains a space [message #264658 is a reply to message #264637] Tue, 23 September 2008 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

One other question I'll ask is which Java Runtime are you using? I know
they did some changes to URL handling in Java 6, so we might be
getting bitten by that as well.

Dave

Lews Carroll wrote:
> Alright, I'll file a bug tomorrow. As noted, the workaround is to not
> put a space into the file name. FWIW, I've also noticed this problem
> when RUNning an XSL transform. The output file "sample report.out.html"
> generated a runtime error. Eliminating the space solved the issue.
>
> Thank-you for your support!
>
> Cheers,
> lc
>
Re: XSL validation error when file name contains a space [message #264667 is a reply to message #264658] Tue, 23 September 2008 12:08 Go to previous messageGo to next message
Eclipse UserFriend
David Carver wrote:
> One other question I'll ask is which Java Runtime are you using? I know
> they did some changes to URL handling in Java 6, so we might be getting
> bitten by that as well.

I'm using Java-6-sun-1.6.0.07

However, in checking this, I noticed that I'm using the Debianized
Java-6. On the plus side, it looks like Debianization affects only
packaging (via scanning changelog.Debian.gz)

I now remember that Debian has accepted Sun Java as of Sun's licensing
changes, and I decided to switch to Debian's version from a stock Java
installation. I'll file the bug report, but honestly I think it's game
over if there's even a chance of this issue being related to the JRE.

Cheers,
lc

>
> Dave
>
> Lews Carroll wrote:
>> Alright, I'll file a bug tomorrow. As noted, the workaround is to not
>> put a space into the file name. FWIW, I've also noticed this problem
>> when RUNning an XSL transform. The output file "sample report.out.html"
>> generated a runtime error. Eliminating the space solved the issue.
>>
>> Thank-you for your support!
>>
>> Cheers,
>> lc
>>
Re: XSL validation error when file name contains a space [message #264670 is a reply to message #264667] Tue, 23 September 2008 13:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Lews Carroll wrote:
> David Carver wrote:
>> One other question I'll ask is which Java Runtime are you using? I know
>> they did some changes to URL handling in Java 6, so we might be getting
>> bitten by that as well.
>
> I'm using Java-6-sun-1.6.0.07
>
> However, in checking this, I noticed that I'm using the Debianized
> Java-6. On the plus side, it looks like Debianization affects only
> packaging (via scanning changelog.Debian.gz)
>
> I now remember that Debian has accepted Sun Java as of Sun's licensing
> changes, and I decided to switch to Debian's version from a stock Java
> installation. I'll file the bug report, but honestly I think it's game
> over if there's even a chance of this issue being related to the JRE.

Well, it's probably something with the URL encoding, and we might be
able to work around it.

If you haven't please do file a bug report, and I'll see if I can get
this fixed for 1.0M3, doubt I'll have time for 1.0M2.

Dave
Re: XSL validation error when file name contains a space [message #264677 is a reply to message #264670] Tue, 23 September 2008 15:19 Go to previous messageGo to next message
Eclipse UserFriend
David Carver wrote:
> Lews Carroll wrote:
>> David Carver wrote:
>>> One other question I'll ask is which Java Runtime are you using? I know
>>> they did some changes to URL handling in Java 6, so we might be getting
>>> bitten by that as well.
>>
>> I'm using Java-6-sun-1.6.0.07
>>
>> However, in checking this, I noticed that I'm using the Debianized
>> Java-6. On the plus side, it looks like Debianization affects only
>> packaging (via scanning changelog.Debian.gz)
>>
>> I now remember that Debian has accepted Sun Java as of Sun's licensing
>> changes, and I decided to switch to Debian's version from a stock Java
>> installation. I'll file the bug report, but honestly I think it's game
>> over if there's even a chance of this issue being related to the JRE.
>
> Well, it's probably something with the URL encoding, and we might be
> able to work around it.
>
> If you haven't please do file a bug report, and I'll see if I can get
> this fixed for 1.0M3, doubt I'll have time for 1.0M2.

Done.

FWIW, XSL doesn't show up as a valid Component. I filed the bug using
the wst.xml component.

Cheers,
lc

>
> Dave
Re: XSL validation error when file name contains a space [message #264683 is a reply to message #264677] Tue, 23 September 2008 15:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

> Done.
>
> FWIW, XSL doesn't show up as a valid Component. I filed the bug using
> the wst.xml component.
>

Do you have the bug number, I can move to the WTP Incubator wtp.inc.xsl
component.

Dave
Re: XSL validation error when file name contains a space [message #264705 is a reply to message #264683] Wed, 24 September 2008 13:07 Go to previous message
Eclipse UserFriend
David Carver wrote:
>> Done.
>>
>> FWIW, XSL doesn't show up as a valid Component. I filed the bug using
>> the wst.xml component.
>>
>
> Do you have the bug number, I can move to the WTP Incubator wtp.inc.xsl
> component.
>
> Dave

[WebTools] Bug#: 248301
Previous Topic:Very slow refreshing of TableViewer
Next Topic:org.eclipse.ui.decorators remove
Goto Forum:
  


Current Time: Sat May 03 17:36:35 EDT 2025

Powered by FUDForum. Page generated in 0.11349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top