[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: The data at the root level is invalid+xslt
On 21/02/2012 22:49, ram wrote:
Guys, Without compilation and running the program, how can i say that there is problem with my xsl, Rather than arguing the syntax errors you can look at the real problem too
> (I know its not job of yours and your experts and helping hands for new guys.) I have corrected the request and code multiple times and round and round coming to the same point syntax problem blah blah.
Your corrected stylesheet produces this result on the posted xml (using saxon6 as a reference xslt 1 implementation) <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tri="http://abc.com/WebServices.Common" xmlns:ns="http://abc.com/Case/471" xmlns:con="http://xyz.com/eb/context" xmlns:head="http://xyz.com/eb/header"> <soapenv:Header><ActivityId xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics" CorrelationId="">?</ActivityId><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken><wsse:Username/><wsse:Password>1</wsse:Password></wsse:UsernameToken></wsse:Security></soapenv:Header> <soapenv:Body> <ns:Search> <ns:request> <tri:SessionId>?</tri:SessionId> <ns:Member> <ns:MemberId>?</ns:MemberId> <ns:SystemId>?</ns:SystemId> </ns:Member> <ns:Pagination> <ns:CurrentPageNumber>?</ns:CurrentPageNumber> </ns:Pagination> </ns:request> </ns:Search> </soapenv:Body> </soapenv:Envelope>
When i do the validation for the generated xml in xmlspy i got the following error. On the other hand this is clearly an error:
but presumably related to the details of the way you are calling your stylesheet which we don't know (and is probably more related to the programing language used in your calling framework than xslt) since the xslt runs without error when applied directly. David
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|