namespaces, which representation to use?

"Oleg A. Paraschenko" <[email protected]> Wed, 8 Dec 2004 08:37:52 +0300
Newsgroups gmane.lisp.scheme.ssax-sxml
Organization xmlhack.ru
Message-ID <[email protected]>
  Hello,

  I'd like to represent an XML document with namespaces in SXML, using
the special "*NAMESPACES*" node and without namespaces shortcuts.


  As I understand, according to SXML specification

<http://okmij.org/ftp/Scheme/SXML.html#Namespaces>,

  XML document

<doc xmlns='my-ns1' xmlns:ns2='my-ns2'>
  <ns3:in a='b' xmlns:ns3='my-ns3' />
</doc>

  represented in SXML as follows:

(my-ns1:doc
  (@ (@ (*NAMESPACES*
    (#{}# "my-ns1")
    (ns2  "my-ns2"))))
  (my-ms2:in
    (@
      (@ (*NAMESPACES* (my-ns3 "my-ns3")))
      (my-ns1:a "b")))))


  But when I looked at links provided by the specification
  
http://pair.com/lisovsky/xml/ns/
http://sourceforge.net/mailarchive/forum.php?thread_id=759249&forum_id=599
http://sourceforge.net/mailarchive/forum.php?thread_id=789156&forum_id=599

  I found an alternative representation which uses the administrative
node "@@".


  So I have a question now. What is the preferred way to specify
namespaces?


  Regards, 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/