Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems to validate dtd

Status
Not open for further replies.

akahawtin

Technical User
Oct 31, 2012
4
ES
Hello
My name is Carlos a i have some problems with this DTD (is not validated)
and i dont know why. Somebody help me please? Thanks

<?xml version="1.0" encoding="UTF-8"?>

<!ELEMENT resolucion (meta, texto)>
<!ELEMENT meta (logo, organizacion, id_resol, organo, distribucion, fecha)>
<!ELEMENT logo EMPTY>
<!ATTLIST logo
url CDATA #REQUIRED
>
<!ELEMENT organizacion (#PCDATA)>
<!ATTLIST organizacion
acron CDATA #REQUIRED
url CDATA #REQUIRED
>
<!ELEMENT id_resol (#PCDATA)>
<!ATTLIST id_resol
organo CDATA #REQUIRED
tipo CDATA #REQUIRED
numero NMTOKEN #REQUIRED
anyo NMTOKEN #REQUIRED
>

<!ELEMENT organo (#PCDATA)>
<!ELEMENT distribucion (#PCDATA)>
<!ELEMENT fecha
<!ATTLIST fecha
fnorm NMTOKEN #REQUIRED
>

<!ELEMENT texto (entradilla, considerandos, decisiones)>
<!ELEMENT entradilla (ent_resol, ent_organo, ent_aprobacion)>
<!ELEMENT ent_resol (#PCDATA)>
<!ELEMENT ent_organo (#PCDATA)>
<!ELEMENT ent_aprobacion (#PCDATA | fecha | organo | sesion)*)>
>
<!ELEMENTsesion (PCDATA)>
<!ELEMENTconisderandos (considerando+)>
<!ELEMENT considerando (p)>
<!ELEMENT p (#PCDATA | enfasis | lugar | entidad | ref)*>
<!ELEMENT enfasis (#PCDATA)>
<!ELEMENT entidad (#PCDATA)>
<!ATTLIST entidad
acron NMTOKEN #IMPLIED
>
<!ELEMENT ref (#PCDATA)
<!ATTLIST ref
url CDATA #REQUIRED
>
<!ELEMENT decisiones (decision+)>
<!ELEMENT decision (p, lista?)>
<!ELEMENT lista (item, lista*)>
<!ATTLIST lista
tipo CDATA #REQUIRED
>
<!ELEMENT item (#PCDATA | enfasis | lugar | entidad | ref)*>
<!ELEMENT lista (item*)>
<!ATTLIST lista
tipo CDATA #REQUIRED
>
 
Not a DTD expert, but these need to be fixed...

Code:
<!ELEMENT organo (#PCDATA)>
<!ELEMENT distribucion (#PCDATA)>
<!ELEMENT fecha[COLOR=#EF2929] [u][b]?????[/b][/u][/color]
<!ATTLIST fecha
fnorm NMTOKEN #REQUIRED
>
and
Code:
<!ELEMENT ent_aprobacion (#PCDATA | fecha | organo | sesion[COLOR=#EF2929][b])*)[/b][/color]>
[COLOR=#EF2929][b]>[/b][/color]

Tom Morrison
Micro Focus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top