Trying to figure out why this is not working. I have followed the instructions on W3Schools XSLT Docs and as well W3Schools XPath Docs and I keep on getting null for the "MeterNo" value of the "MeterInfo" tag.
XSLT
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
exclude-result-prefixes="msxsl">
<xsl:template match="/">
<MeterInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MeterNo>
<xsl:value-of select="Template[@name='MyTemplateName']/Field[@name='MyFieldName']"/>
</MeterNo>
</MeterInfo>
</xsl:template>
XML
<?xml version="1.0" encoding="utf-8"?>
<ProcessHostRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.utilitysolutions.cgi.com/UHIB-1_0">
<DataArea>
<Process xmlns="http://www.openapplications.org/oagis" />
<HostRequest>
<Template name="MyTemplateName">
<Field name="MyFieldName">
8768565
</Field>
</Template>
</HostRequest>
</DataArea>
</ProcessHostRequest>
My Transformation Response
<?xml version="1.0" encoding="UTF-8"?>
<MeterInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MeterNo/>
</MeterInfo>