XSLT – if

  • Post author:
  • Post category:XSLT
  • Post comments:0 Comments

<xsl:if> tag specifies a conditional test against the content of nodes. Declaration Following is the syntax declaration of <xsl:if> element. <xsl:if test = boolean-expression > </xsl:if> Attributes Sr.NoName & Description1testThe condition in…

Continue ReadingXSLT – if

XSLT – sort

  • Post author:
  • Post category:XSLT
  • Post comments:0 Comments

<xsl:sort> tag specifies a sort criteria on the nodes. Declaration Following is the syntax declaration of <xsl:sort> element. <xsl:sort select = string-expression lang = { nmtoken } data-type = { "text" |…

Continue ReadingXSLT – sort

XSLT – for-each

  • Post author:
  • Post category:XSLT
  • Post comments:0 Comments

<xsl:for-each> tag applies a template repeatedly for each node. Declaration Following is the syntax declaration of <xsl:for-each> element <xsl:for-each select = Expression > </xsl:for-each> Attributes Sr.NoName & Description1SelectXPath Expression to be evaluated…

Continue ReadingXSLT – for-each

XSLT – value-of

  • Post author:
  • Post category:XSLT
  • Post comments:1 Comment

<xsl:value-of> tag puts the value of the selected node as per XPath expression, as text. Declaration Following is the syntax declaration of <xsl:value-of> element. <xsl:value-of select = Expression disable-output-escaping = "yes" |…

Continue ReadingXSLT – value-of

XSLT – template

  • Post author:
  • Post category:XSLT
  • Post comments:0 Comments

<xsl:template> defines a way to reuse templates in order to generate the desired output for nodes of a particular type/context. Declaration Following is the syntax declaration of <xsl:template> element. <xsl:template name =…

Continue ReadingXSLT – template

XSLT Syntax

  • Post author:
  • Post category:XSLT
  • Post comments:1 Comment

Let’s suppose we have the following sample XML file, students.xml, which is required to be transformed into a well-formatted HTML document. students.xml <?xml version = "1.0"?> <class> <student rollno =…

Continue ReadingXSLT Syntax

XSLT Overview

  • Post author:
  • Post category:XSLT
  • Post comments:0 Comments

EXtensible Stylesheet Language Transformation commonly known as XSLT is a way to transform the XML document into other formats such as XHTML. This tutorial explains the basics of XSLT. It contains chapters discussing…

Continue ReadingXSLT Overview