xslt development with oxygen (part1) - editing, validation and transformation

31
XSLT Development with XSLT Development with <oXygen/> <oXygen/> Part1: Editing, Validation and Transformation Part1: Editing, Validation and Transformation Octavian Nadolu [email protected] @OctavianNadolu

Upload: octavian-nadolu

Post on 11-May-2015

1.069 views

Category:

Technology


0 download

DESCRIPTION

XSLT is the best supported technology in oXygen. You can find below an outline of the topics covered by the presentation: - XSLT editing - Validation - Transformations - XSLT documentation - XPath content completion In this presentation we will introduce you to these features indirectly, focusing on resolving a number of problems and see how oXygen can help us accomplish those tasks.

TRANSCRIPT

Page 1: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

XSLT Development with XSLT Development with <oXygen/><oXygen/>

Part1: Editing, Validation and TransformationPart1: Editing, Validation and Transformation

Octavian [email protected]@OctavianNadolu

Page 2: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Generate HTML● Create a stylesheet to generate an HTML file

Page 3: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 1● Create new stylesheet● Add some XSLT elements

Page 4: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● Wizard dialog to create a new XSLT● Used the XSLT 2.0● Documentation for stylesheet components● Content completion XSLT and XPath● Documentation for XSLT and XPath elements● Validation as you type

Page 5: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 2● Associate the XML with the XSL and generate

an output

Page 6: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● Configure a transformation scenario● Save the scenario in project or global options● Multiple transformation engines● FO Processing● Save or preview the transformation result

Page 7: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 3● Generate a table with books

Page 8: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● XSLT Input view● XPath default namespace● Content completion presents XML elements● Content completion aware of context

Page 9: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 4● Generate books images

Page 10: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● Code templates allows us to insert small

document fragments● The content completion presents the attributes

from the XML document available in context

Page 11: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 5● Generate title with link

Page 12: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● Variables presented in content completion● Create template from selection● Preview the result of the refactoring action

Page 13: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 6● Generate author in output

Page 14: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● Drag and drop nodes from the XSLT Input view

to create elements in stylesheet

Page 15: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 7● Generate book info in output

Page 16: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● The code template helps you to insert XSLT

document fragments easily● The caret position is in the attribute value and

the content completion is started

Page 17: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 8● Generate description in output

Page 18: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● Create a stylesheet from scratch

– XSLT and XPath content completion– XSLT Input view– Code templates

● Validation– Validation as you type– Highlight errors

● Transformation– Transformation scenarios– Multiple engines

Page 19: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 9● Identify XSLT component occurrences ● Rename an XSLT component

Page 20: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion● Easy Identification of XSLT Component

References

Page 21: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 10● Group the books by technology

Page 22: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● The XPath toolbar ● XPath builder for complex expressions● XPath 1.0, 2.0, 3.0● Content completion

Page 23: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

XSLT Outline● Parameters● Variables● Templates● Functions● Attribute-sets● Character-maps

Page 24: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 11● Generate two HTML files

Page 25: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● Parameters are detected from the stylesheet● Pass the value of the parameter● Perform multiple transformations● Use Transformation view

Page 26: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Demo – step 12● Document your stylesheet

Page 27: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● <oXygen/> provides a built-in schema for

documentation● You can use other languages like HTML,

DocBook, Dita or your own custom language● Action to add documentation for a component

Page 28: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

XSLT DocumentationThe XSLT documentation support

Page 29: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Conclusion ● Generate documentation in HTML or custom

format● Table of Contents● Link between components● User documentation● Show/Hide documentation details

Page 30: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Thank you!

Questions?Questions?

<oXygen/> XML Editorhttp://[email protected]@OctavianNadolu

Page 31: XSLT Development with oXygen (Part1) - Editing, Validation and Transformation

Copyright @ Syncro Soft, 2013. All rights reserved.Copyright @ Syncro Soft, 2013. All rights reserved.

XSLT Development with <oXygen/> - Part 1XSLT Development with <oXygen/> - Part 1

Q&AAnswers to your questions

If your question is not answered now, we will be in touch with an answer by email after the webinar.

The recording of the webinar will be available from our events page: http://www.oxygenxml.com/events_programme.html#pastevents