XSLT – import

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

<xsl:import> tag imports the contents of one stylesheet into another. Importing a style sheet has higher precedence over imported stylesheet. Declaration Following is the syntax declaration of <xsl:import> element. <xsl:import href =…

Continue ReadingXSLT – import

XSLT – key

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

<xsl:key> tag element specifies a named name-value pair assigned to a specific element in an XML document. This key is used with the key() function in XPath expressions to access…

Continue ReadingXSLT – key

XSLT – choose

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

<xsl:choose> tag specifies a multiple conditional tests against the content of nodes in conjunction with the <xsl:otherwise> and <xsl:when> elements. Declaration Following is the syntax declaration of <xsl:choose> element. <xsl:choose > </xsl:choose>…

Continue ReadingXSLT – choose

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