A General Approach to Using XSLT
As I said earlier in the beginning of this chapter, both XSLT and XPath are very rich languages. XSLT, in particular, is so rich that there are several different approaches and paradigms for using it. Not all of them are appropriate for the types of transformations we're interested in. However, I need to mention them so that when you run across them in further XSLT study, you'll know what they are.
Literal Result Elements: Both examples presented so far use this the style. It involves including the actual markup, text, and so on (that is, the “literal result”), in the body of the appropriate xsl:template so that it gets copied into the result tree. Text from an Element's Text Nodes and text from Attribute values ...
Get Using XML with Legacy Business Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.