Mercurial > pub > Impl
comparison Lib/IMPL/DOM/Transform/PostToDOM.pm @ 148:e6447ad85cb4
DOM objects now have a schema and schemaSource properties
RegExp now can launder data
Improved post to DOM transformation (multiple values a now supported)
Added new axes to navigation queries: ancestor and descendant
minor changes and bug fixes
| author | wizard |
|---|---|
| date | Mon, 16 Aug 2010 08:26:44 +0400 |
| parents | c2aa10fbb396 |
| children | e36ffd8c29db |
comparison
equal
deleted
inserted
replaced
| 147:c2aa10fbb396 | 148:e6447ad85cb4 |
|---|---|
| 112 | 112 |
| 113 =head1 SINOPSYS | 113 =head1 SINOPSYS |
| 114 | 114 |
| 115 =begin code | 115 =begin code |
| 116 | 116 |
| 117 my $transform = new IMPL::DOM::Transform::PostToDOM( | 117 my $schema = IMPL::DOM::Schema->LoadSchema('Data/user.add.schema.xml'); |
| 118 'My::DOM::Document', | 118 |
| 119 IMPL::DOM::Schema->LoadSchema('Data/user.add.schema.xml'), | 119 my $transform = IMPL::DOM::Transform::PostToDOM->new( |
| 120 'myForm' | 120 undef, # default class |
| 121 ); | 121 $schema, |
| 122 $schema->selectSingleNode('ComplexNode')->name | |
| 123 ); | |
| 124 | |
| 125 my $doc = $transform->Transform( | |
| 126 CGI->new({ | |
| 127 'user/login' => 'bob', | |
| 128 'user/fullName' => 'Bob Marley', | |
| 129 'user/password' => 'secret', | |
| 130 'user/password_retype' => 'secret', | |
| 131 'user/birthday' => '1978-12-17', | |
| 132 'user/email[1]' => 'bob@marley.com', | |
| 133 'user/email[2]' => 'bob.marley@google.com', | |
| 134 process => 1 | |
| 135 }) | |
| 136 ); | |
| 122 | 137 |
| 123 =end code | 138 =end code |
| 124 | 139 |
| 125 =head1 DESCRIPTION | 140 =head1 DESCRIPTION |
| 126 | 141 |
