Hi,
I have the following DTD and XML data. It uses ATTLIST to describe the attributes of 'name'. I want to display the attlist contents using an XSL file.
For example, using the XSL template, I need it to be displayed as:
Fred
25
15th Dec 1962
0123428374
Is this possible? A sample of the DTD and XML is shown below.
<!DOCTYPE address_book [
<!ELEMENT address_book ( name, tel_no, ) >
<!ELEMENT name ( #PCDATA } >
<!ELEMENT tel_no ( #PCDATA ) >
<!ATTLIST name
age (CDATA) #REQUIRED
birthday (CDATA) #REQUIRED >
]>
<address_book>
<name age="25" birthday="15th Dec 1962">Fred</name>
<tel_no>0123428374</tel_no>
</address_book>
I have the following DTD and XML data. It uses ATTLIST to describe the attributes of 'name'. I want to display the attlist contents using an XSL file.
For example, using the XSL template, I need it to be displayed as:
Fred
25
15th Dec 1962
0123428374
Is this possible? A sample of the DTD and XML is shown below.
<!DOCTYPE address_book [
<!ELEMENT address_book ( name, tel_no, ) >
<!ELEMENT name ( #PCDATA } >
<!ELEMENT tel_no ( #PCDATA ) >
<!ATTLIST name
age (CDATA) #REQUIRED
birthday (CDATA) #REQUIRED >
]>
<address_book>
<name age="25" birthday="15th Dec 1962">Fred</name>
<tel_no>0123428374</tel_no>
</address_book>