[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] ISO Schematron beginners question: including multiple patterns
- From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
- To: xml-dev@lists.xml.org
- Date: Mon, 14 Jun 2010 18:09:58 -0400
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]