Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
support-rkalla
Post subject:   PostPosted: Sep 23, 2005 - 09:46 PM
Registered Member
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
sleyzerzon
Post subject:   PostPosted: Sep 23, 2005 - 11:07 PM
Registered Member
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() &gt; 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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 27, 2005 - 05:33 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Simeon,
I answered your question here: http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=43849#43849

Summary: You will need to either download the files or change the page definition to point at the appropriate schema location. Leaving the page as-is isn't valid or understood by the XML parser.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits