jwalt       2003/09/17 12:49:53

  Modified:    lib/Apache/AxKit/Language XSP.pm
  Log:
  - fix bug with namespaced attributes losing their namespace in XSP files
  
  Revision  Changes    Path
  1.50      +6 -1      xml-axkit/lib/Apache/AxKit/Language/XSP.pm
  
  Index: XSP.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Language/XSP.pm,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- XSP.pm    8 Sep 2003 07:06:12 -0000       1.49
  +++ XSP.pm    17 Sep 2003 19:49:52 -0000      1.50
  @@ -950,8 +950,13 @@
   
       for my $attr (@{$node->{Attributes}}) {
           my $value = _attr_value_template($e, $attr->{Value});
  +        if ($attr->{NamespaceURI}) {
  +            $code .= 
'$parent->setAttributeNS('.makeSingleQuoted($attr->{NamespaceURI}).','.makeSingleQuoted($attr->{Name}).
  +                ",$value);\n";
  +        } else {
           $code .= '$parent->setAttribute('.makeSingleQuoted($attr->{Name}).
                   ",$value);\n";
  +    }
       }
   
       for my $ns (keys %{$e->{Current_NS}}) {
  
  
  

Reply via email to