I havent used relax-ng before, is it easy to learn? IS it also simple to
validate it against the xml file?
Or would it be easier to solve the key attrbute problem using a second
validation schematron (i havent done this either!)
>From: "G. Ken Holman" <[log in to unmask]>
>Reply-To: General discussion of Extensible Markup Language
><[log in to unmask]>
>To: [log in to unmask]
>Subject: Re: dtd nested elements
>Date: Tue, 3 Feb 2004 08:32:49 -0500
>At 2004-02-03 10:06 +0000, james walker wrote:
>>If i have a subsection element which can be nested within itself like
>>how do i create an attribute "key" such that it is compulsary to have a
>>for all subsections within a section, but they are not allowed in
>>subsections nested in other subsections as shown above?
>You cannot ask for that in DTD-speak, there are no context dependencies in
>content models. Again you would need to rely on a second validation
>process using Schematron to confirm the conditions.
>BTW, you can ask for what you need by using RELAX-NG for your document
>model constraint language.
>Public courses: sign up for one or both soon to reserve your seat!
>Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
>Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22
>Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24
>World-wide on-site corporate, government & user group XML training
>G. Ken Holman mailto:[log in to unmask]
>Crane Softwrights Ltd. http://www.CraneSoftwrights.com/l/
>Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
>Male Breast Cancer Awareness http://www.CraneSoftwrights.com/l/bc
It's fast, it's easy and it's free. Get MSN Messenger today!