I have problem with namespace in xml (it's xml from supplier) and how to work this out on xsl.
My xml:
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="https://www.website.com/getdata/service/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xmlresponse>
<header>
<reportinformation>
<time>27/06/2017 19:42:07</time>
<reporttype>getcompanyinformation</reporttype>
</reportinformation>
</header>
</xmlresponse>
</string>
And my xsl is
?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:my="https://www.website.com/getdat/service/">
<xsl:output indent="yes" method="xhtml" omit-xml-declaration="yes"/>
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="/my:xmlresponse">
<html>
<head>
<title>www.website.com GetData XML Stylesheet</title>
</head>
<body>
<table>
<tr>
<td><span style="{$reporttitle}">GetData </span></td>
</tr>
<xsl:apply-templates select="my:reportinformation"/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="my:reportinformation">
<tr>
<td align="left">
<table style="{$datatable}">
<tr>
<td><span style="{$prompt}">Timestamp:</span></td>
<td><span style="{$data}"><xsl:value-of select="my:time"/></span></td>
</tr>
<tr>
<td><span style="{$prompt}">Report type:</span></td>
<td><span style="{$data}"><xsl:value-of select="my:reporttype"/></span></td>
</tr>
</table>
</td>
</tr>
</xsl:template>
Problem what I have is displaying information from template reportinformation but not matching/displaying information from main template.
I'm not good in xml, much more in frontend. Good friends what to fix to transforming correctly?
I search on SO and google but still or displaying main template or sub-template.