[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RELAX + Schematron

  • From: "K.Kawaguchi" <k-kawa@b...>
  • To: Paul Tchistopolskii <paul@q...>
  • Date: Thu, 01 Feb 2001 15:00:02 -0800

relax schematron
> 3. I want to write 2 sometimes using the entities which I've defined at the step 1.
> How can I do that ?

As many other pointed out, combination of Schematron + RELAX (or TREX or
whatever grammar-based language) is possible.

James showed a Schematron-driven combination, so I'll show RELAX-driven

You can add arbitary <assert> and <report>  tag inside <elementRule>.

<elementRule label="foo">
  <s:assert test="count(xxx)=1">
    label 'XXX' always has 'xxx' as its tag name,
   and it can only be appeared once.
    <choice occurs="*">
      <ref label="XXX" />
      <ref label="YYY" />
    <ref label="ZZZ" />

And these assertions are checked with every element that has label "foo".

Probably, you want to use RELAX's labels and roles within XPath
expression. I think that's what you wanted to do.

But IMO, such RELAX-customized (or TREX-customized or whatever) XPath is
a kind of overkill.

E-Mail: k-kawa@b...


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.