26
OFC 308 Advanced Word XML: The WordML Schema and Bringing Everything Together Brian Jones Program Manager Authoring Services

OFC 308 Advanced Word XML: The WordML Schema and Bringing Everything Together Brian Jones Program Manager Authoring Services

Embed Size (px)

Citation preview

OFC 308

Advanced Word XML: The WordML Schema and Bringing Everything Together

Brian JonesProgram Manager Authoring Services

Agenda

Creating WordML

WordML schema

Leveraging WordML on the server

On Save Transforms

Bringing it all together

XSLT and Solution Generation tips

Creating WordML Creating WordML From Scratch!From Scratch!

exampleexample

Brian JonesBrian JonesProgram ManagerProgram ManagerAuthoring & Collaboration ServicesAuthoring & Collaboration Services

What Was Covered?

Simple text

Document contains Paragraphs contain Runs contain Text

Your XML can live with the WordML

Other properties

4

WordML SchemaWordML Schema

resourceresource

Brian JonesBrian JonesProgram ManagerProgram ManagerAuthoring & Collaboration ServicesAuthoring & Collaboration Services

What Was Covered?

WordML schema is in the Beta CDK

HTML view of schema allows for easy navigation

2

Leveraging WordML Leveraging WordML On The ServerOn The Server

demodemo

Brian JonesBrian JonesProgram ManagerProgram ManagerAuthoring & Collaboration ServicesAuthoring & Collaboration Services

What Was Covered?

Automatic document generation on the server. (without running Word)

Modifying documents on the server

Access to document information on the server for more powerful searching and management

4

Your XMLYour XML

WordMLWordML

Microsoft Corp.Microsoft Corp.

6/5/20036/5/2003

Strong BuyStrong Buy

WYSIWYG WYSIWYG Web PageWeb Page

ContosoContosoI Buy SpyI Buy Spy

First CoffeeFirst Coffee

1/21/20031/21/20032/6/20032/6/20031/1/20031/1/2003

BuyBuySellSellHoldHold

WordWord

Microsoft Corp.Microsoft Corp.

6/5/20036/5/2003

Strong BuyStrong Buy

Microsoft Corp.Microsoft Corp.

6/5/20036/5/2003

Strong BuyStrong Buy

Microsoft Corp.Microsoft Corp.

6/5/20036/5/2003

Strong BuyStrong Buy

Microsoft Corp.Microsoft Corp.Strong BuyStrong Buy 6/5/20036/5/2003

Microsoft Corp.Microsoft Corp.

6/5/20036/5/2003

Strong BuyStrong Buy

DatabaseDatabase

Critical Business Data Is In Customer Defined Schemas (Your XML)

Web Pages/Devices/PrintWeb Pages/Devices/Print

Save data only or

Transform

Transform

Transform

Transform

Transform

Open/Save

Transform

Save Through XSLTSave Through XSLT

exampleexample

Brian JonesBrian JonesProgram ManagerProgram ManagerAuthoring & Collaboration ServicesAuthoring & Collaboration Services

What Was Covered?

Can specify to save through an XSLT

Another way for you to leverage WordML and your schema together

2

Solution Building Blocks

Document w/ XMLDocument w/ XML

XSLTXSLTTransformTransform

SchemaSchema

Used for Used for Real-time Real-time ValidationValidation

SmartDoc .dllSmartDoc .dll

Available Available via via

Schema Schema LibraryLibrary

ManifestManifest

Pointer Saved Pointer Saved with Documentwith Document

Can be Can be saved backsaved back

Data OnlyData Only

Will need to go Will need to go through through

TransformTransform

Deployment

Document

Namespace

Manifest Pointer

Solution ID

Schema Transform

SmartDocXML Expansion

Pack

Namespace

Manifest Collection

Namespace Manifest Pointer

Namespace Manifest Pointer

Schema Library

Schema Transform

SmartDocNamespace

Building XSLTs and Building XSLTs and SchemasSchemas

exampleexample

Brian JonesBrian JonesProgram ManagerProgram ManagerAuthoring & Collaboration ServicesAuthoring & Collaboration Services

What Was Covered?

No tools for generating XSLTs for WordML

Best way to find out how to represent something in WordML?

(just save as XML from Word)

Word will not create schemasThere are tools for .xml -> .xsd

We hope to have a solution in the CDK from helping to build a schema from within Word

3

What We Have EnabledSummary

Mark up Word doc with your XMLCustomer-defined XML schema validation

Insert XML data into Word docEmbedded islands of live linked XML data

XSLT, XPath

Save Word docs as XML single file, full round-trip

Rich customizability & programmabilitysee OFC303 and OFC308

Ease of SmartDoc solution deployment see OFC302

Research Library web servicessee OFC322

Additional Resources

Word XML CDKSmart Document SDKWord help (object model support)MSDN Library (Office Solutions Development / Microsoft Office / Microsoft Office 2003)

Technical Articles / Downloads / etc.Web Casts

http://www.microsoft.com/usa/webcasts (previous webcasts)“XML in Word 11”“Architecture and Security around Smart Documents”“Integrating InfoPath into Business Solutions”

evaluationsevaluations

Solution Opportunities

Smart Document solutions

Customer-defined XSD schemas for specific businesses/verticals

XSLT transformations for different views of data

Centralized XML data sources

XML-enriched Smart Tags

The list goes on and on…

Microsoft Office SystemDeveloper Contest

Enter to win great prizes!

www.officedevcontest.com

Grand Prize: 2003 MINI Cooper lease Enter in one of these five award categories:

XML at the DesktopVisual Studio and .NET FrameworkCross-application integrationTools Microsoft SharePoint Products and Technologies

Questions…Questions…

Community Resources

Community Resourceshttp://www.microsoft.com/communities/default.mspx

Most Valuable Professional (MVP)http://www.mvp.support.microsoft.com/

NewsgroupsConverse online with Microsoft Newsgroups, including Worldwidehttp://www.microsoft.com/communities/newsgroups/default.mspx

User GroupsMeet and learn with your peershttp://www.microsoft.com/communities/usergroups/default.mspx

© 2003 Microsoft Corporation. All rights reserved.© 2003 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.

Appendix…Appendix…

Fitting Into The Big Picture

Data AnalysisData Analysis Tabular, largely numerical data Tabular, largely numerical data

for calculations and analysis for calculations and analysis Data best presented in a gridData best presented in a grid

Content AuthoringContent Authoring Large areas of text or mixed Large areas of text or mixed

contentcontent Flexible layout and Flexible layout and

formatting with XML markupformatting with XML markup

Reporting and StoringReporting and Storing Numerical or textual fieldsNumerical or textual fields Relational tables in Relational tables in

databasesdatabases

Information GatheringInformation Gathering Highly structured, grouped Highly structured, grouped

informationinformation Form-like with few paragraphs Form-like with few paragraphs

of formatted textof formatted text

Data Driven Web SitesData Driven Web Sites Flexible presentation of Flexible presentation of

tabular or hierarchical datatabular or hierarchical data Expanded data reachExpanded data reach Integrate across data Integrate across data

sourcessources

AccessAccessExcelExcel

WordWord InfoPathInfoPath FrontPageFrontPage

VisioVisio

DiagrammingDiagramming Business & technical Business & technical

drawings connected to Data, drawings connected to Data, SVG supportSVG support

Supports 3rd party XML Data Supports 3rd party XML Data

Word XML-Related FeaturesCustomer-defined XML markup support

Save as XML Document into customer-defined schema

Save as XML Document into Word schema

XML tag view

XML structure task pane

XML Schema (XSD) validation as you type

Schema library for associations between XML namespaces and other files

XSLT transformations when opening or saving XML

Ability to edit any XML file

Programmable task panes for Smart Documents

On-demand XML solution deployment and automatic updates

XML DOM programmability in VBA

XML content repurposing (XPath + XSLT)

SmartTag actions for XML tags

XPath support

Custom validation/business logic

Style lockdown

User-based editing restrictions for parts of document