|
Subject: [xsl] using XML elements as attributes in HTML From: Seby <Sebastian.Krueger@xxxxxxxxxxxxx> Date: Wed, 6 Oct 2004 19:16:17 +1300 (NZDT) |
Say I have an XML file like this: <ans:color xmlns:ans="namespace_location"> green </ans:color> <ans:color xmlns:ans="namespace_location"> blue </ans:color>
And I want to produce HTML like this:
<html>
<body>
<font color="green">
some text
</font>
<font color="blue">
some text
</font>
</body>
</html>I think I do something like this:
<xsl:for-each select="/">
<font color="{{/namespace_location}color}">
some text
</font>
</xsl:for-each>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] exsl:document help, Greg Schafer | Thread | RE: [xsl] using XML elements as att, Michael Kay |
| Re: [xsl] exsl:document help, Greg Schafer | Date | RE: [xsl] using XML elements as att, Narang, Prateek |
| Month |