| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- $Id: nvdl.nvdl,v 1.2 2004/05/30 14:37:33 makoto Exp $ --> |
| 3 |
<!-- |
| 4 |
|
| 5 |
Inline schemas in NVDL schemas are explicitly allowed by nvdl.rnc. |
| 6 |
This schema allows other |
| 7 |
--> |
| 8 |
<rules startMode="root" xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"> |
| 9 |
<mode name="root"> |
| 10 |
<namespace ns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"> |
| 11 |
<validate schema="nvdl.rng"> |
| 12 |
<mode> |
| 13 |
<namespace ns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0" match="attributes"> |
| 14 |
<reject/> |
| 15 |
</namespace> |
| 16 |
<!-- If we do not allow attribute sections for null URIs, we do not need |
| 17 |
the following <namespace> --> |
| 18 |
<namespace ns="" match="attributes"> |
| 19 |
<attach/> |
| 20 |
</namespace> |
| 21 |
<anyNamespace match="elements attributes"> |
| 22 |
<!-- This action allows any foreign elements and attributes silently. --> |
| 23 |
<allow> |
| 24 |
<mode> |
| 25 |
<anyNamespace> |
| 26 |
<attach/> |
| 27 |
</anyNamespace> |
| 28 |
</mode> |
| 29 |
</allow> |
| 30 |
</anyNamespace> |
| 31 |
</mode> |
| 32 |
<context path="schema"> |
| 33 |
<mode> |
| 34 |
<namespace ns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0" match="attributes"> |
| 35 |
<reject/> |
| 36 |
</namespace> |
| 37 |
<namespace ns="" match="attributes"> |
| 38 |
<attach/> |
| 39 |
</namespace> |
| 40 |
<anyNamespace match="attributes"> |
| 41 |
<allow/> |
| 42 |
</anyNamespace> |
| 43 |
<anyNamespace match="elements"> |
| 44 |
<!-- This action allows the entire subtree to be validated against nvdl.rnc. --> |
| 45 |
<attach> |
| 46 |
<mode> |
| 47 |
<anyNamespace> |
| 48 |
<attach/> |
| 49 |
</anyNamespace> |
| 50 |
</mode> |
| 51 |
</attach> |
| 52 |
</anyNamespace> |
| 53 |
<!-- If we do not allow attribute sections for null URIs, we do not need |
| 54 |
the following <namespace> --> |
| 55 |
</mode> |
| 56 |
</context> |
| 57 |
<context path="message"> |
| 58 |
<mode> |
| 59 |
<namespace ns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0" match="attributes"> |
| 60 |
<reject/> |
| 61 |
</namespace> |
| 62 |
<!-- If we do not allow attribute sections for null URIs, we do not need |
| 63 |
the following <namespace> --> |
| 64 |
<namespace ns="" match="attributes"> |
| 65 |
<attach/> |
| 66 |
</namespace> |
| 67 |
<namespace ns="http://www.w3.org/XML/1998/namespace" match="attributes"> |
| 68 |
<!-- This action allows xml:* to be validated against ndvl.rnc. --> |
| 69 |
<attach/> |
| 70 |
</namespace> |
| 71 |
<anyNamespace match="attributes"> |
| 72 |
<allow/> |
| 73 |
</anyNamespace> |
| 74 |
<anyNamespace match="elements"> |
| 75 |
<reject/> |
| 76 |
</anyNamespace> |
| 77 |
</mode> |
| 78 |
</context> |
| 79 |
</validate> |
| 80 |
</namespace> |
| 81 |
</mode> |
| 82 |
</rules> |