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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HMTL data binding displays some items but not others

Status
Not open for further replies.

jj4rm

Programmer
Sep 1, 2003
1
NZ
Hi
I have a xml script which according to xml spy is valid and well formed :). But when I try to display the elements in HTML the policytitle and title show but not the description.

Here is the xml:
<?xml version=&quot;1.0&quot;?>
<!DOCTYPE CASEPOLICY [
<!ELEMENT CASEPOLICY (POLICY*)>
<!ELEMENT POLICY (POLICYTITLE, POLICYITEM*)>
<!ELEMENT POLICYTITLE (#PCDATA)>
<!ELEMENT POLICYITEM (TITLE, DESCRIPTION*)>
<!ELEMENT TITLE (#PCDATA)>
<!ELEMENT DESCRIPTION (#PCDATA)>
]>
<CASEPOLICY>
<POLICY>
<POLICYTITLE>Scope</POLICYTITLE>
<POLICYITEM>
<TITLE>Purpose</TITLE>
<DESCRIPTION>This long sleeve sweater is amazingly soft. A versatile, must-have piece for any wardrobe. Dress up or down for career or casual occasions. </DESCRIPTION>
</POLICYITEM>
<POLICYITEM>
<TITLE>Policy</TITLE>
<DESCRIPTION>It shall be the policy of Case Division to document the generic component of its Quality System. </DESCRIPTION>
<DESCRIPTION> It shall be the policy of... etc </DESCRIPTION>
</POLICYITEM>
<POLICYITEM>
<TITLE>Responsibility</TITLE>
<DESCRIPTION>It shall be the responsibility of .... </DESCRIPTION>
</POLICYITEM>
</POLICY>
</CASEPOLICY>

My HMTL is as follows:

<html>
<head>
<title>test2</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>

</head>

<body leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
<XML ID=&quot;dsoPolicy&quot; SRC=&quot;policy1.xml&quot;></XML>

<TABLE BORDER=&quot;0&quot;>
<THEAD>
<TH>Case ISO Procedures</TH>
</THEAD>
<TR>
<TD><SPAN DATAFLD=&quot;POLICYTITLE&quot; DATASRC=&quot;#dsoPolicy&quot;></SPAN></TD>
</TR>
<TR>
<TD>
<TABLE ID=&quot;items_table&quot; DATASRC=&quot;#dsoPolicy&quot; DATAFLD=&quot;POLICYITEM&quot;
BORDER=0 CELLSPACING=10>
<THEAD>
<TH>Title</TH>
<TH>Description</TH>
</THEAD>
<tbody>
<TR>
<TD><SPAN DATAFLD=&quot;TITLE&quot;></SPAN></TD>
<TD><table ID=&quot;DETAILS&quot; DATASRC=&quot;#dsoPolicy&quot; DATAFLD=&quot;POLICYITEM&quot;
BORDER=0 CELLSPACING=10><TR><TD><SPAN DATAFLD=&quot;DESCRIPTION&quot;></SPAN></TD></TR></TABLE></TD>
</TR></tbody>
</TABLE>
</TD>
</TR>
</TABLE>



</body>
</html>

Any help on this would be much appreciated.

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top