thanks Robin for clarification.

so the xml namespace is treated like any other namespace, makes sense.

I'll file a bug report to the Mozilla developers.

Andreas

--- In [email protected], Robin Berjon <[EMAIL PROTECTED]> wrote:
>
> On Jun 27, 2006, at 09:09, Andreas Neumann wrote:
> > I am unsure whether I am using the correct way to specify xml:space  
> > attribute to
> > "preserve" by ECMAScript.
> >
> > I am currently using
> > this.textboxText.setAttributeNS("http://www.w3.org/XML/1998/
> > namespace","space","preserve");
> >
> > should it be
> >
> > this.textboxText.setAttributeNS("http://www.w3.org/XML/1998/
> > namespace","xml:space","preserve");
> 
> Both should work, but the latter is considered better practice.
> 
> > At http://www.w3.org/XML/1998/namespace I read that "Note that  
> > unlike all other XML
> > namespaces, both the name and the prefix are specified; i.e., if  
> > you want XML 1.0
> > processors to recognize this namespace, you must use the reserved  
> > prefix xml:"
> >
> > Does this mean that I need to say "xml:space" as an attribute name  
> > and not just "space"?
> 
> In the document itself yes, but that shouldn't be imposed at the DOM  
> level. It's a syntax requirement, not an abstract one.
> 
> > It seems like MozillaSVG doesn't respect it either way. It just  
> > ignores multiple subsequent
> > spaces.
> 
> Not sure how to work around that though. Perhaps using a character  
> the glyph of which is nothing but that isn't a space?
> 
> -- 
> Robin Berjon
>     Senior Research Scientist
>     Expway, http://expway.com/
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to