Technology Reviews :XSL Park, Ho-gun
What is XSL Extensible Style sheet LanguageExtensible Style sheet Language An XML-based language used to create to style sheetsAn XML-based language used to create to style sheets
What it does Define layout of the output documentDefine layout of the output document –Define font and alignment of text Define where to get the data from within the input documentDefine where to get the data from within the input document –Rearrange elements Result tree( output document ) Source tree( input document )
Composition of XSL A transformation languageA transformation language –which is named XSLT –switch a tag to another tag EX. XSL -> HTML, XML -> HTML + CSSEX. XSL -> HTML, XML -> HTML + CSS –Rearrange element and add contents A language used to describe XML document for displayA language used to describe XML document for display –XSL Formatting Objects –More powerful display
CSS and XSL Impose a standard style on a whole documentImpose a standard style on a whole document but, there are several differences.but, there are several differences.
Differences: CSS and XSL CSSCSS –Only define property XSL –change order of elements for display –iterative and selective process to elements –add contents
Differences: CSS and XSL CSSCSS –Selector and Properties –selector { properties } XSL –Pattern and Formatting object – – example quote { display: block; font-size: 90%; margin-left: 0.5in; margin-left: 0.5in } – example
How do XSLT style sheets works? XSLT style sheets are built on structures called templatesXSLT style sheets are built on structures called templates –A template specifies what to look for in the source tree, and what to put into the result tree. XSLT is written in XMLXSLT is written in XML –There are special XSLT elements and attributes
Book list Book list Book table Book table No. No. ISBN code ISBN code Name Name Company Company Price Price date date namespace Printing form css Call ~
Example 1
Example 2