Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML6 and Character Class Subtraction

From: "CP" <msxml@-----------.--->
To: NULL
Date: 5/8/2007 1:50:00 PM

Hi Joe,

I tried with the normal RegEx classes too, which pointed me at what the 
problem was and led me to "Character Class Subtraction".

Right now I'm looking at using the Altova 2007 engine 
(http://www.altova.com/altovaxml.html) for the validation so I'll let you 
know how we go on with that..

Thanks

Carl


"Joe Fawcett" <joefawcett@n...> wrote in message 
news:uGIHS4ujHHA.4132@T......
> Well to be fair I didn't try via XML, just using standard Regex classes. 
> It maybe the validation code converts the subtraction classes into a more 
> traditional representation.
>
> -- 
>
> Joe Fawcett (MVP - XML)
> http://joe.fawcett.name
>
> "CP" <msxml@s...> wrote in message 
> news:uORSMgmjHHA.4768@T......
>> Hi Joe,
>>
>> Wierd - that blog posting said .NET supports this :(
>>
>> Actually while researching this topic this morning I did come across 
>> another government dept document that mentioned the same problem with 
>> BS7666 and the .NET framework (though that was dated 2004).  Be very 
>> interested to see your results with Saxon.
>>
>> Thanks again,
>>
>> Carl
>>
>>
>> "Joe Fawcett" <joefawcett@n...> wrote in message 
>> news:%23i5qPWmjHHA.3996@T......
>>> Well I've just tried it with .NET and it doesn't seem to work there 
>>> either. I will try Saxon later.
>>> ( I tried [A-Z-[D-Z]]{3} against "ABC" which failed.)
>>>
>>> -- 
>>>
>>> Joe Fawcett (MVP - XML)
>>> http://joe.fawcett.name
>>>
>>>
>>>
>>> "CP" <msxml@s...> wrote in message 
>>> news:egYHXHmjHHA.4772@T......
>>>> Hi Joe,
>>>>
>>>> I'd never heard of it before today either - problem is BS7666 is an 
>>>> 'official' UK Gov Schema and it conforms to the w3 specs.  As a 
>>>> short-term workaround we'll hack the xsd to use the 'normal' Reg Exp 
>>>> notation like you suggest - mid-long term I think we'll be abandoning 
>>>> MSXML for this product and looking at another method 
>>>> (.NET/Java/Xerces/whatever .. *sigh*)
>>>>
>>>> Thanks!
>>>>
>>>> Carl
>>>>
>>>>
>>>> "Joe Fawcett" <joefawcett@n...> wrote in message 
>>>> news:%23nzmLBmjHHA.4596@T......
>>>>> I'm not sure, I 'd never heard of it myself before your post, but 
>>>>> surely there's an easy workaround in this case, just list the valid 
>>>>> letters?
>>>>>
>>>>> -- 
>>>>>
>>>>> Joe Fawcett (MVP - XML)
>>>>> http://joe.fawcett.name
>>>>>
>>>>> "CP" <msxml@s...> wrote in message 
>>>>> news:eBVE0GljHHA.3472@T......
>>>>>> Hi there,
>>>>>>
>>>>>> Been trying to validate (and failing) a UK XML postcode against the 
>>>>>> UK government BS7666 v2.0 schema which has the following pattern:
>>>>>>
>>>>>> [A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][A-Z-[CIKMOV]]{2}
>>>>>>
>>>>>> Am I correct in assuming that MSXML6 still does not support RegExp 
>>>>>> Character Class Subtraction?  I saw this link:
>>>>>>
>>>>>> http://blogs.msdn.com/stan_kitsis/archive/2005/09/20/472185.aspx
>>>>>>
>>>>>> that specifies that it doesn't but as this was posted in 2005 I 
>>>>>> thought I'd just see if anyone here knows if it's going to get 
>>>>>> updated.
>>>>>>
>>>>>> Thanks for any info
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Carl
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
> 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent