15 November 2005Linking Outside the Box1 Cross referencing between XML documents Bob Stayton Sagehill Enterprises

Slides:



Advertisements
Similar presentations
Applications of XSLT. generating Word documents WordML provides formatting and content elements Word 2003 can read WordML files XSLT can be used to transform.
Advertisements

Open Office.Org What is the Open Office.org Source Project? Open source project through which Sun Microsystems is releasing the technology for the popular.
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
1 XSLT – eXtensible Stylesheet Language Transformations Modified Slides from Dr. Sagiv.
XML Technology in E-Commerce
ISO DSDL ISO – Document Schema Definition Languages (DSDL) Martin Bryan Convenor, JTC1/SC18 WG1.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
Introduction to XLink Transparency No. 1 XML Information Set W3C Recommendation 24 October 2001 (1stEdition) 4 February 2004 (2ndEdition) Cheng-Chia Chen.
DT211/3 Internet Application Development
XLink: Open Linking Standard XML / XSL separate  data semantics  presentation semantics Need to also separate out  navigation semantics Single unique.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
Introduction to XML This material is based heavily on the tutorial by the same name at
Today’s Agenda Bill Presentment Overview Demo. Tailoring Your Invoices with Oracle’s Bill Presentment Architecture March 7, 2005.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
XML, DITA and Content Repurposing By France Baril.
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
Classroom User Training June 29, 2005 Presented by:
Using Styles and Style Sheets for Design
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
XML and XSL Institutional Web Management 2001: Organising Chaos.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
WORKING WITH XSLT AND XPATH
XML Language Family Detailed Examples Most information contained in these slide comes from: These slides are intended.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
XML: The Changing Phase of e-Documentation Jyothi Jandhyala.
Session II Chapter 2 – Chapter 2 – XSLhttp://
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Bare bones notes. Suggested organization for main folder. REQUIRED organization for the 115 folder.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
XHTML Presentation by Kevin See June 16, XML in HTML Meeting Report  May 11, 1998  html
Status and way forward with Publishing DICOM in XML Cor Loef Chair ad hoc group on Publishing DICOM in XML.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
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.
The Information School at the University of Washington INFO 440: Information System Design Fall 2003 * Bob Boiko * MSIM Associate Chair XML Transforms.
New Printing Options from RTF Charles Engelke Info Tech, Inc. Trnsport Users’ Group October 15, 2004.
10/18/2015 NORTEL NETWORKS CONFIDENTIAL – FOR TRAINING PURPOSES ONLY Global Documentation Evolution System Overview and End-to-End Process Training.
New Perspectives on XML, 2nd Edition
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
XML – Part III. The Element … This type of element either has the element content or the mixed content (child element and data) The attributes of the.
XML 2nd EDITION Tutorial 4 Working With Schemas. XP Schemas A schema is an XML document that defines the content and structure of one or more XML documents.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
Xml:tm XML Based Text Memory Using XML technology to reduce the cost of translating XML documents 27 June 2005.
The Web Wizard’s Guide to HTML Chapter One World Wide Web Basics.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XP New Perspectives on XML, 2 nd Edition Tutorial 7 1 TUTORIAL 7 CREATING A COMPUTATIONAL STYLESHEET.
Interoperability How to Build a Digital Library Ian H. Witten and David Bainbridge.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
1 Lecture 7 Style Sheets: CSS. 2 Motivation HTML markup can be used to represent –Semantics: h1 means that an element is a top-level heading –Presentation:
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Utah Open Source Conference Writing Books with Open Source Tools Paul W. Frields Jared Smith.
Unit 4 Representing Web Data: XML
Chapter 7 Representing Web Data: XML
Introducing HTML & XHTML:
Why use Web Standards?.
Presentation transcript:

15 November 2005Linking Outside the Box1 Cross referencing between XML documents Bob Stayton Sagehill Enterprises

15 November 2005Linking Outside the Box2 Cross referencing for readers ► Hypertext has arrived! ► Active links in HTML and PDF. ► Author creates links. ► Richer reader experience. Follow your interest. Details if needed. Instant gratification (maybe).

15 November 2005Linking Outside the Box3 Cross referencing for authors ► Good fit for modular content. Connect to larger context. Avoid tangents. ► Write once, refer many. ► Simpler than reuse. ► Single source for maintenance. ► Lower translation costs.

15 November 2005Linking Outside the Box4 Example "If you also want small caps in your print output, you will need to add something like this to your fo stylesheet customization layer:

15 November 2005Linking Outside the Box5 Generated text even better ► Chapter/figure number refs updated. ► Title changes propagate to references. ► Users get more accurate references. ► Even less translation (empty element). ► Flexible styling. Change global styles. Permit instance variations.

15 November 2005Linking Outside the Box6 XML 1.0 linking ► ID attribute type creates a target. ► IDREF creates a link. ► Parser validates the link. ► Stylesheet formats the link.

15 November 2005Linking Outside the Box7 XML 1.0 limitations ► Both ID and IDREF must be in same document. ► Forces large documents (sets of books). ► Or vague non-active references. ► Modular XML files are invalid.

15 November 2005Linking Outside the Box8 What about XLink? ► W3C Recommendation 27 June ► xlink namespace linking attributes. ► Bidirectional links. ► Separate link bases.

15 November 2005Linking Outside the Box9 Whither XLink? ► No general purpose XLink kit. 4 of 5 W3C references are 404 Not Found. ► XBRL (eXtensible Business Reporting Language) ► Renewed activity: Extending XLink 1.0, W3C Working Group, Note 27, January 2005

15 November 2005Linking Outside the Box10 XLink mechanism ► Simple xlink using href attribute. ► Link to XML file and ID target:

15 November 2005Linking Outside the Box11 Resolving XLinks ► Display XML target in browser? ► Style target with current stylesheet? Or with target's stylesheet? ► Numbered item: process whole document to generate count. ► What about conditional text in target? ► Stylesheet parameter options?

15 November 2005Linking Outside the Box12 Practical solution in DocBook ► Link to rendered documents. ► Use the stylesheet to resolve links.

15 November 2005Linking Outside the Box13 Resolve to rendered documents ► Hard to link to XML. ► Easy to link to HTML, PDF. ► All conditional text already resolved. ► All stylesheet parameters were set. ► Use ulink? Too fragile.

15 November 2005Linking Outside the Box14 Use the XSL stylesheet ► No separate XLink processor. ► Resolve and format. ► Collect target data with same stylesheet that rendered it. Includes any customizations.

15 November 2005Linking Outside the Box15 Cross reference design goals ► Make it easy for authors to link. ► Minimize maintenance overhead. ► Support HTML, PDF, other formats. ► Provide styling flexibility. ► Permit modular files that validate.

15 November 2005Linking Outside the Box16 Cross reference design features ► Link to any document in a collection. ► Avoid reprocessing target documents. ► Link to previously published content. ► Generate accurate link text. ► Flag unresolved links.

15 November 2005Linking Outside the Box17 Cross referencing in DocBook ► xref - to internal ID, generate text. ► link - to internal ID, authored text. ► ulink - to external URL. ► olink - link between DocBook docs.

15 November 2005Linking Outside the Box18 DocBook olink mechanism ► Extract link target info to database. Info on all potential targets. As rendered. ► Many documents in the olink database. ► Stylesheet reads database. Look up target. Use info to style link.

15 November 2005Linking Outside the Box19 Easy for authors ► Two attributes on empty olink element: For more information, see. ► Resolves to: For more information, see Chapter 5, "Customizing DocBook" in DocBook: The Definitive Guide.

15 November 2005Linking Outside the Box20 Olink attributes ► targetdoc - document identifier. ► targetptr - ID attribute in the document. ► xrefstyle - optional styling hint.

15 November 2005Linking Outside the Box21 Document identifier ► Not a filename. ► Abstract reference. ► Resolved at runtime. Version, profile. Output format (HTML, PDF). Language.

15 November 2005Linking Outside the Box22 Database setup ► Define scope. ► Assign document identfiers. ► Create database framework file. ► Generate target data files for each doc.

15 November 2005Linking Outside the Box23 Database framework olinkdb.xml <!DOCTYPE targetset [ ]> &uglinks; &admin;

15 November 2005Linking Outside the Box24 Collect target data ► For each document: saxon userguide.xml docbook.xsl collect.xref.targets="yes" ► Generates target.db data file. ► Each doc's data is updated separately. ► Framework always reads latest update.

15 November 2005Linking Outside the Box25 Target data DocBook: Definitive Guide Customizing DocBook Chapter 5, "Customizing DocBook"...

15 November 2005Linking Outside the Box26 Processing olinks ► Pass reference to framework file: saxon adminguide.xml docbook.xsl target.database.document="olinkdb.xml" ► Stylesheet locates targetdoc. ► Stylesheet gets info for targetptr. ► Assembles text and styles it.

15 November 2005Linking Outside the Box27 Assembling link text ► Default: xref from target stylesheet. ► Option to use current stylesheet. ► Optional xrefstyle attribute: named styles in current stylesheet. select components (title, number). style template. ► Add book title.

15 November 2005Linking Outside the Box28 Managing olinks ► Dependencies between documents! ► When update a document: Render it. Regenerate target data at same time. ► Manage releases.

15 November 2005Linking Outside the Box29 Manage destinations ► Use baseuri for each target doc. ► Prefixed to each rendered olink. <document targetdoc="ag" baseuri="file:///doc/admindoc/">...

15 November 2005Linking Outside the Box30 New DocBook capabilities ► Modular XML files. ► Asynchronous processing. ► Links to open source doc. ► Language fallback.

15 November 2005Linking Outside the Box31 Modular XML files ► Use XInclude instead of system entity. Add DOCTYPE for validation. ► Use olink between modules instead of xref. ► Each module is valid mini document.

15 November 2005Linking Outside the Box32 Asynchronous processing ► Separate linking data. ► Process one document, not all. ► Departments feed into central database. ► Manage target data updates. ► Link to previous releases.

15 November 2005Linking Outside the Box33 Links to open source doc ► Open source DocBook doc. ► Generate olink data file. ► Assign targetdoc identifier. ► Create olinks to it from your docs.

15 November 2005Linking Outside the Box34 Language fallback ► Some docs translated, others not. ► Framework supports multiple langs. ► Stylesheet can try current lang, and fall back to another lang if not found. ► Stylesheet parameter: olink.lang.fallback.sequence="de fr en"

15 November 2005Linking Outside the Box35 In conclusion ► Olinks are easy to author. ► Olinks are maintainable. ► Customizable stylesheet processing. ► Olinking widely used in DocBook today.

15 November 2005Linking Outside the Box36 Resources ► DocBook XSL: The Complete Guide ► DocBook: The Definitive Guide ► DocBook SourceForge project: