given the following data.xml file:
<?xml-stylesheet type="text/xsl" href="report.xsl"?>
<xml />
I would like to get the following output when accessing http:\\localhost\data.xml?id=my_id:
My id is: my_id
I have the following report.xsl but it does not work for me:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<body>
My id is:
<xsl:param name="id"/>
<xsl:if test="$id=(value)">
<xsl:value-of select="$id"/>
</body>
</xsl:template>
</xsl:stylesheet>