Return-Path: X-Original-To: apmail-incubator-vxquery-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-vxquery-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 872D8D7FF for ; Fri, 29 Jun 2012 06:24:53 +0000 (UTC) Received: (qmail 73498 invoked by uid 500); 29 Jun 2012 06:24:53 -0000 Delivered-To: apmail-incubator-vxquery-dev-archive@incubator.apache.org Received: (qmail 73444 invoked by uid 500); 29 Jun 2012 06:24:51 -0000 Mailing-List: contact vxquery-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: vxquery-dev@incubator.apache.org Delivered-To: mailing list vxquery-dev@incubator.apache.org Received: (qmail 73387 invoked by uid 99); 29 Jun 2012 06:24:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 06:24:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.57] (HELO smtp102.prem.mail.sp1.yahoo.com) (98.136.44.57) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 29 Jun 2012 06:24:43 +0000 Received: (qmail 4797 invoked from network); 29 Jun 2012 06:24:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=hNWznH2I0nnbJ7yuieqaf8B/Aug06cDGj0r41DV0H9pDC92IUMjTBgprS6gGaCufa2dGwZ54kVfglNTCP+nkfDKBG4tK0PmD7CxJ17GdpwPdZxA636mKOzOB5GqNdGg4bBFQG4WFuxLgBAhsgYx+FnAmPaJWtHlUHb9VX8KBd00= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1340951063; bh=05ktxVHzVLzskZje3axswwIw8jU/tO2iiJXin6DkFDI=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=CkbEMdJX+rU1ZdLwvJbNuDK5ehStBySG9llMsz5LK3pKeDmF+78QdC83WeH7QcjSnwSXCfYy1Zg7XCT0V0tV3X4EAa7xYgNfMcFb6gjqbkWqhCJ7QvLe6cqxzTnIdIZqlurjhSm4vmVWgqZX5WO/7aHCvXHEhwrvS1UGwddteko= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 8Ty.tpgVM1nv6OR8pKZi2HRhJNFRMhrcKu6d_.UW2bIOaTt gFAWxU8Cy2dlT7cPKvWSnPo3HlA0cSdqVUI46tV_RbuNrYzF_eW_WutuY9Ng 1Bj6EFbMZvWnFiJzv7qMhygTJEsy_B_mExPfClvF166B_eUBS4VLQU90BGO6 DO58TSvbcc_BJ2Gl3ap5bQpONcDwja1mGM5Dm6DjwEZ_puSOcbsS4sFLLMrn cK9_wgvfOfHRhV8K11JevPNUl5rU5QA4jlPrW4QpyFcIC6jwhE22ztcNXgix NczSTBZxvbIPrOyQW8IB0clGNvb3A3o_kLYeRFxkJk58Z2pc4TomKb7.XTlI 95mUCkkKefLN_bsvRtJ_8M0B1PIcv0HCvwZTIz2f4Vd_Mwpj8RzheJR1huc9 oIqQMQmS9giiI7kC8Zd8NyOg- X-Yahoo-SMTP: ZvR6Aa.swBBi9aze9_P4M914Ag-- Received: from netbook.local (vborky@76.103.130.241 with plain) by smtp102.prem.mail.sp1.yahoo.com with SMTP; 28 Jun 2012 23:24:23 -0700 PDT Message-ID: <4FED4A17.6000604@yahoo.com> Date: Thu, 28 Jun 2012 23:24:23 -0700 From: Vinayak Borkar User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: vxquery-dev@incubator.apache.org Subject: fn:doc() support Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Guys, I have checked in support for fn:doc(). The ground work to represent the 6 different XML node types as bytes (that Till and I spent the last few weeks building) is also in to support the fn:doc() function. Currently, the only thing you can do is to use the doc() function in a query to parse in an XML document. Functions that evaluate path steps or that serialize XML nodes into text XML have not yet been implemented. Initial analysis shows that the binary representation of documents occupies about 2 to 2.5x the size of the original XML file. Further optimization is possible, but the next step will be to focus on getting more functionality in place. Please let me know if you have any thoughts or comments. Thanks, Vinayak