[Xml-compile] What is $action in XML::Compile::Tester synopsis

Mark Overmeer mark at overmeer.net
Mon Nov 24 14:27:49 GMT 2008


* Zbigniew Lukasiak (zzbbyy at gmail.com) [081124 14:19]:
> On Mon, Nov 24, 2008 at 3:12 PM, Mark Overmeer <mark at overmeer.net> wrote:
> >>
> >> In the XML::Compile::Tester there is similar part:
> >>
> >> # set default namespace, such that $type only needs to use local
> >>  my $type   = pack_type($ns, 'localName'); # X::C::Util
> >>  set_default_namespace($ns);
> >>  my $type   = 'localName';
> > --
> 
> I would say just add:
>    $ns = 'your_name_space';
> to the Synopsis.
> It is not much to read - and it explains that it is just a string.

I don't know... it is not always "your" namespace.  Sometimes it
is the WSDL, SOAP or any Schema namespace.  Those are not yours.

In the abouce example, $ns and 'namespace' are used twice very
close to each other.  For me, that is clear enough...  Maybe this:

    $ns = 'some-schemas-targetNamespace';
-- 
Regards,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list