Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A5E6970D for ; Fri, 2 Dec 2011 15:00:53 +0000 (UTC) Received: (qmail 74289 invoked by uid 500); 2 Dec 2011 15:00:52 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 74248 invoked by uid 500); 2 Dec 2011 15:00:52 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 74240 invoked by uid 99); 2 Dec 2011 15:00:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 15:00:52 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 15:00:46 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RWUbA-000899-No for users@cxf.apache.org; Fri, 02 Dec 2011 07:00:24 -0800 Date: Fri, 2 Dec 2011 07:00:24 -0800 (PST) From: laksu To: users@cxf.apache.org Message-ID: <1322838024731-5042117.post@n5.nabble.com> In-Reply-To: <4ED77FFE.1080507@gmail.com> References: <1322586849192-5033048.post@n5.nabble.com> <4ED6005D.6070109@gmail.com> <1322742613570-5038521.post@n5.nabble.com> <4ED77FFE.1080507@gmail.com> Subject: Re: style sheet MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ok, It took me some while to figure out on a few things. I am still quick when you consider I am nil about XSDs. Here are my findinds: - Excel uses xsd information if it is supplied. - Excel uses the same mechanism when it is asked to open an XML file. So in that case it does not have to go through the Web server. That simplifies with testing. - xs:string in xsd works well with a number-only field without further intervention. It is imported into Excel with single quote prefix. - xs:dateTime does not work right out of the box. Because Excel rejects a number of certain formats. The following link tells about those formats: http://office.microsoft.com/en-us/excel-help/xml-schema-definition-xsd-data-type-support-HP001046225.aspx http://office.microsoft.com/en-us/excel-help/xml-schema-definition-xsd-data-type-support-HP001046225.aspx It tells about the "unsupported" formats. Maybe it is me who is that naive to look for it but I could not find something telling about "supported" ones. In that case, I tried removing the time zone info from the end and then Excel recognized that very well as a date cell. Excel recognizes: streamingDate="2011-09-07T00:00:00" but takes the following as string: salesStartDate="2011-10-02T00:00:00+01:00" I imagine Excel does not associate time zone info in its date cells so it refuses those formats. So, by manually hard-coding the xsd schema and tweaking the dateTime output with a custom "Adapter" Excel imports the result XML flawlessly. I will be trying the next steps. Thanks. -- View this message in context: http://cxf.547215.n5.nabble.com/automatic-schema-generation-for-a-RS-method-tp5033048p5042117.html Sent from the cxf-user mailing list archive at Nabble.com.