Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #475 (new defect)

Opened 3 months ago

Patch to allow for correct handling of schema regex patterns

Reported by: user Assigned to: nahi
Priority: highest Milestone: undefined
Component: wsdl4r Version: 1.5
Keywords: Defect Cc:

Description

xml schema regex patterns can not be directly matched to ruby regex patterns! See: http://www.regular-expressions.info/xmlcharclass.html

I attached a patched wsdl/xmlSchema/pattern.rb that includes a Charclass Translator that should do the trick for most of the cases. It's relatively simple, compared to RegexTranslator?.java included in Saxon (so maybe there is some more subtle cases I do not yet cover). I successfully tested with http://docs.oasis-open.org/wsn/06082006/t-1.xsd, which is hopefully as complicated as it can get.

So please include it.

Attachments

pattern.rb (2.0 kB) - added by user on 04/18/08 10:33:08.
pattern.rb

Change History

04/18/08 10:33:08 changed by user

  • attachment pattern.rb added.

pattern.rb