- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 24 Oct 2008 08:58:57 +0000
- To: www-xml-schema-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6155
--- Comment #6 from Axel Dahmen <brille1@hotmail.com> 2008-10-24 08:58:57 ---
I've just read the blog... Michael, this is GREAT work you've done!
I particularly like the idea of shaping an expression back to it's original
lexical space to make XML Schema bijective. That raises the idea to 200 %!
But I tend to believe that XPATH translate() won't provide sufficient
functionality. How could it, for example, translate the following date values
into valid xs:date values (and back):
MM.dd.yyyy (US American)
dd.MM.yyyy (German)
I suspect Regular Expression to be a more flexible way to translate arbitrary
lexical spaces by identifying and retaining informational part strings.
Examples:
<!-- (US American date) -->
<xs:restriction
shape="/([\d]{2})\.([\d]{2})\.([\d]{4})/$3-$1-$2/"
reshape="/([\d]{4})-([\d]{2})-([\d]{2})/$2.$3.$1/"
/>
<!-- (German date) -->
<xs:restriction
shape="/([\d]{2})\.([\d]{2})\.([\d]{4})/$3-$2-$1/"
reshape="/([\d]{4})-([\d]{2})-([\d]{2})/$3.$2.$1/"
/>
Your thoughts?
(I've posted my reply to your blog as well)
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 24 October 2008 08:59:07 UTC