[Laszlo-checkins] r12897 - in openlaszlo/trunk: WEB-INF/lps/lfc/kernel/swf9 test/lfc/data

bargull@openlaszlo.org bargull at openlaszlo.org
Tue Feb 17 08:47:33 PST 2009


Author: bargull
Date: 2009-02-17 08:47:29 -0800 (Tue, 17 Feb 2009)
New Revision: 12897

Added:
   openlaszlo/trunk/test/lfc/data/testnamespace.lzx
Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzXMLTranslator.as
   openlaszlo/trunk/test/lfc/data/alldata.lzx
Log:
Change 20090216-bargull-pq5 by bargull at dell--p4--2-53 on 2009-02-16 20:40:21
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: SWF9: add namespace attributes

New Features:

Bugs Fixed: LPP-7757

Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Add namespace declarations as attributes to the LzDataElement, take care to use the right prefix.
    

Tests:
Added testcase to alldata, works in swf8/swf9/dhtml



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzXMLTranslator.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzXMLTranslator.as	2009-02-17 16:44:16 UTC (rev 12896)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzXMLTranslator.as	2009-02-17 16:47:29 UTC (rev 12897)
@@ -1,7 +1,7 @@
 /**
   * LzXMLTranslator.lzs
   *
-  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @topic Kernel
@@ -96,6 +96,14 @@
             }
         }
 
+        var nsDecl:Array = node.namespaceDeclarations();
+        for (var i:int = 0; i < nsDecl.length; ++i) {
+            var ns:Namespace = nsDecl[i];
+            var prefix:String = ns.prefix;
+            var key:String = (prefix == "" ? "xmlns" : nsprefix ? "xmlns:" + prefix : prefix);
+            cattrs[key] = ns.uri;
+        }
+
         var nname:String;
         var qname:QName = node.name();
         if (nsprefix) {

Modified: openlaszlo/trunk/test/lfc/data/alldata.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/alldata.lzx	2009-02-17 16:44:16 UTC (rev 12896)
+++ openlaszlo/trunk/test/lfc/data/alldata.lzx	2009-02-17 16:47:29 UTC (rev 12897)
@@ -17,6 +17,7 @@
     <include href="whitespace.lzx"/>
     <include href="testgetmethod.lzx"/>
     <include href="testgetmethodsolo.lzx"/>
+    <include href="testnamespace.lzx"/>
     <include href="testpostmethod.lzx"/>
     <include href="testpostmethodsolo.lzx"/>
     <include href="testsetheaders.lzx"/>

Added: openlaszlo/trunk/test/lfc/data/testnamespace.lzx


Property changes on: openlaszlo/trunk/test/lfc/data/testnamespace.lzx
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native



More information about the Laszlo-checkins mailing list