 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject:
Posted: Sep 23, 2005 - 09:46 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
Simeon,
We've internally tried this with 2 other separate XML editing IDEs and both marked the same problem our editor marked... I'm not sure this file is kosher... (using your sample from above). On a side note I've never seen a schemaLocation with 2 listings in it like thjis one has.
Do you have a product installed that DOES validate this and DOES provide autocomplete for you? |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 23, 2005 - 11:07 PM
|
|
Registered Member


Joined: Nov 03, 2004
Posts: 36
|
|
No, I don't have a product that validates for me, that's what I was hoping ME would do. The file should be ok as I'm using it in my code. Below is another version of a similar drools file that works in my app. On their site, drools has a picture with the XML Spy product doing the autocomplete, but the Eclipse plugin only comes with version 5 of XML Spy, which is not available for us here at work. Here is the link: http://drools.codehaus.org/Schema+Validation take a look at the picture there.
Here's some other .drl file I'm using in my code:
| Code: | <?xml version="1.0"?>
<rule-set name="CalculatorWorker"
xmlns="http://drools.org/rules"
xmlns:java="http://drools.org/semantics/java"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/rules rules.xsd
http://drools.org/semantics/java java.xsd">
<java:import>java.lang.String</java:import>
<java:import>com.csfb.fao.clr.calc.rules.model.Input</java:import>
<rule name="Risk_Facil_1">
<parameter identifier="input">
<class>Input</class>
</parameter>
<java:condition>input.getFppCount() > 0 </java:condition>
<java:consequence>
System.out.println("Calculate RISK_Facil_1");
</java:consequence>
</rule>
<rule name="Risk_Facil_">
<parameter identifier="input">
<class>Input</class>
</parameter>
<java:condition>input.getFppCount() == 0 </java:condition>
<java:consequence>
System.out.println("Calculate RISK_Facil_2");
</java:consequence>
</rule>
</rule-set> |
Hope this is enough information. Thanks for looking into this for me.
Regards,
Simeon |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 27, 2005 - 05:33 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
|
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |