[plt-scheme] ssax and namespace handling

From: Stelianos G. Sfakianakis (sgsfak at gmail.com)
Date: Tue Apr 29 06:16:31 EDT 2008

Hi,

I am trying to use the sxml/ssax libraries for parsing WSDL files but
I have a problem with the way namespaces are handled. In particular,
in WSDLs there are namespace prefixes declared that are not used in
the element tags but as values in attributes and these namespace
information is lost when parsed through sxml.

As an example in
http://webservices.daehosting.com/services/isbnservice.wso?WSDL you
can see that in the <definitions> tag there is the namespace
declaration 'xmlns:tns="http://webservices.daehosting.com/ISBN"' but
running the following in DrScheme, version 372

(require (planet "sxml.ss" ("lizorkin" "sxml.plt" 2 0)))
(sxml:document "http://webservices.daehosting.com/services/isbnservice.wso?WSDL"
        '((w . "http://schemas.xmlsoap.org/wsdl/") (s .
"http://schemas.xmlsoap.org/wsdl/soap/")))

keeps only the namespaces that are actually used in elements..

Do you know if there is some workaround for this? Or any other library
that could of use for parsing WSDLs (and supports XPATH :-) )?

Thanks for your time!
Stelios


Posted on the users mailing list.