Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [Discussion] XML name space for ML dialect

From: bry:itnisk at: 12-Nov-2002 10:01

>Though I don't use XML name spaces in my HTML code generated by my ML >dialect (and so I haven't implemented this in my dialect), I am
concerned
>that some people may be needing this feature to generate XML code. >I'm thinking that the following could be used to indicate a different
name
>space: > ML [ > math: [ > div "x/2" ; Use a mathemathical division. > ] > ] >Note that Rebol set-word! value "math:" indicates the name space "math"
and
>so after processing by 'ML, the generated XML is like this: > "<math:div>x/2</math:div>"
then would the following ML [ math: [ div "x/2" xmlns:math http://www.somestupidurihere.org ] ] give math:div xmlns:math="http://www.somestupidurihere.org" ? most often what you see is something like this: <document xmlns="http://www.defaultnamespace.com" xmlns:tag="urn:someothernamespace.org:tag"> <p>here's some text in our default namespace<tag:text> here's some text in the tag namespace</tag:text> here we are back in the default namespace</p> </document>
>I'm uncertain if the above two tags are correct. Corrections would be >appreciated.
What do you think would be wrong with them?
>If you're using (or about to use) my ML dialect, would the above
feature be
>useful to you?
Most definitely, for anything I would be likely to use Rebol for with XML namespaces would be a must.