S
Sue
I am trying to use <emphasis> tag to encapsulate the target word/
phrase and the <hidden.text> element to encapsulate the definition
with the <hidden.text> element contained within the <emphasis>
element.
This requires a structural change to the DTD. So We have defined this
in DTD as :
<!ELEMENT emphasis (#PCDATA, hidden.text?, #PCDATA)>
DTD validation fails in this case because of the 2nd occurrence of
#PCDATA.
If I change the DTD structure to:
<!ELEMENT emphasis (text1, hidden.text?, text2)>
<!ELEMENT text1 (#PCDATA)>
<!ELEMENT text2 (#PCDATA)>
This means that I need to have additional 2 tags for text1 and text2
in the XML file to make the XML valid.
Can anyone of you think of any other solution to this problem?
phrase and the <hidden.text> element to encapsulate the definition
with the <hidden.text> element contained within the <emphasis>
element.
This requires a structural change to the DTD. So We have defined this
in DTD as :
<!ELEMENT emphasis (#PCDATA, hidden.text?, #PCDATA)>
DTD validation fails in this case because of the 2nd occurrence of
#PCDATA.
If I change the DTD structure to:
<!ELEMENT emphasis (text1, hidden.text?, text2)>
<!ELEMENT text1 (#PCDATA)>
<!ELEMENT text2 (#PCDATA)>
This means that I need to have additional 2 tags for text1 and text2
in the XML file to make the XML valid.
Can anyone of you think of any other solution to this problem?