- From: Miro Lehtonen <mplehton@cs.Helsinki.FI>
- Date: Wed, 3 Mar 2004 17:37:29 +0200 (EET)
- To: public-qt-comments@w3.org
This use case is a simple transformation of an XML structure. It is useful when the document type shows a wide variation in structure. It would go nicely under 1.2. in http://www.w3.org/TR/2003/WD-xquery-use-cases-20031112/ The expected result is based on the sample data in 1.2.3. Query: Return the book without image elements. Preserve everything else of the book element. Expected result: <book> <title>Data on the Web</title> <author>Serge Abiteboul</author> <author>Peter Buneman</author> <author>Dan Suciu</author> <section id="intro" difficulty="easy" > <title>Introduction</title> <p>Text ... </p> <section> <title>Audience</title> <p>Text ... </p> </section> <section> <title>Web Data and the Two Cultures</title> <p>Text ... </p> <figure height="400" width="400"> <title>Traditional client/server architecture</title> <!-- Image omitted --> </figure> <p>Text ... </p> </section> </section> <section id="syntax" difficulty="medium" > <title>A Syntax For Data</title> <p>Text ... </p> <figure height="200" width="500"> <title>Graph representations of structures</title> <!-- Image omitted --> </figure> <p>Text ... </p> <section> <title>Base Types</title> <p>Text ... </p> </section> <section> <title>Representing Relational Databases</title> <p>Text ... </p> <figure height="250" width="400"> <title>Examples of Relations</title> <!-- Image omitted --> </figure> </section> <section> <title>Representing Object Databases</title> <p>Text ... </p> </section> </section> </book> I actually replaced the image elements with a comment which could contain something else, as well, e.g. the alternative text of the image or the name of the source file. Presumably, there is a solution for this use case. See 3.4.11 in http://www.w3.org/TR/2003/WD-xquery-requirements-20031112 Regards, Miro Lehtonen Department of Computer Science University of Helsinki P.S. The e-mail address for public comments should be fixed: Comments on this document should be sent to the W3C mailing list public-qt-comments@w3.org@w3.org
Received on Wednesday, 3 March 2004 10:37:33 UTC