• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

XSLT

Extensible Style Language Extensions Transformations provide you with a way to transform XML documents into other formats, including (but not limited to) HTML, XHTML (W3C’s XML-based version of HTML, which you can find all about at www.w3.org/TR/xhtml1), plain text, RTF (Rich Text Format, which word processors such as Microsoft Word can use), or even reformatted XML.

The internal workings of XSLT are beyond the scope of this book, but we can still take a look at an example. In this example, I’ll transform an XML document’s data into HTML form, displaying it in an HTML table. Here’s the HTML document that does this in the Internet Explorer. Note that I load the XML document and XSL style sheet, and then use the transformNode method to transform the XML to HTML:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint