Download presentation
Presentation is loading. Please wait.
Published byGodwin Underwood Modified over 8 years ago
1
WHAT IS MEDIA
2
MEDIA VS. MEDIA Single Source widely variant ‘media’ at acceptable levels of quality?
5
Traditional associating stylesheets with instances 1. Hard Coded – all xml through same stylesheet, perhaps change by media location. Complicates introduction of new XML 2. Declarative – Use this XML with this XSLT. Requires knowing what XML and What XSLT matches it. 3. Location based – any XML from this location passes through a particular stylesheet. Requires limiting the document types in locations. Bad for Application Building. 4. Based on Validation, Doctype – mod_xsl Erlang. Tight Coupling of Presentation to validity. Requires support of multiple validation engines to achieve multiple input formats. Unworkable.
6
New Associating Stylesheets with Instances If stylesheet = test_{mediachannel}.xsl If stylesheet = http_www_example_org_test_{mediachannel}.xsl If stylesheet = mytest_test_{mediachannel}.xsl If stylesheet not found, go to next closest match, if no match: Stylesheet = {mediachannel}_generic.xsl stylesheet= mytest_test_{mediachannel}.xsl
7
Root Node of core presentational stylesheet Input Document Element -> Output Document Element My Test
8
Managing Stylesheets stylesheet 1 stylesheet 2 stylesheet 3stylesheet 4 stylesheet 5 ALWAYS Import Stylesheet order Synchronizing Stylesheets and Media + = +=
9
Configuratio n 2007 Bryan typical presentational markup media structural layout Linking functions Global functions /Markup Fragments /Site Settings /Global Display elements (Headers, Footers) doctype functions, settings, headers footers
10
XSL Style in Docbook 0.5in 0.5em 1em 2em DOCBOOK DOCBOOK´with GTA 0.5in 0.5em 1em 2em OR 0.2 in OR CSS - multiple inheritance, reuse of styling across document types
11
Structured Input=Structured Output Arbitrary Output != Unstructured Input XSL-FO multiple format/instance inputs -> one format/instance output Page 1-20 Docbook Page 21 - 22 XSL-FO with embedded script Page 23 - 30 Docbook Page 31 - 35 Script, Simple Presentational Markup, SVG. Partial Reuse Strategy + Docbook css.xml + xsl-fo css.xml + Docbook css.xml + default css.xml
12
Cross Media Scripting configuration different per media funx language supports branching based on media name Hello Web Media! Hello Media that are not Web! web Hello Web Media! Hello all media that are not web! Hello Media! media -->
13
Media Implementations so far 1. Web – dynamic media, applications 2. PDF – static media, arbitrary content 3. Help Files – static media, arbitrary content. 4. Mail – Beta Status. 5. SVG – Alpha Status. 6. Voice – Alpha Status.
14
Other Uses GTA/Funx good for: 1. Media Transformations 2. Code Generation/XSL-T generation, Format Extension. 3. Webservices/Pipelines. Demos time
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.