The wwordDocument Element

The root element of Example 2-2,vr wordDocument, has a large number of attributes xmlns sl ht topp schemas .microsoft. com schemaLibrary 2003 core 0 03 auxHint 9F-00AA0 0C14 8 8 2 w macrosPresent no w embeddedObj Present no w ocxPresent no xml space preserve gt Actually, F st f thtst art technically camtspact dtclarati cs. Thty art prtstct c tvtry W rdpr ctssicgt- d cuFtct that W rd utputs, rtgardltss f whtthtr all tht camtspacts art actually ustd ic tht d cumtct. Ic W rdpr ctssicgt-, y u cac...

Example A stylesheet for generating SpreadsheetML

lt xsl stylesheet version 1.0 xmlns xsl http www.w3.org 19 9 9 XSL Transform 0 lt xsl output method xml omit-xml-declaration no indent yes encoding US-ASCII gt lt xsl template match d dinosaurs gt lt xsl processing-instruction Excel.Sheet lt xsl lt --Namespace declarations moved from Workbook to xsl stylesheet-- lt Style ss ID Default ss Name Normal gt lt Alignment ss Vertical Bottom gt lt NumberFormat s s Format mmm -yy gt lt NumberFormat ss Format amp quot amp quot , 0.00 gt lt Worksheet ss...

The wfonts Element

Thtw defaultFonts tltmtct icsidt tht w fonts tltmtct sptcifits tht default font f r a d cumtct. lt w defaultFonts w ascii Times New Roman w fareast Times New Roman w h-ansi Times New Roman w cs Times New Roman gt A document's default font is applied to all of the document's paragraph styles that do not explicitly specify a font. Normally, when you create a new blank document in Word, the default font setting as specified in the Normal.dot document template is copied into the document. But our...

Example Document protection boundaries and custom XML elements

lt w tblW w w 0 w type auto gt lt w tblInd w w 475 w type dxa gt lt w gridCol w w 5303 gt lt w gridCol w w 4590 gt lt wv tblGrid gt lt w tr gt lt w tc gt lt w tcW w w 5303 w type dxa gt lt w tcPr gt lt ns1 contact gt lt w pStyle w val Contact gt lt w pPr gt lt w t gt Contact lt w t gt lt w r gt lt ns1 firstName lt w permStart w id 7 w edGrp everyone gt lt w permEnd w id 7 gt lt xsl text gt lt xsl text gt lt w t gt lt w r gt lt ns1 lastName lt w permStart w id 8 w edGrp everyone gt lt w t gt lt...

Example The schema Access created to describe its XML output

lt xml version 1.0 encoding UTF-8 gt lt xsd schema xmlns xsd http www.w3.org 2 001 XMLSchema xmlns od urn schemas-i lt xsd element name dataroot gt lt xsd element ref books min0ccurs 0 maxOccurs unbounded gt lt xsd sequence gt lt xsd attribute name generated type xsd dateTime gt lt xsd element name books gt lt od index index-name PrimaryKey index-key ISBN primary yes unique yes lt xsd element name ISBN minOccurs 0 od jetType text od sqlSType nvarchar lt xsd simpleType gt lt xsd restriction...

Attaching the Smart Document Expansion Pack

Before you can use your Smart Document solution with a Microsoft Word document, you must attach the expansion pack. As a developer, you will first want to run the Disable XM L Expansion Pack Manifest Security utility included in the Smart Document SDK. This will prevent you faom If aving to re-sign themanifest file each time it is updated. Note, however, that if you disable the security check, you will be reminded each time you attach the expansion pack that security has been disabled. You will...

Example Using the xdpreserve mode to preserve manual

This page was created by the unregistered version of CHM To PDF Converter by Th eta-Software stylesheet changes lt xsl stylesheet version 1.0 lt xsl template match announcement gt lt html gt lt head gt lt head gt lt boMy gt lt xsl apply-templates select . mode xd preserve gt lt body gt lt html gt lt xsl template gt lt xsl template match announcement mode xd preserve gt lt h1 gt lt xsl value-of select headline gt lt xsl value-of select body gt Figure 1h-13 shows the result of opening the...

Example Applying various paragraph properties

lt xml version 1.0 gt lt mso-application progid Word.Document gt lt w wordDocument xml space preserve gt lt w body gt lt w p gt lt w jc w val center gt lt w pPr gt lt w r gt lt w t gt All work and no play makes Evan a dull boy. lt w t gt lt w r gt lt w p gt lt w p gt lt w p gt lt w spacing w line 480 w line-rule auto gt lt w ind w left 720 w first-line 720 gt lt w t gt All work and no play makes Evan a dull boy. All work and no play m lt dull boy. All work and no play makes Evan a dull boy....

Example Calling a more complex web service

Dim zipResolver As clsws_USZip Set zipResolver New clsws_USZip Dim zip As String Dim city As String Dim state As String Dim areaCode As String Dim timeZone As String Dim returnedNodes As MSXML2.IXMLDOMNodeList Set returnedNodes zipResolver.wsm_GetInfoByZIP zip city state areaCode timeZone Set cityRange Range B3 cityRange.Value city Set stateRange Range B4 stateRange.Value state Set areaCodeRange Range B5 areaCodeRange.Value areaCode Set timeZoneRange Range B6 timeZoneRange.Value timeZone The...

Preserving processing instructions

When opening an arbitrary XML document that has one or more processing instructions PIs outside the root element, Word's default onload stylesheet XML2WORD.XSL preserves those PIs by escaping the PI markup as text and storing the resulting string in a custom document property named o processingInstructions in the o CustomDocumentProperties element . Then, when the user saves the document, the Save data only process converts the escaped PI markup back to literal processing instructions in the...

Editing Restrictions

Editing restfictions let you protect a document in various ways for example, by making it read only or by allowinR comments only. You can also make exceptions to the overall document polic for particular regions of the document. Our press release template protects the entire document as read-only but designates particular areas of the document as unrestricted. These areas correspond exactly to the custom XML leaf elements embedded in the WordprocessingML template. By restricting user changes to...

Example Exported linked tables

lt xml version 1.0 encoding UTF-8 gt lt dataroot xmlns xsi http www 2 001 XMLSchema-instance 0 4.xsd generated 31T16 37 01 gt lt books gt lt ISBN gt 05 96005 385 lt ISBN gt lt Title gt Office 2003 XML Essentials lt Title gt lt Tagline gt Integrating 0ffice with the World lt Tagline gt lt PriceUS gt 34.95 lt PriceUS gt lt promotions gt lt BookID gt 059e005 385 lt BookID gt lt Name gt Palm civet bonus lt Name gt lt Venue gt Anywhere interested lt Venue gt lt Description gt A stuffed-animal palm...

Table XML Source pane icons

Used to represent a container element that may appear one or many times, most typi root element of the document. Root elements aren't actually optional, but perhaps Ex this to support the possibility of an empty map. Used to represent a container element that may only appear once, often an element t attributes. Used to represent a container element that may appear repeatedly, most typically an that represents rows. Used to represent a data element that must appear once and that contains data...

Figure Fun with conditional formatting

B myAnnaunremEnt.xml - Mitmsall Office Infofalh f File dt VScn Inset Permit Ij i Tiile def SpE. . _ C sDg3 cool don'Lyou thinks SpEciaL ioDeSdi'C cool tten't ycv think CONGRATS YOU UNLOCKED THE SPECIAL CODE The building will be closing an hour early today, at 9 m. Firm ttfli 1 tI 1-'- 1 ation C DO . nefii and 5-11 'JsUaii -. 5EIXT TLELHWi DUCJl h-1' Qrh h1,----1 liak'i- pa- Ieiti I gt egardless of the presence of a conditional statement, this example also demonstrates another possibility...