×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

problems to validate dtd

problems to validate dtd

problems to validate dtd

(OP)
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
>

RE: problems to validate dtd

Not a DTD expert, but these need to be fixed...

CODE

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

CODE

<!ELEMENT ent_aprobacion (#PCDATA | fecha | organo | sesion)*)>
> 

Tom Morrison
Micro Focus

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close