P
Pablo
Hello,
I wrote an xslt to apply to a XML. The output that I expect is:
<TEST>
Test Output
</TEST>
But i get en empty XML...I know that is a problem of the namespace in
XML but I don't know how solve it...so please...someone could explain
me what is wrong?
Thank you in advance.
---
XML FILE
---
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="TestAxis" provider="java:RPC" style="rpc"
use="encoded">
<parameter name="wsdlTargetNamespace" value="http://www.xyz.com"/>
</service>
</deployment>
---
---
XSLT FILE
---
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
<xslutput method = "xml" indent = "yes"/>
<xsl:template match = "deployment">
<TEST>
<xsl:apply-templates select="service"/>
</TEST>
</xsl:template>
<xsl:template match = "deployment">
Test Output
</xsl:template>
</xsl:stylesheet>
---
I wrote an xslt to apply to a XML. The output that I expect is:
<TEST>
Test Output
</TEST>
But i get en empty XML...I know that is a problem of the namespace in
XML but I don't know how solve it...so please...someone could explain
me what is wrong?
Thank you in advance.
---
XML FILE
---
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="TestAxis" provider="java:RPC" style="rpc"
use="encoded">
<parameter name="wsdlTargetNamespace" value="http://www.xyz.com"/>
</service>
</deployment>
---
---
XSLT FILE
---
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
<xslutput method = "xml" indent = "yes"/>
<xsl:template match = "deployment">
<TEST>
<xsl:apply-templates select="service"/>
</TEST>
</xsl:template>
<xsl:template match = "deployment">
Test Output
</xsl:template>
</xsl:stylesheet>
---