Hi,
I have a simple XML which is autogeneraated.So the nodes are dynamic and some system information nodes like sequence,client id etc is static and fixed notes.
I would like to display all nodes except theses static nodes like sequence and client.can we have a sort adn match creteria in xsl using 'like or wild cards'
eg:
the static elements start with S and C so how can i rewrite the following xsl .Current i ahve to change the xsl and write all node which i want to display
for example if i want to display the below mentioned nodes
AppName,Name and SerialNumber and not static nodes like starting with S or C (They also lies in the element node)
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/">
<html>
<body>
<table border="1">
<tr bgcolor="#9acd32">
<th>AppName</th>
<th>Name</th>
<th>Serial Number</th>
</tr>
<xsl:for-each select="Report/Element">
<xsl:sort select="Name"/>
<tr>
<td><xsl:value-of select="App_Name"/></td>
<td><xsl:value-of select="Name"/></td>
<td><xsl:value-of select="Serial Number"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Could you please tell me what is the error in the above XSL
thanks
I have a simple XML which is autogeneraated.So the nodes are dynamic and some system information nodes like sequence,client id etc is static and fixed notes.
I would like to display all nodes except theses static nodes like sequence and client.can we have a sort adn match creteria in xsl using 'like or wild cards'
eg:
the static elements start with S and C so how can i rewrite the following xsl .Current i ahve to change the xsl and write all node which i want to display
for example if i want to display the below mentioned nodes
AppName,Name and SerialNumber and not static nodes like starting with S or C (They also lies in the element node)
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/">
<html>
<body>
<table border="1">
<tr bgcolor="#9acd32">
<th>AppName</th>
<th>Name</th>
<th>Serial Number</th>
</tr>
<xsl:for-each select="Report/Element">
<xsl:sort select="Name"/>
<tr>
<td><xsl:value-of select="App_Name"/></td>
<td><xsl:value-of select="Name"/></td>
<td><xsl:value-of select="Serial Number"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Could you please tell me what is the error in the above XSL
thanks