I'm taking a shot at using a custom namespace, but can't find an example of its implementation in 4D SVG. Experimenting, I noticed that all three attributes below assigned with SVG_SET_ATTRIBUTES worked without returning an error when created, when used with SVG_GET_ATTRIBUTES, or when opened in Chrome and Safari.
Are all of these forms "legal"? ------------------------- $svg:=SVG_New SVG_ADD_NAMESPACE ($svg;"declaredNS";"http://www.somewhere.com") $ref:=SVG_New_rect ($svg;10;10;100;100) SVG_SET_ATTRIBUTES ($ref;\ "declaredNS:myAtt";"AnyAtt";\ "ThisNSWorks:myAtt";"AnyAtt";\ "andThisWorks";"AnyAtt") SVG_CLEAR ($svg) ------------------------- Yields this: rect ThisNSWorks:myAtt="AnyAtt" andThisWorks="AnyAtt" declaredNS:myAtt="AnyAtt" fill="white" height="100" stroke="black" width="100" x="10" y="10" Thanks - Keith - CDI ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************