[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [wtp-incubator-dev] Outstanding CQ questions | 
DOUG SATCHWELL wrote:
There is a way that we can do this without using the XML Catalog.
In the X-Assist code there is a wizard for creating XSL projects - it 
adds the WST validator as a builder to the project. We could also add 
radio buttons that allow the user to choose whether the project is a 
XSLT 1.0 or and XSLT 2.0 project. Then when the validator runs, it can 
apply 1.0 or 2.0 validation to the entire project depending on how it 
was set up.
This would be a bit like choosing whether the project is JRE 1.4 or 
1.5 for Java (changing between them would force a 'rebuild').
What do you think?
Unfortunately for me it's not uncommon for me to have a mixture of 1.0 
and 2.0 stylesheets within a project.  So that won't work.   I know that 
I'm not the only person that would have that mixture in any particular 
project now.
Ideally, we need to be able to tell on the fly after reading the version 
attribute which grammar to use.  If the version attributes value changes 
then switch the grammar.  This is the jist of the following bug request:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=210413
An editor should be able to force a particular grammar to be used, and 
it needs to happen dynamically.