Hello i have these two files:
Ej1.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="prue1.xslt"?>
<isa:ISAApplication xmlns:isa="http://xxxx">
<refId>olatesting</refId>
<refId2>olatesting2</refId2>
</isa:ISAApplication>
prue1.xslt:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="ISAApplication">
<html>
<body>
<xsl:value-of select="/refId"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Im trying just to retrieve the first "refId", but it is displaying both like this:
olatestingolatesting2
How can i get just "olatesting"
Thank you
No comments:
Post a Comment