Sha256: e099af9cc14a1e61954f8864c2c1b10ab0b5102406630ae4b7efb2f49f9e26f4
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
Use Case "TREE": Queries that preserve hierarchy from XML Query Use Cases. Source: http://www.w3.org/TR/xquery-use-cases/#tree Q1 - Prepare a (nested) table of contents for Book1, listing all the sections and their titles. Preserve the original attributes of each <section> element, if any. Q2 - Prepare a (flat) figure list for Book1, listing all the figures and their titles. Preserve the original attributes of each <figure> element, if any. Q3 - How many sections are in Book1, and how many figures? Q4 - How many top-level sections are in Book1? Q5 - Make a flat list of the section elements in Book1. In place of its original attributes, each section element should have two attributes, containing the title of the section and the number of figures immediately contained in the section. Q6 - Make a nested list of the section elements in Book1, preserving their original attributes and hierarchy. Inside each section element, include the title of the section and an element that includes the number of figures immediately contained in the section.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magic_xml-0.1.1 | xquery_use_cases/tree/README |
magic_xml-0.1.0 | xquery_use_cases/tree/README |