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

Re: ISO Schematron beginners question: including multiple patt

  • From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
  • To: xml-dev@lists.xml.org
  • Date: Mon, 14 Jun 2010 18:09:58 -0400

Re:  ISO Schematron beginners question: including multiple patt
You aren't missing anything.

The way <sch:include> is designed, the entire contents of the 
referenced XML file are incorporated at the point, thus because it is 
a standalone XML file it can be only a single element.

Schematron is currently under revision.  One possible suggestion you 
could make would be to add some semantics such that, perhaps, if the 
<sch:include href=""> points to a document whose document element is 
<sch:include> (without href=) then that document element is 
interpreted as a wrapper and the contents are then "unwrapped" when 
included where referenced.

Just something that has come to mind ... I haven't suggested it 
myself.  But then I think your requirement would be met in the 
revised specification.

I hope this is helpful.

. . . . . . . . . Ken

At 2010-06-14 21:40 +0200, stf@snafu.de wrote:
>as far as I can see, with Schematron it is not possiple to include
>multiple sch:patterns from an external file - sch:include accepts only
>well formed xml, and there is no grouping element (like <define/> in
>RelaxNG) to surround multiple sch:patterns.
>
>Did I miss something? Have you any suggestions for a workaround?


--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.