CHAPTER 2 RELATED XML RECOMMENDATIONS XSLT Summary

CHAPTER 2 RELATED XML RECOMMENDATIONS XSLT Summary This section shows some of the functionality of XSLT, and you should remember these key points: CSS applies styles to an XML document based on the current structure of the document tree. This is called a push model. XSLT can transform a source XML document into any well-formed XML document that can be serialized as XML, HTML, or text. XSLT stylesheets can produce a result tree in a different order from the source tree. XSLT can add text and markup during the transformation. XSLT is template-based, making it mainly a declarative language. XSLT makes extensive use of XPath to locate nodes in the source tree. I ve mentioned XPath during this discussion of XSLT, so it s worthwhile exploring it in a little more detail. XPath You saw that the XSLT stylesheet relied heavily on the use of XPath to locate specific parts of the source XML document tree. Other recommendations, such as XPointer, also rely on the XPath specification, so it s useful to have an understanding of the basics. One important thing to realize is that XPath doesn t use XML rules to construct expressions. You use XPath by writing expressions that work with the XML document tree. Applying an XPath expression to a document returns one of the following: A single node A group of nodes A Boolean value A floating point number A string XPath expressions can t address the XML declaration in a document because it isn t part of the document tree. They also don t address embedded DTD declarations or blocks of CDATA. XPath treats an XML document as a hierarchical tree made up of nodes. Each tree contains Element nodes Attribute nodes Text nodes
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision shared web hosting services

Leave a Reply