Subject:xsl works with xmlspy but not with saxon Author:Nadège Griesser Date:27 Nov 2006 12:08 PM
Hi
I have created a stylesheet under xmlspy to transform the following xml file :
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
<header xmlns="xmlapi_1.0">
<requestID>XmlApiClient:26</requestID>
</header>
</SOAP:Header>
<SOAP:Body>
<findResponse xmlns="xmlapi_1.0">
<result>
<netw.NetworkElement>
<location>N/A</location>
</netw.NetworkElement>
</result>
</findResponse>
</SOAP:Body>
</SOAP:Envelope>
When applying the stylesheet with xmlspy, I get the result that I want :
<?xml version="1.0" encoding="UTF-8"?>
<IP_MPLS>
<NE ID="10.1.1.223">
<INFO>
<LOCATION>N/A</LOCATION>
</INFO>
</NE>
</IP_MPLS>
When applying the stylesheet with java (Saxon), I get an "empty" result (and no error message) :
<?xml version="1.0" encoding="utf-8"?>