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
>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
>space: > ML [ > math: [ > div "x/2" ; Use a mathemathical division. > ] > ] >Note that Rebol set-word! value "math:" indicates the name space "math"
>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 ] ] give math:div xmlns:math="" ? most often what you see is something like this: <document xmlns="" xmlns: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.