DTD question about ATTLIS
Are you missing a feature? Request its implementation here.
DTD question about ATTLIS
Post by rahul1_parekh »
Hi,
Sample of a DTD file for an XML.
<!ELEMENT SEGMENT ( SEG1 | SEG2 | SEG3 )>
<!ATTLIST SEGMENT
ACTION (ACTION1 | ACTION2)
TYPE = XYZ
>
Now if I use this dtd, then the attribute “TYPE†of the element “SEGMENT†will have the value “XYZ†for all the possible elements in the XML (i.e SEG1 or SEG2 or SEG3)
Is there any way by which I can check some condition (say for example, whether the “SEGMENT†is “SEG1†or “SEG2†or “SEG3â€) and then decide the value of the attribute “TYPE†(something like if .. else) ?
Can anyone please help me ?
Thanks,
Rahul
Sample of a DTD file for an XML.
<!ELEMENT SEGMENT ( SEG1 | SEG2 | SEG3 )>
<!ATTLIST SEGMENT
ACTION (ACTION1 | ACTION2)
TYPE = XYZ
>
Now if I use this dtd, then the attribute “TYPE†of the element “SEGMENT†will have the value “XYZ†for all the possible elements in the XML (i.e SEG1 or SEG2 or SEG3)
Is there any way by which I can check some condition (say for example, whether the “SEGMENT†is “SEG1†or “SEG2†or “SEG3â€) and then decide the value of the attribute “TYPE†(something like if .. else) ?
Can anyone please help me ?
Thanks,
Rahul
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service