xsl-list
[Top] [All Lists]

dtd limit depth of elements

2003-01-25 07:43:16
Hy,

again another dtd question.

I have a sect element, which I would like to have only 3 levels of depth inside 
itself.
And in this section and the 2 under the first there can be other elements like 
list,para and so on.

So that this xml code should be valid:
<sect>
        <sect>
                <sect>
                        <list>
                                <entry>test<entry>
                        </list>
                </sect>
                <para>bla</para>
        </sect>
        <para>next bla</para>
</sect>

But another sect inside the third has to be invalid!
So, how can i limit the depth of elements inside a dtd?

I had a look at the xml-dev maillist archive but didn't find an example, so I 
hope someone in this list knows it.
Thanks,again :-)

Homer30s


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>