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