W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Re: Constructing new cocatenated element content

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Fri, 22 Jun 2001 12:19:13 +0200
Message-ID: <3B331BA1.B71BA4EF@dyomedea.com>
To: bjoern.martin@gmx.net
Cc: xmlschema-dev@w3.org
Bjoern Martin wrote:
> 
> Hi.
> 
> I would like to represent an element in XML which represents the JDBC
> timestamp format. It slightly differs from xs:dateTime (JDBC timestamp
> is "CCYY-MM-DD hh:mm:ss", but xs:dateTime is "CCYY-MM-DDThh:mm:ss"). I
> thought of concatenating the schema datatypes xs:date and xs:time,
> separated by a blank.
> I would appreciate any hint on this. Thx!

Unfortunately, there is no way to concatenate two datatypes!

I don't see any solution except to define the datatype as a string and
to restrict it through patterns.

Note that you would loose the datetime "semantic", though.

Can't you remove this space somewhere in your process ? it would avoid
this pain!

Hope this helps.

Eric
> 
> Regards.
> 
> --
> Bjoern Martin                                bjoern.martin@gmx.net

-- 
Pour y voir plus clair dans la nebuleuse XML...
                                          http://dyomedea.com/formation/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
------------------------------------------------------------------------
Received on Friday, 22 June 2001 06:19:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:21 GMT