![]() |
[xml] Invalid Pattern
I've tested the pattern epxression in QuickREX for eclipse and it stated that the pattern is correct for American and Canadian Postal Code
Code:
<xsd:simpleType name="PostalFormat"> Code:
<xsd:simpleType name="PostalFormat"> |
i think its one pattern per element.
so, its looking for a pattern that wholly fits the first pattern or wholly fits the second, not a combination of both. but when you combine the two patterns into one in the second snippet, it is successful. i'm not an xml expert, though, could be wrong. |
Well I've looked up multiple patterns for a single element and found that it was allowed, I even asked my instructor about that. The source code that I posted is very similar to another one on a different forum where the poster said it works.
|
Quote:
|
No, the pattern is acceptable for US postal code but when it comes to Canadian postal code, the reader it goes nuts on it
|
All times are GMT -8. The time now is 02:13 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project