What is the use of XSLT?

XSLT stands for Extensible Stylesheet Language Transformations. This language used in XSL style sheets to transform XML documents into other XML documents.

XSLT is based on template rules which specify how XML documents should be processed. An XSLT processor reads both an XML document and an XSLT style sheet. Based on the instructions the processor finds in the XSLT style sheet, it produce a new XML document. With XSLT we can also produce HTML or XHTML from XML document. With XSLT we can add/remove elements and attributes, rearrange and sort elements, hide and display elements from the output file. Converting XML to HTML for display is probably the most common application of XSLT today.

4 comments:

  1. XSLT is much advance than CSS. CSS has no ability to perform computations, to rearrange or sort the data, to combine data from multiple sources, or to personalize what is displayed according to characteristics of the user
    Today, most people are currently using XSLT to transform XML documents into HTML, and using an HTML browser as the formatting engine.

    ReplyDelete
  2. That's right peter, that's what i do! lol

    ReplyDelete
  3. Its most basic informative blog about XSLT searched by newbies and quite helpful.Yes XSLT is different than CSS as CSS can not do calculations,sorting etc on data.But also more complicated to learn i think

    ReplyDelete

Type more interview question answer here