paetje Posted April 4, 2006 Share Posted April 4, 2006 I mad a DTD witch is currentley in use , but I want to optimise this DTD so no mistakes can be made. This is my DTD: <!ELEMENT website (titel?, pagina?)> <!ELEMENT titel (#PCDATA)> <!ELEMENT pagina (paginatitel?, content?, overig?)> <!ELEMENT paginatitel (#PCDATA)> <!ELEMENT content (alinea*)> <!ELEMENT alinea (#PCDATA, nadruk*, tekstlink*, afbeelding*, lijst*, subalinea*)> <!ELEMENT nadruk (#PCDATA)> <!ELEMENT tekstlink (#PCDATA)> <!ELEMENT afbeelding (img+, alt+)> <!ELEMENT img (#PCDATA)> <!ELEMENT alt (#PCDATA)> <!ELEMENT lijst (item+, itemlink*)> <!ELEMENT item (#PCDATA)> <!ELEMENT itemlink (#PCDATA)> <!ELEMENT subalinea (nadruk*)> <!ELEMENT overig (links*, objecten*)> <!ELEMENT links (kop, link+)> <!ELEMENT kop (#PCDATA)> <!ELEMENT link (#PCDATA)> <!ELEMENT object (objectnaam)> <!ELEMENT objectnaam (#PCDATA)> This DTD is used on the program XMetal. When I make a blanc document I get all elements to choose from. But I want a standard document witch contains a couple of set elements. This elements supposed to be: website, titel, pagina, paginatitel, content, overig. On this way I get these elements witch are needed to create a valide page. So the people who will work with this DTD only have to fill in these elements.Does anyone know how I can make this happen? Link to comment Share on other sites More sharing options...
paetje Posted April 4, 2006 Author Share Posted April 4, 2006 I made a couple little changes, all my elements are working the way I want. Only one thing doesn't work. My parent element <website> has to appear automaticley after opening a new file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now