Hi everyone,
I have an XML file that I want to transform using an XSLT. It only works when I remove all the attributes from the following part of the XML file:
<DiscoveryClientData
xmlns="http://www.frontrange.com/centennial/discovery"
SchemaVersion="0.6"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.frontrange.com/centennial/discovery DiscoveryClientData-0.6.xsd"
/>
The XSLT starts off like this:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:template match="DiscoveryClientData">
Does anyone have any idea why this might be failing? The failure is that it doesn't place any element tags around the transformed data, it just spits it all out in one continuous string.
Thanks!
Edit: Ok, the example given below works, but is there a way I can define the prefix only once in the XSLT file? So I don't have to re-write my whole XSLT file? Thanks.