WordprocessingML XSLT Inference Tool - XML SOAP

This is a discussion on WordprocessingML XSLT Inference Tool - XML SOAP ; Following the "Creating a Seed Document" document, I have created a dishlist_FmtdSeed.xml. When I run WRD2XML.EXE against it and give an output file, I get an error message that says " Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft ...

+ Reply to Thread
Results 1 to 5 of 5

WordprocessingML XSLT Inference Tool

  1. Default WordprocessingML XSLT Inference Tool

    Following the "Creating a Seed Document" document, I have created a
    dishlist_FmtdSeed.xml. When I run WRD2XML.EXE against it and give an
    output file, I get an error message that says "

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    J:\Program Files\Microsoft Office 2003 Developer Resources\Microsoft
    Office 2003 WordprocessingML Transform Inference T
    ool>wml2xslt.exe c:\dishlist_fmtdseed.xml -o c:\dishlist.xsl -v
    Error: No XML markup found
    Error: The WordprocessingML document must contain arbitrary XML markup
    in order to generate an XSL transform.
    xslt formatting failed

    I have put formatting in that source file. Anyone know a way around
    this problem?

    Hollis D. Paul [MVP - Outlook]
    Hollis@outhousebythesound.com
    Mukilteo, WA USA



  2. Default Re: WordprocessingML XSLT Inference Tool

    Hello,
    the seen document must be a 'tagged' xml document to make it XSL.
    So u have to use a scheme (xsd) to tag u'r WordMl document and than do
    a wrd2XMl.

    C y a


  3. Default Re: WordprocessingML XSLT Inference Tool

    In article <1116317604.384918.71580@o13g2000cwo.googlegroups.com>,
    Llasserre wrote:
    > the seen document must be a 'tagged' xml document to make it XSL.
    > So u have to use a scheme (xsd) to tag u'r WordMl document and than do
    > a wrd2XMl.
    >

    Well, I have discovered that it is a little more difficult than that.
    You have to enter your tags as "empty tags", and use the "convert tags
    to XML Nodes" option from the XML Toolbox menu. When converted, they
    look just like the tags that you get when you give Word an existing XML
    file. However, now the schema inferrer program will find them. The
    only info I found about their "XML Nodes" is contained in the help file
    that comes with the XML Toolbox.

    I haven't figured out how the formatting is propagated. It is not
    through the schema, which contains no formatting. When you do infer a
    schema, it makes a copy of the seed file, with formatting, and with the
    schema attached. Are you supposed to save that file as a template, and
    give the new files that template?

    Hollis D. Paul [MVP - Outlook]
    Hollis@outhousebythesound.com
    Mukilteo, WA USA



  4. Default Re: WordprocessingML XSLT Inference Tool

    Thank you for the above posting...very helpful. I have one question
    however. I have a word template that is being used for mail merges. I
    have a sample xml file and added the XML tags to where I want the data
    to be placed when I transform the imput XML via the XSL. The template
    contains a lot of tables and formating so I have regular text and XML
    in between the data tags but the whole XML document has a root tag
    wrapped around the entire document. I used the schema inference tool to
    add the necessary root tags and created a new XML document (File Save
    as XML) based on the tool. However when I ran the wmlxslt tool to
    create the XSL file, I got the following error

    Warning: All instances of nodes used in data binding mode must not be
    separated
    by text or other content.
    The resulting XSL transform may not result in a well-formed
    WordprocessingML document.
    At XPath: /ns3:root/ns3:ElementCollection/ns3:Element/ns3:PROPERTY


    Any ideas?

    I have attached a section of the WordML for review

    <?xml version="1.0" encoding="utf-16" standalone="yes"?>
    <?mso-application progid="Word.Document"?>
    <w:wordDocument
    xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
    xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:w10="urn:schemas-microsoft-comffice:word"
    xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core"
    xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
    xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
    xmlns="urn:schemas-microsoft-comfficeffice"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
    xmlns:ns3="schemas-MSWordXmlToolbox#06142005-201634"
    w:macrosPresent="no" w:embeddedObjPresent="no" wcxPresent="no"
    xml:space="preserve">
    <oocumentProperties>
    <o:Version>11.6359</o:Version>
    </oocumentProperties>
    <w:fonts>
    <w:defaultFonts w:ascii="Times New Roman" w:fareast="Times New
    Roman" w:h-ansi="Times New Roman" w:cs="Times New Roman" />
    <w:font w:name="Tahoma">
    <wanose-1 w:val="020B0604030504040204" />
    <w:charset w:val="00" />
    <w:family w:val="Swiss" />
    <witch w:val="variable" />
    <w:sig w:usb-0="61007A87" w:usb-1="80000000" w:usb-2="00000008"
    w:usb-3="00000000" w:csb-0="000101FF" w:csb-1="00000000" />
    </w:font>
    </w:fonts>
    <w:styles>
    <w:versionOfBuiltInStylenames w:val="4" />
    <w:latentStyles w:defLockedState="off" w:latentStyleCount="156" />
    <w:style w:type="paragraph" w:default="on" w:styleId="Normal">
    <w:name w:val="Normal" />
    <w:rsid w:val="001A0728" />
    <w:rPr>
    <wx:font wx:val="Times New Roman" />
    <w:sz w:val="24" />
    <w:sz-cs w:val="24" />
    <w:lang w:val="EN-US" w:fareast="EN-US" w:bidi="AR-SA" />
    </w:rPr>
    </w:style>
    <w:style w:type="paragraph" w:styleId="Heading1">
    <w:name w:val="heading 1" />
    <wx:uiName wx:val="Heading 1" />
    <w:basedOn w:val="Normal" />
    <w:next w:val="Normal" />
    <w:rsid w:val="001A0728" />
    <wPr>
    <wStyle w:val="Heading1" />
    <w:spacing w:line="264" w:line-rule="auto" />
    <w:jc w:val="right" />
    <wutlineLvl w:val="0" />
    </wPr>
    <w:rPr>
    <w:rFonts w:ascii="Tahoma" w:h-ansi="Tahoma" />
    <wx:font wx:val="Tahoma" />
    <w:b />
    <w:color w:val="808080" />
    <w:spacing w:val="4" />
    <w:sz w:val="40" />
    <w:sz-cs w:val="18" />
    </w:rPr>
    </w:style>
    <w:style w:type="paragraph" w:styleId="Heading2">
    <w:name w:val="heading 2" />
    <wx:uiName wx:val="Heading 2" />
    <w:basedOn w:val="Normal" />
    <w:next w:val="Normal" />
    <w:rsid w:val="001A0728" />
    <wPr>
    <wStyle w:val="Heading2" />
    <w:spacing w:before="140" w:line="264" w:line-rule="auto" />
    <wutlineLvl w:val="1" />
    </wPr>
    <w:rPr>
    <w:rFonts w:ascii="Tahoma" w:h-ansi="Tahoma" />
    <wx:font wx:val="Tahoma" />
    <w:b />
    <w:spacing w:val="4" />
    <w:sz-cs w:val="18" />
    </w:rPr>
    </w:style>
    <w:style w:type="paragraph" w:styleId="Heading3">
    <w:name w:val="heading 3" />
    <wx:uiName wx:val="Heading 3" />
    <w:basedOn w:val="Normal" />
    <w:next w:val="Normal" />
    <w:rsid w:val="001A0728" />
    <wPr>
    <wStyle w:val="Heading3" />
    <w:spacing w:line="264" w:line-rule="auto" />
    <wutlineLvl w:val="2" />
    </wPr>
    <w:rPr>
    <w:rFonts w:ascii="Tahoma" w:h-ansi="Tahoma" />
    <wx:font wx:val="Tahoma" />
    <w:b />
    <w:caps />
    <w:spacing w:val="4" />
    <w:sz w:val="16" />
    <w:sz-cs w:val="16" />
    </w:rPr>
    </w:style>
    <w:style w:type="character" w:default="on"
    w:styleId="DefaultParagraphFont">
    <w:name w:val="Default Paragraph Font" />
    <w:semiHidden />
    </w:style>
    <w:style w:type="table" w:default="on" w:styleId="TableNormal">
    <w:name w:val="Normal Table" />
    <wx:uiName wx:val="Table Normal" />
    <w:semiHidden />
    <w:rPr>
    <wx:font wx:val="Times New Roman" />
    </w:rPr>
    <w:tblPr>
    <w:tblInd w:w="0" w:type="dxa" />
    <w:tblCellMar>
    <w:top w:w="0" w:type="dxa" />
    <w:left w:w="108" w:type="dxa" />
    <w:bottom w:w="0" w:type="dxa" />
    <w:right w:w="108" w:type="dxa" />
    </w:tblCellMar>
    </w:tblPr>
    </w:style>
    <w:style w:type="list" w:default="on" w:styleId="NoList">
    <w:name w:val="No List" />
    <w:semiHidden />
    </w:style>
    <w:style w:type="paragraph" w:styleId="ColumnHeadings">
    <w:name w:val="Column Headings" />
    <w:basedOn w:val="Normal" />
    <w:rsid w:val="001A0728" />
    <wPr>
    <wStyle w:val="ColumnHeadings" />
    <w:spacing w:line="264" w:line-rule="auto" />
    <w:jc w:val="center" />
    </wPr>
    <w:rPr>
    <w:rFonts w:ascii="Tahoma" w:h-ansi="Tahoma" />
    <wx:font wx:val="Tahoma" />
    <w:b />
    <w:spacing w:val="4" />
    <w:sz w:val="16" />
    <w:sz-cs w:val="18" />
    </w:rPr>
    </w:style>
    <w:style w:type="paragraph" w:styleId="Labels">
    <w:name w:val="Labels" />
    <w:basedOn w:val="Normal" />
    <w:rsid w:val="001A0728" />
    <wPr>
    <wStyle w:val="Labels" />
    <w:spacing w:line="264" w:line-rule="auto" />
    <w:jc w:val="right" />
    </wPr>
    <w:rPr>
    <w:rFonts w:ascii="Tahoma" w:h-ansi="Tahoma" />
    <wx:font wx:val="Tahoma" />
    <w:caps />
    <w:spacing w:val="4" />
    <w:sz w:val="16" />
    <w:sz-cs w:val="16" />
    </w:rPr>
    </w:style>
    <w:style w:type="paragraph" w:styleId="Centered">
    <w:name w:val="Centered" />
    <w:basedOn w:val="Normal" />
    <w:rsid w:val="001A0728" />
    <wPr>
    <wStyle w:val="Centered" />
    <w:spacing w:line="264" w:line-rule="auto" />
    <w:jc w:val="center" />
    </wPr>
    <w:rPr>
    <w:rFonts w:ascii="Tahoma" w:h-ansi="Tahoma" />
    <wx:font wx:val="Tahoma" />
    <w:spacing w:val="4" />
    <w:sz w:val="17" />
    <w:sz-cs w:val="18" />
    </w:rPr>
    </w:style>
    <w:style w:type="paragraph" w:styleId="Slogan">
    <w:name w:val="Slogan" />
    <w:basedOn w:val="Heading3" />
    <w:rsid w:val="001A0728" />
    <wPr>
    <wStyle w:val="Slogan" />
    </wPr>
    <w:rPr>
    <wx:font wx:val="Tahoma" />
    <w:b w:val="off" />
    <w:i />
    <w:caps w:val="off" />
    </w:rPr>
    </w:style>
    </w:styles>
    <w:docPr>
    <w:view w:val="web" />
    <w:zoom wercent="100" />
    <w:doNotEmbedSystemFonts />
    <w:attachedTemplate w:val="" />
    <w:defaultTabStop w:val="720" />
    <w:characterSpacingControl w:val="DontCompress" />
    <w:validateAgainstSchema />
    <w:saveInvalidXML w:val="off" />
    <w:ignoreMixedContent w:val="off" />
    <w:alwaysShowPlaceholderText />
    <w:alwaysMergeEmptyNamespace />
    <w:compat />
    </w:docPr>
    <w:body>
    <wx:sect>
    <w:tbl>
    <w:tblPr>
    <w:tblW w:w="10800" w:type="dxa" />
    <w:jc w:val="center" />
    </w:tblPr>
    <w:tblGrid>
    <w:gridCol w:w="5400" />
    <w:gridCol w:w="5400" />
    </w:tblGrid>
    <w:tr>
    <w:trPr>
    <w:trHeight w:val="1440" />
    <w:jc w:val="center" />
    </w:trPr>
    <w:tc>
    <w:tcPr>
    <w:tcW w:w="5400" w:type="dxa" />
    </w:tcPr>
    <w>
    <wPr>
    <wStyle w:val="Heading3" />
    </wPr>
    <w:r>
    <w:t>To:</w:t>
    </w:r>
    </w>
    <ns3:Element NAME="Keyword">
    <w />
    <ns3:PROPERTY DATATYPE="String" NAME="Value">
    <w>
    <w:r>
    <w:t>HAMMERS AND NAILS</w:t>
    </w:r>
    </w>
    </ns3:PROPERTY>
    <w />
    </ns3:Element>
    <w />
    </w:tc>
    <w:tc>
    <w:tcPr>
    <w:tcW w:w="5400" w:type="dxa" />
    </w:tcPr>
    <w>
    <wPr>
    <wStyle w:val="Heading3" />
    </wPr>
    <w:r>
    <w:t>Ship To:</w:t>
    </w:r>
    </w>
    <w />
    </w:tc>
    </w:tr>
    </w:tbl>
    <w />
    <w:sectPr>
    <wgSz w:w="12240" w:h="15840" />
    <wgMar w:top="1440" w:right="1800" w:bottom="1440"
    w:left="1800" w:header="720" w:footer="720" w:gutter="0" />
    <w:cols w:space="720" />
    </w:sectPr>
    </wx:sect>
    </w:body>
    </w:wordDocument>


  5. Default Re: WordprocessingML XSLT Inference Tool

    <1116317604.384918.71580@o13g2000cwo.googlegroups.com>
    <VA.000021bd.00457426@obts-outlookdev.outlookbythesound.mukwoods>
    <1118800775.174778.19750@g44g2000cwa.googlegroups.com>
    Newsgroups: microsoft.public.office.xml
    NNTP-Posting-Host: h-67-101-7-203.sttnwaho.dynamic.covad.net 67.101.7.203
    Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!msrtrans!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
    Lines: 1
    Xref: number1.nntp.dca.giganews.com microsoft.public.office.xml:558

    In article <1118800775.174778.19750@g44g2000cwa.googlegroups.com>, Gsvi
    wrote:
    > Thank you for the above posting...very helpful. I have one question
    > however
    >

    Well, I later discovered that using empty tags was not essential. What
    seems to be more important is starting with a XML file with a schema.
    And I have found that the XSLT Inference tool produces a lot of errors,
    particularly if you have the verbose switch in the command line, and
    you just have to ignore them.

    I have not used the XSLT inference tool with a seed file that wasn't
    bare XML. I add the formatting I want on the seed XML, save it with
    the save only data box unchecked. It is at that point I would add the
    material from your previous document. But I do not know if that is the
    only development sequence that works. And I have not attempted to use
    an attached template with WordML, so I can't speculate on that
    possibility.

    I can not read and understand the WordML, so I have no idea what you
    are trying to show with the WordML material you have included.

    I didn't get the XSLT inference tool to work until I had gotten the XML
    file, and the schema, into the same format as Bill Coan's example.
    Specifically, 1) the XML root element specifies a blank name space
    <dishlist xmlns="j:\temp6XML\dishlist62">, and 2) the schema does the
    same <xs:schema xmlns="j:\temp6XML\dishlist62"
    attributeFormDefault="unqualified" elementFormDefault="qualified"
    targetNamespace="j:\temp6XML\dishlist62"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

    And there seems to be a real problem with the inferred schema tool
    leaving its footprint in the XML file. For some reason, I have not
    been able to use encoding="utf-8" after generating a schema using the
    Toolbox.

    I know how to do data islands in a web page, but I am not finding
    anything about data islands in Word. Perhaps the following KB article
    will help you:

    How to use a VB ActiveX component for Word automation from Internet
    Explorer
    (286023) - This article demonstrates how you can use an ActiveX
    component for client-side Automation of Word from a Web page that is
    rendered in Internet Explorer. There are several benefits to using an
    ActiveX component from a Web page instead of script...
    http://support.microsoft.com/default...b;en-us;286023

    This document bodes ill for use of data islands in Word.
    Platform Builder for Microsoft Windows CE 5.0

    XML Data Islands Application Development
    An XML data island is an XML document that exists within an HTML page.
    It allows you to script against the XML document without having to load
    the XML document through script or through the <OBJECT> tag. Almost
    anything that can be in a well-formed XML document can be inside a data
    island.

    This article may be helpful:
    Using Schemas with Word 2003 and Excel 2003

    Mary Chipman
    MCW Technologies

    April 2004

    Applies to:
    Microsoft® Office Word 2003
    Microsoft Office Excel 2003
    Microsoft Office System

    Summary: Mary Chipman provides an easy to follow introduction for
    working with the new XML functionality in the Microsoft Office System
    by walking through common XML tasks in Microsoft Office Word 2003 and
    Microsoft Office Excel 2003. She reviews attaching custom schemas,
    validating markup, using placeholders, working with XML maps in Excel,
    and more. (11 printed pages)


    http://msdn.microsoft.com/library/de...y/en-us/dno2k3
    ta/html/odc_OF_WordXMSchemas.asp


    Hollis D. Paul [MVP - Outlook]
    Hollis@outhousebythesound.com
    Mukilteo, WA USA



+ Reply to Thread

Similar Threads

  1. Restarting lists in WordprocessingML generated via XSLT
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 09-22-2006, 09:26 AM
  2. Replies: 1
    Last Post: 06-03-2005, 08:39 AM
  3. Replies: 0
    Last Post: 06-02-2005, 04:01 AM
  4. WordprocessingML: How to insert chart using XSLT?
    By Application Development in forum XML SOAP
    Replies: 1
    Last Post: 03-01-2005, 09:11 AM
  5. Transformation Inference Tool error
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 12-16-2004, 11:47 AM