-2
var attr = {node:"<tr> ,id=tr1$<td>,colspan=2,style.width=100%$<div>,id=divlistudcitems$<select>,id=lstListUdcItems,name=lstListUdcItems,size=12,style.width=100%;"}

in the above code i will pass the value of attr to a function createHTML where i need to iterate each and every tag (tr,td,div)using jquery for each. Could anyone advice how to acheive this.

var root=document.getElementById("target")
createHTML(root,attr);
Tom Cruise
  • 1,395
  • 11
  • 30
  • 58
  • 2
    Identical question here: http://stackoverflow.com/questions/585261/is-there-an-xslt-name-of-element. You should probably search a bit more before posting a new question. – tom redfern Sep 14 '11 at 08:04
  • Thank you..i missed the second loop that makes me confused. "" – Tom Cruise Sep 14 '11 at 08:09

1 Answers1

2

Try to use this:

<xsl:for-each select="subclass">
  <xsl:value-of select ="local-name()"/>
</xsl:for-each>

Or

<xsl:for-each select="subclass">
  <xsl:value-of select ="name(.)"/>
</xsl:for-each>
VMAtm
  • 27,943
  • 17
  • 79
  • 125