Is it possible to use the numeric value within a given tag to define an HTML table cell width (using IE5, MSXML and its data binding DSO functions. i.e. using an xml document like: <?xml version="1.0"?> <data> <value>32</value> </data> and having HTML like: <xml id="data" src="data.xml"></xml> <TABLE> <tr> <td width=<span dataSrc="#data" dataFld="value"></span>% height=17px> </td> </tr> </table> which would take the value 32 from the xml document and define the table cell width = 32%. I know what I have here: width=<span dataSrc="#data" dataFld="value"></span> will not work... What I would like to know is if it is even possible, and if so, what would the syntax be?
posted 18 years ago
I found a solution to this problem. Just code the HTML as the data value in the XML document and specify DATAFORMATAS="HTML" in the <SPAN> tag. (it defaults to "TEXT"). This will then render the XML data value as HTML.