SlideShare une entreprise Scribd logo
1  sur  31
Unlock Content




                          First Encounters with Office Open XML


                                                                   Matt Turner
                                                                   Principal Consultant
                                                                   December 3rd, 2007



Copyright © 2007 Mark Logic Corporation. All rights reserved.                             Slide 1
Agenda


      Office Open XML basics
              p
      Office Open XML and XML tools
      Some examples
      Parting Thoughts




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 2
Office Open XML

      Native format of MS Office 2007
              Complete rework of the entire
              productivity suite
              Word, PowerPoint, Excel, etc.
              All have native format of XML!


      OOXML = Office Open XML

      Standard through Ecma International
              Formally k
              F    ll known as E
                               Ecma 376
              Approved in December 2006




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 3
Lets Have a Look


     There is a lot of it . . .

     A Requirement was 100% compatibility
        Layout based
        6500+ page specification
                        ifi ti
        Thousands of elements + attributes

     And speed and space
        Single-character QNames
        Single character
        Single-character namespace prefixes
        No spare whitespace

     But the core element set is manageable . . .

                                                                . . . for simple documents ☺
Copyright © 2007 Mark Logic Corporation. All rights reserved.                                  Slide 4
It’s Not XML, It’s Zipped XML




        Zipped container with content, formatting info and
        manifest
        Payload varies by application but its all XML
        New extension: .docx, pptx .xlsx
                        docx pptx, xlsx

Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 5
Office Open XML Sample




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 6
Runs Present Some Issues

      The core of a Word file comprises text “runs”
         New styles require new runs sometimes they just show up
                                   runs,
         Sometimes split text (!!)




      Needs some special handling which we can do with XQuery

Copyright © 2007 Mark Logic Corporation. All rights reserved.      Slide 7
Hooks to Add Structure


      Spec allows for customXml tag that you can use to add
      structure
      Word also support to let you add structure
               Support for schemas to control editing
               Controls to let you add arbitrary tags
               And flow content from external (XML) sources
               Available from the Developer Tab
                  Enable developer tab from word options under the ‘big button’
      Word itself can be configured with XML to jump start
      custom editing and XML interactions



Copyright © 2007 Mark Logic Corporation. All rights reserved.                 Slide 8
Agenda


      Office Open basics
              p
      Office Open XML and XML tools
      Some examples
      Parting Thoughts




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 9
What can we do with it?

      It’s XML – anything!!
               You
               Y can query it transform it . . . the whole enchilada.
                           it, t   f             th   hl      hil d
      Create it
               MS Word is now (just) an OOXML editor ( )
                              (j )                   (!!)
               There are lots of other ways to edit and create OOXML
      Make the desktop connection
               Drive application context direct from end-user documents
               Output quot;first-draftquot; of end-user documents that work on (real)
               desktops
               Create content apps that work directly on collections of
               Office documents, without conversion
      Simplify the XML-ifying of business processes
                   XML ifying

Copyright © 2007 Mark Logic Corporation. All rights reserved.                   Slide 10
XQuery Makes It Happen

      XQuery - much more than a query language
        W3C standard
        Query, manipulate and render XML

      XML Content Servers (like MarkLogic Server)
        Application ready extensions provide complete
        platform for content applications
        Such as
           Update features to load / maintain content
           HTTP / REST interfaces
           Zip tools to h dl the
           Zi t l t handle th packaging*
                                       ki*
                                                                *MarkLogic Server only

Copyright © 2007 Mark Logic Corporation. All rights reserved.                     Slide 11
Agenda


      Office Open basics
              p
      Office Open XML and XML tools
      Some examples
      Parting Thoughts




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 12
Examples


1. Exploring Office Open XML
     p     g         p
   •         Open up .zip package
   •         Update XML
   •         Repackage

   •         Load into Content Server
   •         Create CustomXml + Controls
   •         Query and Update
   •         Repackage into .docx




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 13
Examples

      Unzip package and edit document.xml to add Custom Structure in
      XML editor




Copyright © 2007 Mark Logic Corporation. All rights reserved.          Slide 14
Examples

      Zip back up, rename to .docx and open in word
      use developer tab to view CustomXml




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 15
Examples

•     Load into MarkLogic Server, unzip and expand to load individual
      XML files




Copyright © 2007 Mark Logic Corporation. All rights reserved.           Slide 16
Examples

•     Query the XML: this XQuery




•     Returns:
      Rt




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 17
Examples

•     Package the files back up to create a new .docx




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 18
Content Server Examples


      Office Open XML = accessible format
         gives you the building blocks to create purpose built
         applications to leverage desktop apps



      Content Servers put it together
        MarkLogic Server combines the XML tools (XQuery)
        to process it and the extension to seamlessly round
        trip content




Copyright © 2007 Mark Logic Corporation. All rights reserved.    Slide 19
Content Server Examples


Generate, Query and Mash-up MS Word
       1. Use XQuery to transform XML into Office Open XML

       2. Use XQuery t access granular content elements in
       2 U XQ        to            l      t tl       ti
          word documents and create new Office Open XML

       3. Customize Word Ribbons to query MarkLogic Server
          to get content and save new content back




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 20
Content Server Example 1

From source XML (shakespeare plays)




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 21
Content Server Example 1

Generate Open Office XML




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 22
Content Server Example 1

Package and open in Word – with structure in customXML elements




Copyright © 2007 Mark Logic Corporation. All rights reserved.     Slide 23
Content Server Example 2

Access granular elements of Office Open XML and create new content




Copyright © 2007 Mark Logic Corporation. All rights reserved.        Slide 24
Content Server Example 3

Add content using custom Mark Logic Ribbon
   Insert new content into
   Shakespeare play
   Query MarkLogic
   Server for content from
   tech support content
   base




 Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 25
Content Server Example 3

Add content using custom Mark Logic Ribbon
   Insert new content into
   Shakespeare play
   Query MarkLogic
   Server for content from
   tech support content
   base
   Insert content into play
   Actions contained in
   MarkLogic Ribbon




 Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 26
Content Server Example 3

Save content back to contentbase
   Select any content
   Create a new
   document with the
   snippet in MarkLogic
   Server contentbase




 Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 27
Agenda


      Open Office basics
       p
      OOXML and XML tools
      Some examples
      Parting Thoughts




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 28
Conclusions

      Office 2007’s native file format is XML! For real!

      XQuery provides powerful tools to ingest, query,
      manipulate and g
          p          generate the format ( XML after all)
                                          (it’s         )

      OOXML provides the building blocks for integrated
      content apps based on desktop content

      XML Content Servers enable these applications so . . .




Copyright © 2007 Mark Logic Corporation. All rights reserved.   Slide 29
Content Application Resources

   OOXML Standard
            http://www.ecma-international.org/publications/standards/Ecma-376.htm
   Small changes – featuring OOXML
            http://developer.marklogic.com/columns/smallchanges
   OOXML Developers
            http://openxmldeveloper.org/
   Discovering XQuery (my blog)
            http://xquery.typepad.com
               p q y yp p
   MarkMail (XML Lists)
            http://markmail.org
   Mark Logic CEO Blog
            http://marklogic.blogspot.com
   XQuery site / developers group
            htt //
            http://x-query.com
   Querying XML (book) Melton and Buxton
Copyright © 2007 Mark Logic Corporation. All rights reserved.                       Slide 30
Unlock Content™




                   Thank You
                    Sample Template
                     Matt Turner
                     Principal Consultant
                    What do we think of this
                     matt.turner@marklogic.com
                                             Sfdhskdfjh kjsfhd
                     http://xquery.typepad.com Sdflkhsdf sdflk



Copyright © 2007 Mark Logic Corporation. All rights reserved.                     Slide 31

Contenu connexe

En vedette

Mark logic Corporate Overview
Mark logic Corporate OverviewMark logic Corporate Overview
Mark logic Corporate Overview
Tony Agresta
 
Introduction à la sécurité des WebServices
Introduction à la sécurité des WebServicesIntroduction à la sécurité des WebServices
Introduction à la sécurité des WebServices
ConFoo
 
A New Way to Buy a Digital Organ
A New Way to Buy a Digital OrganA New Way to Buy a Digital Organ
A New Way to Buy a Digital Organ
Andy Pierce
 

En vedette (12)

Service Learning
Service LearningService Learning
Service Learning
 
Superdistribution by David Worlock
Superdistribution by David WorlockSuperdistribution by David Worlock
Superdistribution by David Worlock
 
First Encounters With Office Open Xml
First Encounters With Office Open XmlFirst Encounters With Office Open Xml
First Encounters With Office Open Xml
 
Mark logic Corporate Overview
Mark logic Corporate OverviewMark logic Corporate Overview
Mark logic Corporate Overview
 
Kellogg XML Holland Speech
Kellogg XML Holland SpeechKellogg XML Holland Speech
Kellogg XML Holland Speech
 
Darin McBeath XML Holland
Darin McBeath XML HollandDarin McBeath XML Holland
Darin McBeath XML Holland
 
Ratner Agile Publishing
Ratner Agile PublishingRatner Agile Publishing
Ratner Agile Publishing
 
Mark Logic Digital Publishing Summit Introduction
Mark Logic Digital Publishing Summit IntroductionMark Logic Digital Publishing Summit Introduction
Mark Logic Digital Publishing Summit Introduction
 
Mark Logic Digital Publishing Summit, Kellogg
Mark Logic Digital Publishing Summit, KelloggMark Logic Digital Publishing Summit, Kellogg
Mark Logic Digital Publishing Summit, Kellogg
 
Introduction à la sécurité des WebServices
Introduction à la sécurité des WebServicesIntroduction à la sécurité des WebServices
Introduction à la sécurité des WebServices
 
Un acercamiento a las bases de datos NoSQL
Un acercamiento a las bases de datos NoSQLUn acercamiento a las bases de datos NoSQL
Un acercamiento a las bases de datos NoSQL
 
A New Way to Buy a Digital Organ
A New Way to Buy a Digital OrganA New Way to Buy a Digital Organ
A New Way to Buy a Digital Organ
 

Similaire à First Encounters With Office Open Xml Matt Turner 12 4 2007

Office OpenXML: a technical approach for OOo.
Office OpenXML: a technical approach for OOo.Office OpenXML: a technical approach for OOo.
Office OpenXML: a technical approach for OOo.
Alexandro Colorado
 
Working with xml data
Working with xml dataWorking with xml data
Working with xml data
aspnet123
 
Creating xml publisher documents with people code
Creating xml publisher documents with people codeCreating xml publisher documents with people code
Creating xml publisher documents with people code
Randall Groncki
 
Introduction to .net and asp
Introduction to .net and aspIntroduction to .net and asp
Introduction to .net and asp
Prachi Agarwal
 

Similaire à First Encounters With Office Open Xml Matt Turner 12 4 2007 (20)

epicenter2010 Open Xml
epicenter2010   Open Xmlepicenter2010   Open Xml
epicenter2010 Open Xml
 
BusinessAnalyst_Training.pptx
BusinessAnalyst_Training.pptxBusinessAnalyst_Training.pptx
BusinessAnalyst_Training.pptx
 
Office OpenXML: a technical approach for OOo.
Office OpenXML: a technical approach for OOo.Office OpenXML: a technical approach for OOo.
Office OpenXML: a technical approach for OOo.
 
X Usax Pdf
X Usax PdfX Usax Pdf
X Usax Pdf
 
Document Sucuess With Office 2007
Document Sucuess With Office 2007 Document Sucuess With Office 2007
Document Sucuess With Office 2007
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
 
Java Web Services
Java Web ServicesJava Web Services
Java Web Services
 
sidje
sidjesidje
sidje
 
A Technical Comparison: ISO/IEC 26300 vs Microsoft Office Open XML
A Technical Comparison: ISO/IEC 26300 vs Microsoft Office Open XML A Technical Comparison: ISO/IEC 26300 vs Microsoft Office Open XML
A Technical Comparison: ISO/IEC 26300 vs Microsoft Office Open XML
 
Working with xml data
Working with xml dataWorking with xml data
Working with xml data
 
Xml in bio medical field
Xml in bio medical fieldXml in bio medical field
Xml in bio medical field
 
Lotusphere 2007 AD507 Leveraging the Power of Object Oriented Programming in ...
Lotusphere 2007 AD507 Leveraging the Power of Object Oriented Programming in ...Lotusphere 2007 AD507 Leveraging the Power of Object Oriented Programming in ...
Lotusphere 2007 AD507 Leveraging the Power of Object Oriented Programming in ...
 
LINQ to XML
LINQ to XMLLINQ to XML
LINQ to XML
 
Creating xml publisher documents with people code
Creating xml publisher documents with people codeCreating xml publisher documents with people code
Creating xml publisher documents with people code
 
ILUG 2007 - Notes and Office Integration
ILUG 2007 - Notes and Office IntegrationILUG 2007 - Notes and Office Integration
ILUG 2007 - Notes and Office Integration
 
treeview
treeviewtreeview
treeview
 
treeview
treeviewtreeview
treeview
 
UNIT-1 Web services
UNIT-1 Web servicesUNIT-1 Web services
UNIT-1 Web services
 
Introduction to .net and asp
Introduction to .net and aspIntroduction to .net and asp
Introduction to .net and asp
 

Plus de Dave Kellogg

Plus de Dave Kellogg (20)

Kellogg Strategic Use and Abuse of SaaS Metrics
Kellogg Strategic Use and Abuse of SaaS MetricsKellogg Strategic Use and Abuse of SaaS Metrics
Kellogg Strategic Use and Abuse of SaaS Metrics
 
Kellogg SaaStock C-Suite and Ground Truth^LLLLJ r1.5.pdf
Kellogg SaaStock C-Suite and Ground Truth^LLLLJ r1.5.pdfKellogg SaaStock C-Suite and Ground Truth^LLLLJ r1.5.pdf
Kellogg SaaStock C-Suite and Ground Truth^LLLLJ r1.5.pdf
 
Balderton Metrics that Matter in 2023.pdf
Balderton Metrics that Matter in 2023.pdfBalderton Metrics that Matter in 2023.pdf
Balderton Metrics that Matter in 2023.pdf
 
Emerging Stronger from the Downturn than You Went In, A Balderton Webinar
Emerging Stronger from the Downturn than You Went In, A Balderton WebinarEmerging Stronger from the Downturn than You Went In, A Balderton Webinar
Emerging Stronger from the Downturn than You Went In, A Balderton Webinar
 
Lagging, leading, and predictive indicators
Lagging, leading, and predictive indicatorsLagging, leading, and predictive indicators
Lagging, leading, and predictive indicators
 
Lagging, Leading, and Predictive Indicators
Lagging, Leading, and Predictive IndicatorsLagging, Leading, and Predictive Indicators
Lagging, Leading, and Predictive Indicators
 
Lagging, Leading, and Predictive Indicators, r1.5.pptx
Lagging, Leading, and Predictive Indicators, r1.5.pptxLagging, Leading, and Predictive Indicators, r1.5.pptx
Lagging, Leading, and Predictive Indicators, r1.5.pptx
 
SaaStock Dublin 2022, Kellogg, r1.6.pdf
SaaStock Dublin 2022,  Kellogg, r1.6.pdfSaaStock Dublin 2022,  Kellogg, r1.6.pdf
SaaStock Dublin 2022, Kellogg, r1.6.pdf
 
You Can't Fix a CAC Payback Period SaaS Metrics Palooza r2.3.pptx
You Can't Fix a CAC Payback Period SaaS Metrics Palooza r2.3.pptxYou Can't Fix a CAC Payback Period SaaS Metrics Palooza r2.3.pptx
You Can't Fix a CAC Payback Period SaaS Metrics Palooza r2.3.pptx
 
Kellogg The Top 5 Scale-Up Mistakes.pdf
Kellogg The Top 5 Scale-Up Mistakes.pdfKellogg The Top 5 Scale-Up Mistakes.pdf
Kellogg The Top 5 Scale-Up Mistakes.pdf
 
Balderton Meetup: How To Build a Marketing Machine with Dave Kellogg
Balderton Meetup:  How To Build a Marketing Machine with Dave KelloggBalderton Meetup:  How To Build a Marketing Machine with Dave Kellogg
Balderton Meetup: How To Build a Marketing Machine with Dave Kellogg
 
Perspectives on Growth
Perspectives on GrowthPerspectives on Growth
Perspectives on Growth
 
Dave Kellogg SaaStr 2021: A CEO's Guide to Marketing
Dave Kellogg SaaStr 2021:  A CEO's Guide to MarketingDave Kellogg SaaStr 2021:  A CEO's Guide to Marketing
Dave Kellogg SaaStr 2021: A CEO's Guide to Marketing
 
Dave Kellogg GainSight Pulse Everywhere 20201: NDR Key Benchmarks
Dave Kellogg GainSight Pulse Everywhere 20201:  NDR Key BenchmarksDave Kellogg GainSight Pulse Everywhere 20201:  NDR Key Benchmarks
Dave Kellogg GainSight Pulse Everywhere 20201: NDR Key Benchmarks
 
PE Portfolio CEO Summit, Topical Marketing Chats
PE Portfolio CEO Summit, Topical Marketing ChatsPE Portfolio CEO Summit, Topical Marketing Chats
PE Portfolio CEO Summit, Topical Marketing Chats
 
Kellogg VC CEO Summit
Kellogg VC CEO SummitKellogg VC CEO Summit
Kellogg VC CEO Summit
 
Churn is Dead, Long Live Net Dollar Retention, SaaStr Annual @ Home, SaaStr 2...
Churn is Dead, Long Live Net Dollar Retention, SaaStr Annual @ Home, SaaStr 2...Churn is Dead, Long Live Net Dollar Retention, SaaStr Annual @ Home, SaaStr 2...
Churn is Dead, Long Live Net Dollar Retention, SaaStr Annual @ Home, SaaStr 2...
 
Churn is Dead, Long Live Net Dollar Retention, SaaStr Annual @ Home, SaaStr 2020
Churn is Dead, Long Live Net Dollar Retention, SaaStr Annual @ Home, SaaStr 2020Churn is Dead, Long Live Net Dollar Retention, SaaStr Annual @ Home, SaaStr 2020
Churn is Dead, Long Live Net Dollar Retention, SaaStr Annual @ Home, SaaStr 2020
 
How to get sales and marketing working together
How to get sales and marketing working togetherHow to get sales and marketing working together
How to get sales and marketing working together
 
Dave Kellogg's Slides at a Private Equity Group Sales & Marketing Summit
Dave Kellogg's Slides at a Private Equity Group Sales & Marketing SummitDave Kellogg's Slides at a Private Equity Group Sales & Marketing Summit
Dave Kellogg's Slides at a Private Equity Group Sales & Marketing Summit
 

Dernier

Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
lizamodels9
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Anamikakaur10
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 

Dernier (20)

Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
PHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation Final
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptx
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
Falcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in indiaFalcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in india
 
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort ServiceEluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 

First Encounters With Office Open Xml Matt Turner 12 4 2007

  • 1. Unlock Content First Encounters with Office Open XML Matt Turner Principal Consultant December 3rd, 2007 Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 1
  • 2. Agenda Office Open XML basics p Office Open XML and XML tools Some examples Parting Thoughts Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 2
  • 3. Office Open XML Native format of MS Office 2007 Complete rework of the entire productivity suite Word, PowerPoint, Excel, etc. All have native format of XML! OOXML = Office Open XML Standard through Ecma International Formally k F ll known as E Ecma 376 Approved in December 2006 Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 3
  • 4. Lets Have a Look There is a lot of it . . . A Requirement was 100% compatibility Layout based 6500+ page specification ifi ti Thousands of elements + attributes And speed and space Single-character QNames Single character Single-character namespace prefixes No spare whitespace But the core element set is manageable . . . . . . for simple documents ☺ Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 4
  • 5. It’s Not XML, It’s Zipped XML Zipped container with content, formatting info and manifest Payload varies by application but its all XML New extension: .docx, pptx .xlsx docx pptx, xlsx Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 5
  • 6. Office Open XML Sample Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 6
  • 7. Runs Present Some Issues The core of a Word file comprises text “runs” New styles require new runs sometimes they just show up runs, Sometimes split text (!!) Needs some special handling which we can do with XQuery Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 7
  • 8. Hooks to Add Structure Spec allows for customXml tag that you can use to add structure Word also support to let you add structure Support for schemas to control editing Controls to let you add arbitrary tags And flow content from external (XML) sources Available from the Developer Tab Enable developer tab from word options under the ‘big button’ Word itself can be configured with XML to jump start custom editing and XML interactions Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 8
  • 9. Agenda Office Open basics p Office Open XML and XML tools Some examples Parting Thoughts Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 9
  • 10. What can we do with it? It’s XML – anything!! You Y can query it transform it . . . the whole enchilada. it, t f th hl hil d Create it MS Word is now (just) an OOXML editor ( ) (j ) (!!) There are lots of other ways to edit and create OOXML Make the desktop connection Drive application context direct from end-user documents Output quot;first-draftquot; of end-user documents that work on (real) desktops Create content apps that work directly on collections of Office documents, without conversion Simplify the XML-ifying of business processes XML ifying Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 10
  • 11. XQuery Makes It Happen XQuery - much more than a query language W3C standard Query, manipulate and render XML XML Content Servers (like MarkLogic Server) Application ready extensions provide complete platform for content applications Such as Update features to load / maintain content HTTP / REST interfaces Zip tools to h dl the Zi t l t handle th packaging* ki* *MarkLogic Server only Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 11
  • 12. Agenda Office Open basics p Office Open XML and XML tools Some examples Parting Thoughts Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 12
  • 13. Examples 1. Exploring Office Open XML p g p • Open up .zip package • Update XML • Repackage • Load into Content Server • Create CustomXml + Controls • Query and Update • Repackage into .docx Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 13
  • 14. Examples Unzip package and edit document.xml to add Custom Structure in XML editor Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 14
  • 15. Examples Zip back up, rename to .docx and open in word use developer tab to view CustomXml Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 15
  • 16. Examples • Load into MarkLogic Server, unzip and expand to load individual XML files Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 16
  • 17. Examples • Query the XML: this XQuery • Returns: Rt Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 17
  • 18. Examples • Package the files back up to create a new .docx Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 18
  • 19. Content Server Examples Office Open XML = accessible format gives you the building blocks to create purpose built applications to leverage desktop apps Content Servers put it together MarkLogic Server combines the XML tools (XQuery) to process it and the extension to seamlessly round trip content Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 19
  • 20. Content Server Examples Generate, Query and Mash-up MS Word 1. Use XQuery to transform XML into Office Open XML 2. Use XQuery t access granular content elements in 2 U XQ to l t tl ti word documents and create new Office Open XML 3. Customize Word Ribbons to query MarkLogic Server to get content and save new content back Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 20
  • 21. Content Server Example 1 From source XML (shakespeare plays) Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 21
  • 22. Content Server Example 1 Generate Open Office XML Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 22
  • 23. Content Server Example 1 Package and open in Word – with structure in customXML elements Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 23
  • 24. Content Server Example 2 Access granular elements of Office Open XML and create new content Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 24
  • 25. Content Server Example 3 Add content using custom Mark Logic Ribbon Insert new content into Shakespeare play Query MarkLogic Server for content from tech support content base Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 25
  • 26. Content Server Example 3 Add content using custom Mark Logic Ribbon Insert new content into Shakespeare play Query MarkLogic Server for content from tech support content base Insert content into play Actions contained in MarkLogic Ribbon Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 26
  • 27. Content Server Example 3 Save content back to contentbase Select any content Create a new document with the snippet in MarkLogic Server contentbase Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 27
  • 28. Agenda Open Office basics p OOXML and XML tools Some examples Parting Thoughts Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 28
  • 29. Conclusions Office 2007’s native file format is XML! For real! XQuery provides powerful tools to ingest, query, manipulate and g p generate the format ( XML after all) (it’s ) OOXML provides the building blocks for integrated content apps based on desktop content XML Content Servers enable these applications so . . . Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 29
  • 30. Content Application Resources OOXML Standard http://www.ecma-international.org/publications/standards/Ecma-376.htm Small changes – featuring OOXML http://developer.marklogic.com/columns/smallchanges OOXML Developers http://openxmldeveloper.org/ Discovering XQuery (my blog) http://xquery.typepad.com p q y yp p MarkMail (XML Lists) http://markmail.org Mark Logic CEO Blog http://marklogic.blogspot.com XQuery site / developers group htt // http://x-query.com Querying XML (book) Melton and Buxton Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 30
  • 31. Unlock Content™ Thank You Sample Template Matt Turner Principal Consultant What do we think of this matt.turner@marklogic.com Sfdhskdfjh kjsfhd http://xquery.typepad.com Sdflkhsdf sdflk Copyright © 2007 Mark Logic Corporation. All rights reserved. Slide 31