How to add presentation to an XML document?
The way of adding presentation to an XML document is
to use a style sheet language such as Cascading Style Sheets and XSLT Extensible Style sheet Language Transformations. XML lets you separate form
appearance from content. Your XML file contains your document information
text, data and identifies its structure: your formatting and other processing needs are identified separately in a style sheet or processing system. The two are combined at output time to apply the required formatting to the text or data identified by its structure (location, position, rank, order, or whatever). An XML file is by far not the best thing to read when you just want to look at the data.
Extensible Stylesheet Language XSL gives you the capability to transform XML files into other format such as Extensible StyleSheet Language Transformations, i.e HTML.
An
Extensible Style sheet Language Transformation document can use HTML and
Cascading Style Sheet to present the XML data in a more readable format for you to gaze. The Data within an XML file is retrieved using a language called the
XPath. The XPath language is based on a tree representation of the XML document, and provides the ability to navigate around the tree, selecting nodes by a variety of criteria. an
XPath expression is often referred to simply as an
X Path.
No comments:
Post a Comment