Search the web
Sign In
New User? Sign Up
xrules · XRules & DynamicDOM
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Include or Import in XRule   Message List  
Reply | Forward Message #63 of 74 |
RE: [xrules] Re: Include or Import in XRule

True. An implementation of "include" functionality is on the to-do list.

However, XRules provides an added capability to attach multiple XRules
documents to one XML at the same time to allow for the following common
scenario:

- A standards organization has some general rules that all XML documents
must comply with.
- An organization has its own rules that add to the restrictions set by the
standards organization (e.g. limit an enumeration list, or make an optional
element required).
- The organization wants to keep the two XRules documents separate so
changes to one does not need to be coordinated with changes to the other.


When using <include>, the parent document and all the included documents
are treated as one big document. It's useful when you have too many rules
and you want to separate them into multiple files. However, this other
functionality in XRules treats each XRules document separately and allows
you to attach/detach each one separately at run time.

Regards,
Waleed



-----Original Message-----
From: xrules@yahoogroups.com [mailto:xrules@yahoogroups.com] On Behalf Of
David Carver
Sent: Wednesday, January 17, 2007 10:06 AM
To: xrules@yahoogroups.com
Subject: Re: [xrules] Re: Include or Import in XRule

Waleed K. Abdulla wrote:
>
> That's actually easy. DDOM Supports attaching multiple XRules
> documents to one XML document at the same time. No need to use
> <Include> for this; just call the "XRulesDocuments.Add()" method
> multiple times; once for each XRules document you want to attach.
>
> dxml.XRulesDocuments.Add(xrulesDoc1);
>
> dxml.XRulesDocuments.Add(xrulesDoc2);
>
> dxml.XRulesDocuments.Add(xrulesDoc3);
>
Implementing either an XInclude or a xrules specific include would be
more in following with what other XML languages implement, like XML
Schema and XSLT.

Dave




Yahoo! Groups Links







Thu Jan 18, 2007 12:43 am

waleed_ka
Offline Offline
Send Email Send Email

Forward
Message #63 of 74 |
Expand Messages Author Sort by Date

Hi I want to kno XRULE suppot import or include statement for adding another XRule into a XRule file. Best regards Sasan Nikookar...
radobject
Offline Send Email
Jan 16, 2007
11:39 am

Sasan, The current implementation does not support the <include> or <import> elements yet. Regards, Waleed ... From: xrules@yahoogroups.com...
Waleed K. Abdulla
waleed_ka
Offline Send Email
Jan 16, 2007
12:10 pm

How can simulate with XRule or DDOM. I have 1 XML file and 3 Xrule file that I want to run on XML file. Best regards Sasan Nikookar ... <import> ... Behalf Of...
radobject
Offline Send Email
Jan 16, 2007
4:45 pm

That's actually easy. DDOM Supports attaching multiple XRules documents to one XML document at the same time. No need to use <Include> for this; just call the...
Waleed K. Abdulla
waleed_ka
Offline Send Email
Jan 17, 2007
5:44 am

... Implementing either an XInclude or a xrules specific include would be more in following with what other XML languages implement, like XML Schema and XSLT. ...
David Carver
d_a_carver
Online Now Send Email
Jan 17, 2007
6:06 pm

True. An implementation of "include" functionality is on the to-do list. However, XRules provides an added capability to attach multiple XRules documents to...
Waleed K. Abdulla
waleed_ka
Offline Send Email
Jan 18, 2007
12:47 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help