[Discussion] XML name space for ML dialect
[1/2] from: al::bri::xtra::co::nz at: 12-Nov-2002 20:15
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>"
I'm uncertain if the above two tags are correct. Corrections would be
appreciated.
If you're using (or about to use) my ML dialect, would the above feature be
useful to you?
Thank you for your opinion!
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[2/2] 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 [
<<quoted lines omitted: 3>>
> ]
>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.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted