Re: original namespace mapping

[email protected] Tue, 21 Dec 2004 15:59:48 -0800 (PST)
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
Hello!

>   Is there a way to retrieve the document-specified mapping between
> user namespace prefixes and the resolve URIs for those prefixes?  It
> looks like this information is lost once ssax:xml->sxml finishes

Yes, there is -- but you need to instantiate the ssax:make-parser
macro in a different way (compared to ssax:xml->sxml) -- so the
namespace prefixes are kept rather than disregarded. Please take
a look at the file
	/SSAX/examples/daml-parse-unparse.scm

in the SSAX CVS repository or distribution. It shows an example of
parsing of XML so that the namespace prefix data is preserved. The
latter is then used to pretty-print SXML back into XML, preserving
the namespace prefixes of the original document. The output of running
the example might be instructive.

	Cheers,
	Oleg


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/