XSLT - XSLT and XQuery Compared

XSLT and XQuery Compared

For more details on this topic, see XQuery#XQuery and XSLT compared.

XSLT functionalities overlap with those of XQuery, which was initially conceived as a query language for large collections of XML documents.

The XSLT 2.0 and XQuery 1.0 standards were developed by separate working groups within W3C, working together to ensure a common approach where appropriate. They share the same data model, type system, and function library, and both include XPath 2.0 as a sublanguage.

The two languages, however, are rooted in different traditions and serve the needs of different communities. XSLT was primarily conceived as a stylesheet language whose primary goal was to render XML for the human reader on screen, on the web (as web template language), or on paper. XQuery was primarily conceived as a database query language in the tradition of SQL.

Because the two languages originate in different communities, XSLT is stronger in its handling of narrative documents with more flexible structure, while XQuery is stronger in its data handling, for example when performing relational joins.

Read more about this topic:  XSLT

Famous quotes containing the word compared:

    Letter-writing too often degenerates into a communicating of facts, and not of truths; of other men’s deeds and not our thoughts. What are the convulsions of a planet, compared with the emotions of the soul? or the rising of a thousand suns, if that is not enlightened by a ray?
    Henry David Thoreau (1817–1862)