Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1...
-
Upload
blanca-halse -
Category
Documents
-
view
213 -
download
0
Transcript of Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1...
![Page 1: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/1.jpg)
Defining 1
XML in Multi-channel Publishing
![Page 2: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/2.jpg)
Defining 2
Usage of XML<?xml version="1.0" encoding="utf-8" standalone="no"?><P2Main xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ClipContent> <ClipName>0001V1</ClipName> <GlobalClipID>060A2B340101010501010D43130000006DE8A27B794905D1008045822CE2045F</GlobalClipID> <Duration>230</Duration> <EditUnit>1/25</EditUnit> <EssenceList> <Video ValidAudioFlag="false"> <VideoFormat>MXF</VideoFormat> <Codec>DV25_420</Codec> <FrameRate>50i</FrameRate> <StartTimecode>09:10:28:22</StartTimecode> <StartBinaryGroup>DB0F502F</StartBinaryGroup> <AspectRatio>16:9</AspectRatio>Metadata
<?xml version="1.0" encoding="UTF-8"?><projectDescription><name>HelTechXML</name><comment></comment><projects></projects><buildSpec></buildSpec><natures></natures></projectDescription>
Configuration
<RmtInf> <Strd> <CdtrRefInf> <CdtrRefTp> <Cd>SCOR</Cd> </CdtrRefTp> <CdtrRef>1245</CdtrRef> </CdtrRefInf> </Strd></RmtInf>
eCommercePublishing and content management
Etc…
Workflow
![Page 3: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/3.jpg)
Defining 3
How Do I Recognize XML
File starts with XML declaration
<?xml version="1.0"?>(XML) 1.0 (Fifth Edition)
W3C Recommendation 26 November 2008
<?xml version="1.1"?> (XML) 1.1 (Second Edition)
2006-08-16 Extensible Markup Language
![Page 4: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/4.jpg)
Defining 4
Four Main Areas1. Data exchange between organization”e-commerce”
SOAP and Web Services (RosettaNet ...) XML + SCHEMA (+ XSL)
2. Open and self describing file format interface
”knowledge management”- Parsing (Flash, PHP, Java programming, JDF …)- XML and DOM
3. Multi-channel Publishing ”e-publishing”- XML + XSL + SCHEMA
4. Metadata
- XML
![Page 5: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/5.jpg)
Defining 5
Impact of XML
Impact of XML in three areas: e-commerce, e-publishing and knowledge management for conducting business on the Web.
Ability of XML to separate presentation from content is just what is needed, because the content changes more rapidly than the layout.
![Page 6: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/6.jpg)
Defining 6
Cross-media Publishing
Cross-media publishing tools With no simple all-in-one solution for cross-media workflows.
Cross media publishing is a fact of life for graphic arts professionals these days as more and more content is turning up on the Web and on electronic media.
![Page 7: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/7.jpg)
Defining 7
Key benefits of XML
One of the key benefits of XML is that it enables content updates, which otherwise would have to be done manually, to be automated. Regardless of whether you are talking about updating a Web site or a product catalog, the requirements are similar:
rapid updatesaccuracyscalability
Because XML provides a consistent, expressive, and standard format, it enables the automated processing,
delivery and updating of information.
![Page 8: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/8.jpg)
Defining 8
XSLXSLPresentationPresentation
XSLXSLPresentationPresentation
XML XML ContentContent
XML XML ContentContent
XSD XSD SructureSructure
XSD XSD SructureSructure Different Different
PresentationPresentationDifferent Different
PresentationPresentation
Different Different ContentContent
Different Different ContentContent
Different Different Content Content
andandPresentationPresentation
Different Different Content Content
andandPresentationPresentation
XML in Publishing
![Page 9: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/9.jpg)
Defining 9
XML and Publishing Media
Publish to Web via HTML+CSS
Publish to Print Media via XSL-FO and PDF
Publish to various applications e.g. Excel
Publish to EDI for Partners
XSL Transformation is transforming XML documents into other XML documents
![Page 10: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/10.jpg)
Defining 10
ChannelsChannelsChannelsChannels
DevicesDevicesDevicesDevices
UsersUsersUsersUsers
PersonPersonPersonPerson
carried by differentcarried by different
presented by differentpresented by different
used by differentused by different
tailored for tailored for
XML in Multi-channel Publishing MediaMediaMediaMediapublishingpublishing
![Page 11: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/11.jpg)
Defining 11
XSLXSLPresentationPresentation
XSLXSLPresentationPresentation
ChannelChannelChannelChannel
DeviceDeviceDeviceDevice
UsersUsersUsersUsers
PersonPersonPersonPerson
WWWWWWWWWWWWMultimedia content
Multimedia contentAmount of information
Amount of information
Connection typeConnection type
PricePrice
SpeedSpeed
Interactive content
Interactive content
Different versions
Different versions
MobileMobileMobileMobile
Print MediaPrint MediaPrint MediaPrint Media
eMaileMailDigiTVDigiTVeMaileMailDigiTVDigiTV
BrowsersBrowsersBrowsersBrowsers
PC-PDA-PC-PDA-MobMob
PC-PDA-PC-PDA-MobMob
Print mach.Print mach.Print mach.Print mach.
AudioAudioAudioAudio
SuperTextSuperTextSuperTextSuperText
IndividualsIndividualsIndividualsIndividuals
User User groupsgroupsUser User
groupsgroupsCommunityCommunityCommunityCommunity
User User locationlocation
User User locationlocation
IdIdIdId
ContextContextContextContext
HistoryHistoryHistoryHistory
NeighboursNeighboursNeighboursNeighbours
Device limitations
Device limitationsPresentation capabilities
Presentation capabilities
LegalityLegality
Non disclosiveNon disclosive
ConfidenceConfidence
InterestInterest
ServiceService
On/offdemand
On/offdemand
On/offlineOn/offline
XML XML ContentContent
XML XML ContentContent
XSD XSD SructureSructure
XSD XSD SructureSructure
Demands of XML in Multi-channel Publishing MediaMediaMediaMedia
![Page 12: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/12.jpg)
Defining 12
XML Publishing in Practice: Varying Contents and Presentationscontent Acontent A
program.xmlprogram.xml
content Acontent A
program.xmlprogram.xmlcontent Bcontent B
program.xmlprogram.xml
content Bcontent B
program.xmlprogram.xml
StylesheetStylesheet
program.xsl program.xsl
StylesheetStylesheet
program.xsl program.xsl
Stylesheet AStylesheet A
program.xslprogram.xsl
Stylesheet AStylesheet A
program.xslprogram.xsl
Stylesheet BStylesheet B
program.xsl program.xsl
Stylesheet BStylesheet B
program.xsl program.xsl content Acontent A
program.xmlprogram.xml
content Acontent A
program.xmlprogram.xml
content Ccontent C
program.xmlprogram.xml
content Ccontent C
program.xmlprogram.xml
![Page 13: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/13.jpg)
Defining 13
XML Publishing in Practice: Different Output Formats
contentcontent
metropolia.xmlmetropolia.xml
contentcontent
metropolia.xmlmetropolia.xml
format pdfformat pdf
toPDF.xsltoPDF.xsl
format pdfformat pdf
toPDF.xsltoPDF.xsl
format xhtmlformat xhtml
toPDF.xsltoPDF.xsl
format xhtmlformat xhtml
toPDF.xsltoPDF.xsl
![Page 14: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/14.jpg)
Defining 14
XML Publishing in Practice: Different Users
Content:Content:
phonebook.xmlphonebook.xml
Content:Content:
phonebook.xmlphonebook.xml
Stylesheet AStylesheet A
phoneEveryone.xsl phoneEveryone.xsl
Stylesheet AStylesheet A
phoneEveryone.xsl phoneEveryone.xsl
Stylesheet BStylesheet B
phoneConfidential.xsl phoneConfidential.xsl
Stylesheet BStylesheet B
phoneConfidential.xsl phoneConfidential.xsl
![Page 15: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/15.jpg)
Defining 15
XML Publishing in Practice: Personalizing
contentcontent
cd.xmlcd.xml
contentcontent
cd.xmlcd.xml
stylesheetstylesheet
cd.xslcd.xsl
stylesheetstylesheet
cd.xslcd.xsl
![Page 16: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/16.jpg)
Defining 16
W3C World Wide Web Consortium “W3C:n jäsenet kehittävät yhdessä universaaleja Web-
teknologioita, mahdollistaen maailmanlaajuisen viestinnän ja liiketoiminnan kenelle tahansa, missä tahansa, milloin tahansa ja millä laitteella tahansa. “
We ensure that that both technological protocols and social conventions respect basic values. That Web remains a universal platform: independent of any specific hardware device, software platform, language, culture, or disability.
Tim Berners-Lee, W3C Director and inventor of the World Wide Web
http://www.w3c.tut.fi/index.html W3c Suomen toimisto
http://www.w3.org/
![Page 17: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/17.jpg)
Defining 17
XML in Publishing ProcessXML in Publishing Process
3. Publish3. PublishPresentationPresentation
.xsl.xsl
3. Publish3. PublishPresentationPresentation
.xsl.xsl
2. Create2. CreateDocumentDocument
.xml.xml
2. Create2. CreateDocumentDocument
.xml.xml
1. Define1. Define SructureSructure
.dtd or .xsd.dtd or .xsd
1. Define1. Define SructureSructure
.dtd or .xsd.dtd or .xsd
Document-centricOutput
e.g. Finnish Law Book
Document-centricOutput
e.g. Finnish Law Book
Data-centric output
e.g. registry
Data-centric output
e.g. registryValidation with dtd / xsdValidation with dtd / xsd
Testing of ”Well Formed”Testing of ”Well Formed”
ParserParser TransformerTransformer
ParserParser
ParserParser
0. Structure Diagram
Validation is needed only when the xml –file is created
![Page 18: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/18.jpg)
Defining 18
Step 0: Structure analyzesStep 0: Structure analyzes
document
greeting#PCDATA
language#PCDATA
![Page 19: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/19.jpg)
Defining 19
Step 1: Document Type DefinitionStep 1: Document Type Definition
HelloWorld.dtd
<!ELEMENT document (greeting, language)><!ELEMENT greeting (#PCDATA)><!ELEMENT language (#PCDATA)>
![Page 20: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/20.jpg)
Defining 20
Step 2: Content with XMLStep 2: Content with XML
HelloWorld.xml
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE document SYSTEM "HelloWorld.dtd"><document> <greeting>Hello World</greeting> <language>English</language></document>
![Page 21: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/21.jpg)
Defining 21
Step 3: Markup with XSL Step 3: Markup with XSL stylesheetstylesheet HelloWorld.xsl
<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes“ encoding="ISO-8859-1"/><xsl:template match="/"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > <head> <title> Hello World</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <h1> <xsl:value-of select="document/greeting" /> </h1> <h2> <xsl:value-of select="document/language" /> </h2> </body> </html></xsl:template></xsl:stylesheet>
![Page 22: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/22.jpg)
Defining 22
Step 4: PublishingStep 4: Publishing
HelloWorld.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8“ /><title> Hello World</title></head><body><h1>Hello World</h1><h2>English</h2><p><a href="http://validator.w3.org/"><img src="http://validator.w3.org/images/vxhtml10" alt="Valid XHTML 1.0!" height="31" width="88"></img></a></p></body></html>
PHP transformer leaves meta tag unclosed
![Page 23: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/23.jpg)
Defining 23
XHTML supports three DOCTYPEs<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<xsl:output method="xml" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes" encoding="ISO-8859-1"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<xsl:output method="xml"
media-type="text/html"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
cdata-section-elements="script style"
indent="yes"
encoding="ISO-8859-1"/><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
in xslin xsl
in xslin xsl
![Page 24: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/24.jpg)
Defining 24
Xhtml is xml Version of html 4.1
<xsl:output method="xml" == default, method =“html” version =“ 4.0”, .. text,name
Optional - defines the output format. media-type="text/html“ MIME type of the output (here html
page)doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
Value of the PUBLIC attribute doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
Value of the SYSTEM attribute cdata-section-elements="script style" <xsl:text> // <![CDATA[ for (var i = 0; i < 10; i++)
alert(i); // ]]> otherwice <
<xsl:text>
indent="yes" “no” = extra lines/whitespace
encoding="ISO-8859-1" /> Value of the encoding attribute in the output
![Page 25: Defining1 XML in Multi-channel Publishing. Defining 2 Usage of XML 0001V1 060A2B340101010501010D43130000006DE8A 27B794905D1008045822CE2045F 230 1/25 MXF.](https://reader036.fdocuments.in/reader036/viewer/2022070411/56649c7d5503460f949328ba/html5/thumbnails/25.jpg)
Defining 25
Main XML ComponentsContentContent
program.xmlprogram.xml
eXtensible Markup LanguageeXtensible Markup Language
ContentContent
program.xmlprogram.xml
eXtensible Markup LanguageeXtensible Markup Language
Defining the structureDefining the structure
origram.dtd (or .xsd)origram.dtd (or .xsd)
Document Type DefinitionDocument Type Definition
(or XML Schema)(or XML Schema)
Defining the structureDefining the structure
origram.dtd (or .xsd)origram.dtd (or .xsd)
Document Type DefinitionDocument Type Definition
(or XML Schema)(or XML Schema)
jäsenninParser
XSL muunnosXSL
Transformation
PresentationPresentation
program.xslprogram.xsl
extensible Style sheet extensible Style sheet languagelanguage
PresentationPresentation
program.xslprogram.xsl
extensible Style sheet extensible Style sheet languagelanguage
program.html
ohjelma.xml
program.pdf ..
XSL-FO formating