From b375addd8ce9048e0c85ddcd34276a81145ddd7d Mon Sep 17 00:00:00 2001 From: James Shaw Date: Sat, 21 Jul 2007 16:28:14 +0000 Subject: Add cast for attribute result variable svn path=/trunk/dom/; revision=3451 --- test/transform/test-to-c.xsl | 100 +++++++++++++++++++++++++++++++------ test/xml/documentcreateelement.xml | 44 ++++++++++++++++ 2 files changed, 128 insertions(+), 16 deletions(-) create mode 100644 test/xml/documentcreateelement.xml diff --git a/test/transform/test-to-c.xsl b/test/transform/test-to-c.xsl index 469633b..d5d59f3 100644 --- a/test/transform/test-to-c.xsl +++ b/test/transform/test-to-c.xsl @@ -140,8 +140,11 @@ Language construct templates --> - struct - *; + + + + + ; @@ -191,17 +194,18 @@ DOM templates - + - + ( - , + , + , & @@ -233,8 +237,9 @@ DOM templates - + + @@ -257,15 +262,20 @@ DOM templates ( - - (struct - - - - *) - - - , & + + + + + + , + + + + + + & ); assert(err == DOM_NO_ERR); @@ -273,6 +283,39 @@ DOM templates + + + + + + + + + ( + + + + ) + + + + + + + + + + + + ( + + + + ) + + + + + + + + + + is_struct + + struct + + + + + + + * + + + + @@ -365,6 +430,9 @@ Assert templates dom_node + + dom_node_type + @@ -398,7 +466,7 @@ For example, dom_document_create_element - + diff --git a/test/xml/documentcreateelement.xml b/test/xml/documentcreateelement.xml new file mode 100644 index 0000000..9139ad2 --- /dev/null +++ b/test/xml/documentcreateelement.xml @@ -0,0 +1,44 @@ + + + + + +documentCreateElement +NIST + + The "createElement(tagName)" method creates an Element + of the type specified. + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method with tagName="address". + The method should create an instance of an Element node + whose tagName is "address". The NodeName, NodeType + and NodeValue are returned. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + -- cgit v1.2.3