Skip Menu |

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

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

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

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



XML Schema Part 2: Datatypes Second Edition: 3.2.15.2 Canonical Representation The canonical representation for hexBinary is defined by prohibiting certain options from the Lexical Representation (ยง3.2.15.1). Specifically, the lower case hexadecimal digits ([a-f]) are not allowed. XML::Compile generates lower case hexadecimal digits. This is important bug because some other tools doesn't expect lower case hexadecimal digits and might not accept XML produced by XML::Compile::Schema Patch: --- BuiltInTypes.pm.orig 2011-12-09 14:41:27.376040124 +0100 +++ BuiltInTypes.pm 2011-12-09 14:36:45.528206819 +0100 @@ -301,7 +301,7 @@ # (Use of) an XS implementation would be nice $builtin_types{hexBinary} = { parse => sub { $_[0] =~ s/\s+//g; pack 'H*', $_[0]} - , format => sub { unpack 'H*', $_[0]} + , format => sub { uc unpack 'H*', $_[0]} , check => sub { $_[0] !~ m/[^0-9a-fA-F\s]/ && (($_[0] =~ tr/0-9a-fA-F//) %2)==0} , example => 'F00F'
Subject: Re: [rt.cpan.org #73130]
Date: Fri, 9 Dec 2011 15:40:06 +0100
To: Piotr Roszatycki via RT <bug-XML-Compile [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
* Piotr Roszatycki via RT (bug-XML-Compile@rt.cpan.org) [111209 13:43]: Show quoted text
> Fri Dec 09 08:43:44 2011: Request 73130 was acted upon. > Transaction: Ticket created by DEXTER > Queue: XML-Compile > > This is important bug because some other tools doesn't expect lower case > hexadecimal digits and might not accept XML produced by > XML::Compile::Schema
Patch accepted. Urgent need for a release? -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
Show quoted text
> Patch accepted. Urgent need for a release?
I can wait. It's not a problem for me. Sorry, I noticed that I didn't set a subject for this bug request.
got fixed in 1.24