Skip Menu |
 

This queue is for tickets about the XML-Generator CPAN distribution.

Report information
The Basics
Id: 5676
Status: new
Priority: 0/
Queue: XML-Generator

People
Owner: Nobody in particular
Requestors: dave [...] earth.li
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Incorrect looking documentation
Download (untitled) / with headers
text/plain 783b
The page http://search.cpan.org/~bholzman/XML-Generator-0.98/Generator.pm says what is quoted below. The XML in the first example does not have the contents element in the wru namespace as is implied by the narative. Namespaces do not inherit like that. Is the example wrong? David <<END_OF_QUOTE $xml = $gen->widget(['wru' => 'http://www.widgets-r-us.com/xml/'], {'id' => 123}, $gen->contents()); <wru:widget xmlns:wru="http://www.widgets-r-us.com/xml/" wru:id="123"> <contents /> </wru:widget> Note that the wru: prefix is inherited, so the contents tag above is semantically equivalent to <wru:contents /> If you actually mean <contents xmlns="" /> then you have to say: $gen->contents([undef]); END_OF_QUOTE
From: "Benjamin Holzman" <bholzman [...] earthlink.net>
To: <bug-XML-Generator [...] rt.cpan.org>
Subject: Re: [cpan #5676] Incorrect looking documentation
Date: Mon, 15 Mar 2004 09:52:23 -0500
RT-Send-Cc:
Download (untitled) / with headers
text/plain 1.6k
Oops. Thanks for the bug report! I will fix the example to use a default namespace, which does inherit like that. These XML namespaces are just too confusing! Since you seem to be something of an expert in the matter, do you have any other comments on XML::Generator's namespace support? I'm suspecting there are some significant flaws, and I would like to get things shipshape for a 1.0 release. Thanks, Benjamin Holzman Show quoted text
----- Original Message ----- From: "Guest via RT" <bug-XML-Generator@rt.cpan.org> To: <AdminCc of cpan Ticket #5676 :> Sent: Monday, March 15, 2004 9:37 AM Subject: [cpan #5676] Incorrect looking documentation
> > This message about XML-Generator was sent to you by guest <> via
rt.cpan.org
> > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=5676 > > > The page http://search.cpan.org/~bholzman/XML-Generator-0.98/Generator.pm > says what is quoted below. > > The XML in the first example does not have the contents element in the wru
namespace as is implied by the narative. Namespaces do not inherit like that.
> > Is the example wrong? > > David > > <<END_OF_QUOTE > > $xml = $gen->widget(['wru' => 'http://www.widgets-r-us.com/xml/'], > {'id' => 123}, $gen->contents()); > > <wru:widget xmlns:wru="http://www.widgets-r-us.com/xml/" wru:id="123"> > <contents /> > </wru:widget> > > Note that the wru: prefix is inherited, so the contents tag above is
semantically equivalent to
> > <wru:contents /> > > If you actually mean > > <contents xmlns="" /> > > then you have to say: > > $gen->contents([undef]); > END_OF_QUOTE >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.