Power Hour October 2010 Building Custom Formats

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Webinar Process Contents 1. Prior to Webinar Promotion Registration 2. During Webinar 3. Follow-Up After Webinar 4. Archive & Persistent Lead Generation.
XSL Concepts Lecture 7. XML Display Options What can XSL Transformations do? generation of constant text suppression of content moving text (e.g., exchanging.
XSL Unit 6 November 2. XSL –eXtensible Stylesheet Language –Basically a stylesheet for XML documents XSL has three parts: –XSLT –XPath –XSL-FO.
XML Language Family Detailed Examples Most information contained in these slide comes from: These slides are intended.
1 Copyright (c) [2002]. Roger L. Costello. All Rights Reserved. Using Extension Elements and Extension Functions with XSLT and XPath Roger L. Costello.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
OFC302 Building Smart Document Solutions in Word & Excel Martin Sawicki Lead Program Manager.
® IBM Software Group © 2009 IBM Corporation Rational Publishing Engine RQM Multi Level Report Tutorial David Rennie, IBM Rational Services A/NZ
Comparing XSLT and XQuery Michael Kay XTech 2005.
CIS 451: XSL Dr. Ralph Westfall February, Problems With XML no formatting capabilities contra formatting tags like, etc. in HTML CSS can be used.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
CSE3201/CSE4500 Information Retrieval Systems XSLT – Part 2.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
Extensible Stylesheet Language Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University XSL-FO XSLT.
CTI STIX SC Monthly Meeting August 19, 2015.
Using XML to store Descriptive Metadata Richard Murphy Rosarie O’Riordan Central Statistics Office Ireland.
Standards for Technology in Automotive Retail STAR Update Michelle Vidanes STAR XML Data Architect April 30 th, 2008.
XP New Perspectives on XML, 2 nd Edition Tutorial 8 1 TUTORIAL 8 CREATING ELEMENT GROUPS.
Inter-company Documents Module Extension Module Webinar 29 th of October 2009.
 XSL – Extensible Style Sheet Language  XSLT – XSL Transformations › Used to transform XML documents to other formats,like HTML or other XML documents.
CSE3201/CSE4500 Information Retrieval Systems XSLT – Part 2.
ICM – API Server & Forms Gary Ratcliffe.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
Rajeev Gandhi Navodaya Vidyalaya, Dehradun (Become the ICT users in 5 hours) Workshop for students Class X th Project Subject : Civics ‘Local Administration.
1 XSLT XSLT (extensible stylesheet language – transforms ) is another language to process XML documents. Originally intended as a presentation language:
Instructions for Website How to register: 1. Click “Register” under the banner 1.
CSE 103 Day 20 Jo is out today; I’m Carl
Beginning XML 4th Edition.
ArcGIS Workflow Manager: Advanced Workflows and Concepts
Displaying XML Data with XSLT
What You Need to Know About User Defined Objects (UDOs) With Tools Release 9.2
Brian McCallum UWS, Web Services Unit 15 November 2011
Show Me! ePublisher & Distributed Publishing
Power Hour April 2011 DITA and ePublisher
Appendix A: Guide to Using Microsoft Project 2002
Using XSLT and XPath to Transform XML Documents
Using Extension Elements and Extension Functions with XSLT and XPath
Show Me July 2011 ePublisher Overview
Responsive Design Optimizing the browsing experience
Power Hour November 2010 Implementing Context-Sensitive Help
Show Me – March 2011 ePublisher 2010 – The Year in Review
Power Hour June 2012 Usage Metrics Learning about your audience
ePublisher Invoking Tools and Post-Processing Outputs
Power Hour May 2013 XSL-FO Basic Concepts and Markup
Power Hour December 2013 Images Optimizing for online and print
Power Hour July 2013 ePublisher Hacking Primer Format Conventions
ACG 4401 XSLT Extensible Stylesheet Language for Transformations
Advanced Search Configuration and Management
DITA & Non-DITA AUTHORING Platforms
Power Hour June 2010 AutoMap Scripting
Please log on a computer Open the web and then Open four tabs…
Show Me September 2011 ePublisher Overview
Page Templates Leveraging Page Templates for Good and Evil
Power Hour October 2013 Extending Styles Adding properties and options
Show Me June 2011 ePublisher
Show Me! Conditional Text
Background We would like to combine existing User guide and Admin guide currently in PDF form into a single HTML master site This master HTML site will.
How to Create an Effective Newsletter
Show Me October 2011 ePublisher Overview
Power Hour July 2010 Deployment Clients
Rational Publishing Engine RQM Multi Level Report Tutorial
Power Hour September 2014 Dynamic Merge Multi-volume Help on the Fly
Appendix A: Guide to Using Microsoft Project 2002
More XML XML schema, XPATH, XSLT
EXTENDING COMPONENTS AND TABLE TRANSFORMATIONS WITH XSL
PDFs from DITA Examining the process of DITA to XSL-FO to PDF
Presentation transcript:

Power Hour October 2010 Building Custom Formats Ben Allums

Power Hour – October 2010 Agenda Survey Results Building Custom Formats Concepts Code Practice Webinars of Interest

Power Hour – October 2010 Survey Results

Survey Results When to meet:

Survey Results Topics to cover:

Survey Results Topics to cover: Using the XML adapter with DTDs other than DITA Files needed to customize the WebWorks 5 template - has their location changed since the help doc on the wiki was posted? pre-2008.4

Building Custom Formats Power Hour – October 2010 Building Custom Formats

Building Custom Formats Concepts Code Practice

Building Custom Formats Concepts

Building Custom Formats Concepts Start with XML Script with XSLT Use the File Library Finding files Adding files Extension Methods, for everything else Manipulate with file & URI paths Write files Log progress

Concepts Container Nested Nested Start with XML Structured content Distinguish with attributes Container id=top Nested id=first type=aaa Nested id=sec type=aaa

Concepts Container * Container A Nested Copy Nested type=aaa A Nested Script with XSLT Match context Emit new structure or keep the same Container id=top * Container A Nested Copy Nested id=first type=aaa type=aaa A Nested A Nested id=sec type=aaa Copy

Concepts Files File File Use the File Library Finding files Adding files Files File path type File path type

Concepts * wwfilesystem Copy wwexsldoc type=aaa A wwlog Copy Extension Methods, for everything else Manipulate with file & URI paths Write files Log progress * wwfilesystem Copy wwexsldoc type=aaa A wwlog Copy

Building Custom Formats Code

Building Custom Formats Code Start with XML Script with XSLT Use the File Library Finding files Adding files Extension Methods, for everything else Manipulate with file & URI paths Write files Log progress

Code Start with XML All content (FrameMaker, Word, DITA) goes to XML WebWorks Intermediate Format (WIF) <?xml version="1.0" encoding="utf-8"?> <Document xmlns="urn:WebWorks-Document-Schema">  <Content> <Paragraph id="5000001" stylename="Heading1"> <TextRun id="5000001-1" stylename="Bold"> <Text value="Example WIF Document" /> </TextRun> <TextRun id="5000001-2"> <Text value=" shows what is possible." /> </TextRun> </Paragraph> </Content> </Document>

Code Script with XSLT Match content Emit as you like <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet> <xsl:template match="/"> <xsl:apply-templates /> </xsl:template> <xsl:template match="wwdoc:Paragraph[@stylename = 'Heading 1']"> <h1> <xsl:apply-templates /> </h1> </xsl:template> <xsl:template match="*"> <xsl:apply-templates /> </xsl:template> ... </xsl:stylesheet> wwdoc:Paragraph[@stylename = 'Heading 1'] <h1> </h1>

Code Use the File Library Tracks every file ePublisher knows about Look for types (and also group and document IDs) <?xml version="1.0" encoding="utf-8"?> <Files version="1.0" xmlns="urn:WebWorks-Engine-Files-Schema"> <File path="C:\Temp\WebWorks\ePublisher\Data\resource.fmwif" type="engine:conversion" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4"> <Depends path="C:\Desktop\book\resource.fm" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4" /> </File> <File path="C:\Temp\WebWorks\ePublisher\Data\resource.wif" type="engine:wif" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4"> <Depends path="C:\Temp\WebWorks\ePublisher\Data\resource.fmwif" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4" /> </File> type="engine:conversion" type="engine:wif"

Code Use the File Library Finding files  Query by type Process all files of a given type at once <?xml version="1.0" encoding="utf-8"?> <Files version="1.0" xmlns="urn:WebWorks-Engine-Files-Schema"> <File path="C:\Temp\WebWorks\ePublisher\Data\resource.fmwif" type="engine:conversion" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4"> <Depends path="C:\Desktop\book\resource.fm" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4" /> </File> <File path="C:\Temp\WebWorks\ePublisher\Data\resource.wif" type="engine:wif" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4"> <Depends path="C:\Temp\WebWorks\ePublisher\Data\resource.fmwif" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4" /> </File> type="engine:wif"

Code Use the File Library Adding files  Tell ePublisher what you created Available to all later processing stages <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet> <xsl:template match="/"> ... <wwfiles:Files> <wwfiles:File path="C:\Desktop\my_new_file.html" type="output:page" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4" /> </wwfiles:Files> </xsl:template> ... </xsl:stylesheet> <wwfiles:Files> <wwfiles:File path="C:\Desktop\my_new_file.html" type="output:page" groupID="WS29Gkg8W7g" documentID="V-d9Aksa5_4" /> </wwfiles:Files>

Code Extension Methods, for everything else XSLT only goes so far Extension methods enable ePublisher to provide a complete solution <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet> <xsl:template match="/"> ... <xsl:variable name="VarPageAsXML"> <!-- Page content --> </xsl:variable> <xsl:variable name="VarPage" select="msxsl:node-set($VarPageAsXML)" /> <xsl:variable name="VarPath" select="wwfilesystem:Combine($VarOutputDir,'file.html')" /> <xsl:variable name="VarWriteFile" select="wwexsldoc:Document($VarPage, $VarPath)" /> ... </xsl:template> ... </xsl:stylesheet> wwfilesystem:Combine($VarOutputDir,'file.html') wwexsldoc:Document($VarPage, $VarPath)

Building Custom Formats Practice

Building Custom Formats Practice Minimal format to get started Customize an existing format Let’s try it!

Power Hour – October 2010 Webinars of Interest

Webinars of Interest Show Me: November 18th at 11:30am Central Topic: Single Sourcing your Content & ePublisher 2010.3 Learn what the ePublisher platform can do for you right out of the box. Hosted by members of the WebWorks staff Repeats on the 3rd Thursday of every month Sign-up at http://www.webworks.com/Resources/Events/Show_Me/

Webinars of Interest Study Hall: November 10th at 1:00pm Central Open forum for ePublisher users Ask questions or request help on custom projects Hosted by members of the WebWorks development staff Repeats on the 2nd and last Wednesdays of every month Join at http://www.webworks.com/Resources/Events/Study_Hall/

Webinars of Interest Archives: Power Hour http://www.webworks.com/Resources/Events/Power_Hour/Archive/ Show Me! http://www.webworks.com/Resources/Events/Show_Me/Archive/

Power Hour October 2010 Building Custom Formats Ben Allums