• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

xml data binding in IE5 - using values as attributes

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
David Buchwald
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
david, I've got a need for you to give me some tutorial time.
Send me a message at buntau@msn.com.
Thanks,
Glenn Jeffery
 
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!