PDA

View Full Version : Paring XML Attributes in HTML


s34n
07-13-2006, 05:05 PM
I have an XML sheet, and i wish to extract the attributes of the objects rather than the elements...

<html>
<body>

<xml id="XmlExport" src="sheet"></xml>

<table border="1" datasrc="#XmlExport">
<tr>
<td><span datafld="llnode"></span></td>
</tr>
</table>

</body>
</html>


i understand this is used for elements, but i needf attribute names of the objects as the elements are empty

thanks

s34n
07-31-2006, 03:01 PM
it doesnt have to be HTML, it can be any sort of IE or mozilla compatible sheet (xhtml, shtml etc...) which can run without any external dependencies (ie. not php, asp)

many thanks

probey20
08-14-2006, 10:17 PM
In XSLT, you would refer to the attribute with an "@" sign, like this:

<xsl:value-of select="@id"/>

Does this help? Maybe I'm not understanding your question...

Sarah