26.01.2019 Views

XML Simplified

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Module 6<br />

XSL and XSLT<br />

where,<br />

1.Water Bottle, I.Water Bottle<br />

The first item is numbered with number 1 and roman number I.<br />

Concepts<br />

4.Mobile Phone, IV. Mobile Phone<br />

The fourth item is numbered with number 4 and roman number IV.<br />

6.2.9 The xsl:if element<br />

The xsl:if element evaluates a conditional expression against the content of the <strong>XML</strong> file. The test<br />

attribute of xsl:if element contains a conditional expression that evaluates to a boolean value of true<br />

or false.<br />

Figure 6.30 shows the syntax for xsl:if element.<br />

Figure 6.30: xsl:if Syntax<br />

where,<br />

test=expression<br />

The condition in the source data to test with either a true or false answer.<br />

<strong>XML</strong> <strong>Simplified</strong><br />

Version 1.0 © Aptech Limited

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!