issue 18 : Done for writing the ruleset compiler

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8454 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-06-07 09:33:02 +00:00
parent 2770b28ee9
commit 23453c0aac
4 changed files with 410 additions and 18 deletions

View file

@ -63,7 +63,7 @@
}
// uncheck the language if no specific language is set.
} else {
unset($this->lang);
$this->lang = '';
}
$this->oParser = xml_parser_create('UTF-8');
@ -123,7 +123,7 @@
if($this->lang&&$cur_obj->attrs->{'xml:lang'}&&$cur_obj->attrs->{'xml:lang'}!=$this->lang) return;
if($this->lang&&$parent_obj->{$node_name}->attrs->{'xml:lang'}&&$parent_obj->{$node_name}->attrs->{'xml:lang'}!=$this->lang) return;
if($parent_obj->{$node_name}) {
if(isset($parent_obj->{$node_name})) {
$tmp_obj = $parent_obj->{$node_name};
if(is_array($tmp_obj)) {
array_push($parent_obj->{$node_name}, $cur_obj);