diff Lib/IMPL/DOM/Navigator/Builder.pm @ 368:010ceafd0c5a

form metadata + tests
author cin
date Wed, 04 Dec 2013 17:31:53 +0400
parents 4ddb27ff4a0b
children 4edd36025051
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Navigator/Builder.pm	Tue Dec 03 17:55:36 2013 +0400
+++ b/Lib/IMPL/DOM/Navigator/Builder.pm	Wed Dec 04 17:31:53 2013 +0400
@@ -46,6 +46,8 @@
         
         my $node;
         if (! $this->{$Document}) {
+        	# keep reference to the schema document
+        	$props{schemaDocument} = $this->{$_schemaNavi}->schema;
             $node = $this->{$Document} = $this->{$_docClass}->new(nodeName => $nodeName,%props);
             $this->_initNavigator($node);
         } else {