how to use ip address in xsl
Posted
by
user1597122
on Stack Overflow
See other posts from Stack Overflow
or by user1597122
Published on 2012-10-14T06:50:42Z
Indexed on
2012/10/14
15:37 UTC
Read the original article
Hit count: 130
I'm using xsl to generate html from xsl. I have to use ip address in name of the class in css like this:
<td><div title="delete" >
<xsl:attribute name="class">
delete_link_<xsl:value-of select="destinationIp"/>
</xsl:attribute>
<img class="row-remover" src="/media/img/remove.png"/>
</div></td>
and i have this jquery function:
$('.delete_link_<xsl:value-of select="destinationIp"/>').click( function() {
// do some thing here
});
but because there are 'dots' in ip address, the above code doesn't work. when i remove dots of destinationIp tag in xml file, it works. so i think it has problem with 'dot'. any idea to make it work? really thanks :)
© Stack Overflow or respective owner