Hi, Cameron-

Cameron McCormack wrote:
| 
| Erik Dahlström:
| > Why would you need the xlink-prefix in this case? I would 
| > suggest this instead:
| > 
| a_elem.setAttributeNS("http://www.w3.org/1999/xlink","href","h
| ttp://www.kevlindev.com");
| > 
| > You already say (with the first parameter) that the namespace 
| > is XLink, so there is no need to prefix the attribute with "xlink:".
| 
| There’s no need for the the prefix in the nodeName for the 'a' element
| to work, but it’s better to include it in case the element is 
| serialised later on.  (At least, that’s what I tell myself at 
| night. :) (And of course that assumes that there is an appropriate 
| namespace declaration attribute in the document, too.))

I do the same thing, but I think this is actually a kluge to compensate for
a poor serializer that is not namespace-aware. Hopefully, the next
generation of serializers will take the namespace into account and include
prefixes automagically.

Regards-
Doug

[EMAIL PROTECTED]
www.vectoreal.com ...for scalable solutions.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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