26.01.2019 Views

XML Simplified

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Module 6<br />

XSL and XSLT<br />

2. Can you match the XSL elements against their corresponding description?<br />

Description<br />

XPath Node<br />

(A) Used to add one style sheet to another (1) xsl:template<br />

(B) Allow to set a variable in the xsl file (2) xsl:output<br />

(C) Allow the style sheet to alias one namespace prefix (3) xsl:import<br />

for another in the result tree<br />

(D) Used to build templates (4) xsl:namespace-alias<br />

(E)<br />

Allow style sheet authors to specify how they wish the<br />

result tree to be output<br />

(5) xsl:variable<br />

Concepts<br />

3. Which of the statements about CSS and XSL style sheet languages are true and which statements<br />

are false?<br />

(A)<br />

(B)<br />

(C)<br />

(D)<br />

(E)<br />

CSS uses complex elements to format the documents.<br />

XSL describes how the <strong>XML</strong> document should be displayed.<br />

XSL elements can be used to perform complex calculations.<br />

XSL is a style sheet application specifically for HTML.<br />

CSS is a simple, styling-based approach that does not require advanced programming<br />

skills.<br />

6.2 Working with XSL<br />

In this last lesson, Working with XSL, you will learn to:<br />

‣ ¾ Explain XSL templates.<br />

‣ ¾ Describe the use of select attribute.<br />

‣ ¾ State how to use xsl:value-of element.<br />

‣ ¾ Describe how to use xsl:for-each element.<br />

‣ ¾ Explain briefly how to use xsl:text element.<br />

‣ ¾ Describe how to use xsl:number element.<br />

‣ ¾ Describe how to use xsl:if element.<br />

‣ ¾ Describe how to use xsl:choose element.<br />

‣ ¾ Explain how to perform sorting using XSL.<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!