Presentation is loading. Please wait.

Presentation is loading. Please wait.

XSL 3.0 Showcase: New concepts for XSL used in OU Campus

Similar presentations


Presentation on theme: "XSL 3.0 Showcase: New concepts for XSL used in OU Campus"— Presentation transcript:

1 XSL 3.0 Showcase: New concepts for XSL used in OU Campus
CORY MADDEN| OMNIUPDATE

2 Agenda expand-text Function Chaining Concatenation Shorthand Hands-on
xsl:mode idiv

3 expand-text May appear on any element in the XSL Only valid in XSL 3.0
Value can be “yes” or “no” Determines whether nodes below it will be treated similar to xsl:value-of Be careful when trying to output CSS / JavaScript when expand-text is set to “yes”

4 expand-text Examples Old New

5 Function Chaining Known as arrow operator Only valid in XSL 3.0
Using this will apply the function to the value of an expression, using the value as the first argument to the function Helps you stay organized with parentheses

6 Function Chaining Example
Old New

7 Concatenation Shorthand
A way to ”shorten” your concatenation statements Only valid in XSL 3.0 Good to use for short concatenation but sometimes is better to use the concat() Does cause confusion because it is “ || “ which is “or” in other programming languages

8 Concatenation Shorthand Example
Old New

9 Hands-on Look in the /workshop-xsl-showcase/ folder in your given sandbox

10 xsl:mode A mode is a way to separate xsl:template-matches during xsl:apply-templates Only valid in XSL 3.0 Allows for easy way to define different modes Different types of copy effects We primarily use “shallow-copy” option Old way for defining modes was a bit complicated New way is one line!

11 xsl:mode Example Old New

12 idiv Stands for integer division Valid in XSL 3.0 and XSL 2.0
Great way to wrap every X element with wrapping HTML Shorthand for floor(Y div X)

13 idiv Example 0 idiv 4 = 0 1 idiv 4 = 0 2 idiv 4 = 0 3 idiv 4 = 0
etc...

14 Hands-on Look in the /workshop-xsl-showcase/ folder in your given sandbox

15 Questions & Answers

16 THANK YOU! PLEASE SHARE YOUR FEEDBACK: #OUTC19


Download ppt "XSL 3.0 Showcase: New concepts for XSL used in OU Campus"

Similar presentations


Ads by Google