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
xrules schema documentation   Message List  
Reply | Forward Message #30 of 74 |
RE: [xrules] xrules schema documentation


The plan for documentation elements is to follow the same approach that
RelaxNG uses: to use documentation and annotations from other
well-defined namespaces rather than creating these elements. For
example, you can use Dublin Core annotations or even XHTML documentation
inside XRules documents; the XRules processor should ignore any elements
that are not in the XRules namespace. For example:

<xr:rules xmlns:xr="http://www.xrules.org/2003/11"
xmlns:dc=" http://purl.org/dc/elements/1.1/">

<xr:ruleset context="//Address">
<dc:title>Test Ruleset </dc:title>
<dc:creator>John Doe</dc:creator>
<dc:subject>Validate Address Components</dc:subject>
dc:description>….</dc:description>

<xr:validate ... /> <xs:schema

</xr:ruleset>
</xr:rules>


This is not yet in the current version on the site, but it's only a
minor change in the XRules schema file to enable it. The code of the
DynamicDOM is designed to ignore elements of other namespaces. I'll make
this change in the next couple days and post it to this list.

As for an XSLT to prettify XRules, I don't have anything like that.
XmlVoyager is an XML annotation tool for cases when you want to attach
descriptions or comments to XML nodes and display them in a
hierarchical/tabular format.

Regards,
Waleed



-----Original Message-----
From: xrules@yahoogroups.com [mailto:xrules@yahoogroups.com] On Behalf
Of mike61079
Sent: Thursday, June 01, 2006 9:53 AM
To: xrules@yahoogroups.com
Subject: [xrules] xrules schema documentation

I find myself needing to document the XRules. So maybe a <
documentation> tag in the XRules XML Schema?

Also do you have a XSLT to "prettify" the rules so they can be
presented in a nice format for someone to look at (even if it's just
me)? I was a little unclear what XMLVoyager is used for so that might
be what I am looking for?









Yahoo! Groups Links










Thu Jun 1, 2006 9:00 pm

waleed_ka
Offline Offline
Send Email Send Email

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

I find myself needing to document the XRules. So maybe a < documentation> tag in the XRules XML Schema? Also do you have a XSLT to "prettify" the rules so they...
mike61079
Offline Send Email
Jun 1, 2006
4:55 pm

The plan for documentation elements is to follow the same approach that RelaxNG uses: to use documentation and annotations from other well-defined namespaces...
Waleed K. Abdulla
waleed_ka
Offline Send Email
Jun 1, 2006
9:02 pm
Advanced

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