Skip Menu |

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

Report information
The Basics
Id: 31539
Status: resolved
Priority: 0/
Queue: XML-Compile

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Option to quite the "mistake: unused tags" warnings
I have currently the situation where only a subset of a large perl hash is specified in a XML schema and thus only this subset should be converted to XML. Currently there's a warning that some tags are unused. It would be nice if this warning could be ceased by an XML::Compile option. Regards, Slaven
Subject: Re: [rt.cpan.org #31539] Option to quite the "mistake: unused tags" warnings
Date: Fri, 14 Dec 2007 17:24:55 +0100
To: Slaven_Rezic via RT <bug-XML-Compile [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
* Slaven_Rezic via RT (bug-XML-Compile@rt.cpan.org) [071214 15:50]: Show quoted text
> > Fri Dec 14 10:49:49 2007: Request 31539 was acted upon. > Transaction: Ticket created by SREZIC > Queue: XML-Compile > Subject: Option to quite the "mistake: unused tags" warnings > Requestors: SREZIC@cpan.org > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=31539 > > > I have currently the situation where only a subset of a large perl hash > is specified in a XML schema and thus only this subset should be > converted to XML. Currently there's a warning that some tags are unused. > It would be nice if this warning could be ceased by an XML::Compile option.
The check is a safe-guard to help users to do "the correct thing"(TM) Presumably, most people really need that help. Personally, I have an aversion to the idea that some of the hash data does need to be transmitted, and part of it does not. This must be a breach of abstraction. It is easy to fulfil your wish, but the question is whether it is smart to allow it. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
Subject: Re: [rt.cpan.org #31539] Option to quite the "mistake: unused tags" warnings
Date: 15 Dec 2007 10:51:33 +0100
To: bug-XML-Compile [...] rt.cpan.org
From: Slaven Rezic <slaven [...] rezic.de>
"Mark Overmeer via RT" <bug-XML-Compile@rt.cpan.org> writes: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=31539 > > > * Slaven_Rezic via RT (bug-XML-Compile@rt.cpan.org) [071214 15:50]:
> > > > Fri Dec 14 10:49:49 2007: Request 31539 was acted upon. > > Transaction: Ticket created by SREZIC > > Queue: XML-Compile > > Subject: Option to quite the "mistake: unused tags" warnings > > Requestors: SREZIC@cpan.org > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=31539 > > > > > I have currently the situation where only a subset of a large perl hash > > is specified in a XML schema and thus only this subset should be > > converted to XML. Currently there's a warning that some tags are unused. > > It would be nice if this warning could be ceased by an XML::Compile option.
> > The check is a safe-guard to help users to do "the correct thing"(TM) > Presumably, most people really need that help. > > Personally, I have an aversion to the idea that some of the hash data > does need to be transmitted, and part of it does not. This must be > a breach of abstraction. It is easy to fulfil your wish, but the > question is whether it is smart to allow it.
Think of the possibilities: with XML::Compile it is possible to write multiple schema files to create different views of the same data set, when converting from perl to XML. Currently I have a Relax NG schema file which is converted to xsd using trang (Relax NG schemas are human-writable, in contrast to XML schemas) and with that I can easily control what should go into the XML created from a perl hash. I can also think of systems where a user has a hash mixed with public and private members where the XML only should get the public ones. Regards, Slaven -- Slaven Rezic - slaven <at> rezic <dot> de babybike - routeplanner for cyclists in Berlin handheld (e.g. Compaq iPAQ with Linux) version of bbbike http://bbbike.sourceforge.net
wish granted, update released. Ticket closed.