I am having a problem using Saxon 6.4 when doing a transform.
How do you use the default namespace when doing a transform. I have tried
many forms of XPATH, but i cannot get any data. If i remove " xmlns="EN" from the envelope in the XML
everything works fine. The problem is i cannot remove that information.
Hopefully someone can help with this.
I have included my XSL and XML
************** XML ******************
<?xml version="1.0" encoding="UTF-8"?>
<Envelope targetNamespace="EN" xmlns="EN" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:IM="IM" xmlns:FD="FD" xmlns:AM="AM" xmlns:EX="EX" version="en.xsd, v1.0, 21-May-2001">
<Header actor="
www.ta.com" mustUnderstand="1">
<Manifest>
<MessageType>
<InquiryMsg>
<FP>
<FPID>XXX</FPID>
</FP>
<FundEntity>
<FundNbr>5894</FundNbr>
</FundEntity>
<InquiryMsgName>PosSum</In
quiryMsgNa
me>
</InquiryMsg>
</MessageType>
<PTDIn>D</PTDIn>
</Manifest>
<Delivery>
<Message>
<MessageID>1</MessageID>
<TimeStamp>2000-09-22T18:3
9:09</Time
Stamp>
</Message>
<From>
<XMLSwitch>
<XMLSwitchID>XMLSID</XMLSw
itchID>
<XMLSwitchAddress>www.xyz.com</XMLSwi
tchAddress
>
</XMLSwitch> <ReferenceID>ZZZZZZZZZZZZZ
ZZ</Refere
nceID>
</From>
<To> <!-- (ToAddress )-->
<ToAddress>
www.ta.com</ToAddress>
</To>
<RouteHistory>
<Originator>
www.sp.com</Originator>
<RouteTo>
<ReceiveTime>2000-09-22T18
:39:08</Re
ceiveTime>
<ReleaseTime>2000-09-22T18
:39:08</Re
leaseTime>
<RouteAddress>xmlswitch.pr
od.nscc.co
m</RouteAd
dress>
</RouteTo>
<RouteTo>
<ReceiveTime>2000-09-22T18
:39:10</Re
ceiveTime>
<ReleaseTime>2000-09-22T18
:39:11</Re
leaseTime>
<RouteAddress></RouteAddre
ss>
</RouteTo>
</RouteHistory>
</Delivery>
</Header>
<Body>
<SOAP:Fault xmlns="
http://www.fidelity.com/fiis/TASchema" xmlns:SOAP="
http://www.w3c.org/2000/10/XMLSchema">
<SOAP:faultcode>300</SOAP:
faultcode>
<SOAP:faultstring>Invalid Request</SOAP:faultstring>
<SOAP:detail>
<errorcode>B001</errorcode
>
<message>soapmethodname Post Parameter is missing or invalid</message>
</SOAP:detail></SOAP:Fault
>
</Body>
</Envelope>
************* END XML ****************
************* XSL ******************
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns="EN"
xmlns:SOAP="
http://www.w3c.org/2000/10/XMLSchema"
xmlns:java="saxon://com.fm
r.fiis.fts
.core.util
.CFtsUtil"
exclude-result-prefixes="j
ava SOAP"
version="1.0" >
<xsl:output method = "xml" indent = "yes" encoding="UTF-8" version="1.0"/>
<xsl:template match = "/">
<Envelope targetNamespace="EN" xmlns="EN" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:IM="IM" xmlns:FD="FD" xmlns:AM="AM" xmlns:EX="EX" version="en.xsd, v1.0, 21-May-2001">
<Body>
<Fault>
<faultcode>
<xsl:value-of select = "//Envelope//Body//SOAP:Fa
ult" />
</faultcode>
</Fault>
</Body>
</Envelope>
</xsl:template>
</xsl:stylesheet>
************ END XSL ***************