At 2004-02-03 10:06 +0000, james walker wrote:
>If i have a subsection element which can be nested within itself like this:
>how do i create an attribute "key" such that it is compulsary to have a key
>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