Tag Libraries for XSLT and XQuery

2011; Volume: 7; Linguagem: Inglês

10.4242/balisagevol7.hennum01

ISSN

1947-2609

Autores

Erik Hennum, Vyacheslav Zholudev,

Tópico(s)

Mathematics, Computing, and Information Processing

Resumo

XML has mature tools for validation, transformation, and query, but current tools require a level of programming skills that many users who need dynamic documents do not have. Using the organizational pattern of tag libraries (borrowed from Java tag libraries), we propose to divide responsibilities for dynamic documents between two classes of people. Tag-library developers implement query, transformation, or component formatting for predefined tags in a library; document authors create dynamic documents by embedding elements from the tag library in HTML, XSL-FO, or other documents; when the document is processed, elements from the tag library are replaced by automatically generated content. A callback mechanism allows the document author to pass document fragments to the tag library for parameterization. Document authors can use tag libraries in ways not foreseen by the tag library developers and can combine tag libraries from different developers. A robust tag-library solution will foster better collaboration between XML developers and creators of XML documents.

Referência(s)