Download presentation
Presentation is loading. Please wait.
Published byBrooks Brine Modified over 9 years ago
1
Technology Reviews :XSL 20031042 Park, Ho-gun
2
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
3
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 )
4
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
5
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.
6
Differences: CSS and XSL CSSCSS –Only define property XSL –change order of elements for display –iterative and selective process to elements –add contents
7
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
8
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
9
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 ~
11
Example 1
12
Example 2
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.