XSLT - Hyphen in XML root element



XSLT is not finding the root element if it has hyphen in it: hello 3426-4114(11)X6013-4 Journal 1526-4114


Here is the XSLT script:



<xsl:template match="/">
<html>
<body>
<xsl:apply-templates select="serial-issue"/>
</body>
</html>
</xsl:template>

<xsl:template match="issue-info">
<test><xsl:value-of select="jid"/>
</xsl:template>


The above script is not working. It works if 'serial-issue' is changed to 'serialissue'. Can you please help?


No comments:

Post a Comment