Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » validating XSLT
validating XSLT [message #72441] Tue, 08 February 2005 18:23 Go to next message
Eclipse UserFriend
Is there are way to validate a .xsl file as xml? It seems like I can
only run the xml validation on a file with a .xml extension.

I have looked under "validation" and "web and xml" preferences, but
there doesn't seem to be any way to specify file extensions that should
be regarded as xml.

Also, is there a way to test an xslt document against an xml file?

Dan Simmonds
Re: validating XSLT [message #72459 is a reply to message #72441] Tue, 08 February 2005 21:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dan,

>Is there are way to validate a .xsl file as xml? It seems like I can
>only run the xml validation on a file with a .xml extension.
>
>I have looked under "validation" and "web and xml" preferences, but
>there doesn't seem to be any way to specify file extensions that should
>be regarded as xml.

Craig Salter and I spoke about the idea of associating an extension with a
certain file type (which would in turn associate editors and validators
with the file type) but nothing has been done yet. Please open a bug
report for this.

>Also, is there a way to test an xslt document against an xml file?

I'm not sure what you mean here. Do you want to test an XSL file against a
schema? Do you want to run an XSL transformation?


Lawrence
Re: validating XSLT [message #72493 is a reply to message #72459] Tue, 08 February 2005 22:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: WhiteKnucklesMail-docs.yahoo.com

Altova XML Spy has a free executable that plugs their XML Spy Home
version software into eclipse. It definitely handles xml validation and
I think it may handle xslt as well.

On the downside, it wants to handle many file types - such as .jsp - but
is not nearly as nice as the WTP in that regard. However, you probably
know better than I how to control which plugin handles which file type.

I hope this helps.

Lawrence Mandel wrote:
> Hi Dan,
>
>
>>Is there are way to validate a .xsl file as xml? It seems like I can
>>only run the xml validation on a file with a .xml extension.
>>
>>I have looked under "validation" and "web and xml" preferences, but
>>there doesn't seem to be any way to specify file extensions that should
>>be regarded as xml.
>
>
> Craig Salter and I spoke about the idea of associating an extension with a
> certain file type (which would in turn associate editors and validators
> with the file type) but nothing has been done yet. Please open a bug
> report for this.
>
>
>>Also, is there a way to test an xslt document against an xml file?
>
>
> I'm not sure what you mean here. Do you want to test an XSL file against a
> schema? Do you want to run an XSL transformation?
>
>
> Lawrence
Re: validating XSLT [message #72511 is a reply to message #72459] Tue, 08 February 2005 22:26 Go to previous message
Eclipse UserFriend
Lawrence Mandel wrote:

> Craig Salter and I spoke about the idea of associating an extension with a
> certain file type (which would in turn associate editors and validators
> with the file type) but nothing has been done yet. Please open a bug
> report for this.

Thanks, I'll do that.


> I'm not sure what you mean here. Do you want to test an XSL file against a
> schema? Do you want to run an XSL transformation?

Sorry, I should have been more clear on this. I want to perform a
transformation from within eclipse, to test my XSLT against some XML.
Testing against a straight XML file would be fine, but testing the XSLT
against the output of a java method would be even better. Also, the
ability to run the xsl transformation through a debugger would be
awesome. I've seen this in Websphere Studio, and I wasn't sure if it
came out of a WTP feature that I haven't discovered.

Dan.
Previous Topic:Q. Formating JSP screws up document
Next Topic:A HowTo about creating a J2EE EAR with WTP
Goto Forum:
  


Current Time: Sun Jun 08 01:20:09 EDT 2025

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

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

Back to the top