XSL Equivalents

BI Publisher provides syntax equivalent with XSL.

The following table lists the BI Publisher simplified syntax with the XSL equivalents.

Supported XSL Elements Description BI Publisher Syntax

<xsl:value-of select= "name">

Placeholder syntax

<?name?>

<xsl:apply-templates select="name">

Applies a template rule to the current element's child nodes.

<?apply:name?>

<xsl:copy-of select="name">

Creates a copy of the current node.

<?copy-of:name?>

<xsl:call-template name="name">

Calls a named template to be inserted into/applied to the current template.

<?call:name?>

<xsl:sort select="name">

Sorts a group of data based on an element in the dataset.

<?sort:name?>

<xsl:for-each select="name">

Loops through the rows of data of a group, used to generate tabular output.

<?for-each:name?>

<xsl:choose>

Used in conjunction with when and otherwise to express multiple conditional tests.

<?choose?>

<xsl:when test="exp">

Used in conjunction with choose and otherwise to express multiple conditional tests

<?when:expression?>

<xsl:otherwise>

Used in conjunction with choose and when to express multiple conditional tests

<?otherwise?>

<xsl:if test="exp">

Used for conditional formatting.

<?if:expression?>

<xsl:template name="name">

Template declaration

<?template:name?>

<xsl:variable name="name">

Local or global variable declaration

<?variable:name?>

<xsl:import href="url">

Import the contents of one stylesheet into another

<?import:url?>

<xsl:include href="url">

Include one stylesheet in another

<?include:url?>

<xsl:stylesheet xmlns:x="url">

Define the root element of a stylesheet

<?namespace:x=url?>