Fwd: Re: [xsl] WordML to XML

Subject: Fwd: Re: [xsl] WordML to XML
From: Vasu Nanjangud <vasdeep@xxxxxxxxx>
Date: Tue, 15 Feb 2005 22:26:48 -0800 (PST)
Thanks Joris.

I have given a quick background of wordML followed by
3 examples of wordML for lists. 
  Example1: displays Bulleted List in wordML
  Example2: displays Numbered list in wordML (a,b,c)
  Example3: displays Numbered list in wordML
(1,2,3,4).

  Please take a look at it and let me know how the
'listPr' tags be converted to give meaningful xml data
like
  <ol>
      <li>Alpha</li>
      <li>Beta</li>
      <li>Gamma</li>
  </ol>

  and other cases like a,b,c or 1,2,3,4.


Thanks for your time.

Regards,
Vasu


A quick background on 'listPr' tags in wordML
---------------------------------------------
Lists are a rather strange beast in WordprocessingML.
Though tables can get pretty hairy, they at least are
generally structured the way you would expect: tables
containing rows containing cells. Lists, on the other
hand, have no such explicit structure in
WordprocessingML. Instead, a list consists of a
sequence of paragraphs that function as list items.
They do not have a common container, nor,
unfortunately, does Word provide an auxiliary hint for
list containers when outputting WordprocessingML. The
member paragraphs of a list are linked to one of its
document's "list definitions." These are responsible
for maintaining the identity of a single list. When
numbering restarts, for example, a new list definition
is automatically created. These list definitions, in
turn, are linked to one of the document's "base list
definitions", which, if there is no subsequent list
style link to traverse, define the actual formatting
properties of the list. If the phrase "spectacularly
convoluted" comes to mind, just wait until you see an
example of this.

What makes a paragraph a list item:
A paragraph participates as a member of a list under
one of these separate circumstances:

It has a w:listPr element inside its w:pPr element,
which refers to a specific list definition (via the
w:ilfo element).

It is associated with a paragraph style that includes
list formatting.

Let's take a look at how the first mechanism works.
The following paragraph is a member of a list:

<w:p>
  <w:pPr>
    <w:listPr>
      <w:ilvl w:val="0"/>
      <w:ilfo w:val="1"/>
    </w:listPr>
  </w:pPr>
  <w:r>
    <w:t>This is item one.</w:t>
  </w:r>
</w:p>


The w:ilfo element (whose name may stand for something
like "item list format," though Microsoft has not
documented what it actually means) refers to one of
the document's list definitions, identified by the
number 1. The w:ilvl element specifies at what level
of nesting this list item occurs. It is incremented
each time a list is nested within another list. Since
there are nine possible levels of list indentation in
Word (starting at 0), its value can be anywhere from 0
to 8. It basically says, "Once you find the definition
for how each level of this list is supposed to look,
sign me up for the formatting and indentation that are
defined for level 0." Finding the list definition is
the trick. But before we figure out how that's done,
let's take a look at how WordprocessingML lists
compare with HTML lists.

Comparing HTML and WordprocessingML lists:
Below is a simple nested list in HTML:

<ol>
  <li>
    <p>This is top-level item 1</p>
    <ol>
      <li>This is second-level item 1</li>
      <li>This is second-level item 2</li>
    </ol>
  </li>
  <li>This is top-level item 2</li>
</ol>


In WordprocessingML, a list like this is expressed
much differently. Instead of using a hierarchical
structure to express the list hierarchy, we must
represent the list as a flat sequence of four sibling
paragraphs, assigning them to the same list but to
different levels within the list:

<w:p>
  <w:pPr>
    <w:listPr>
      <w:ilvl w:val="0"/>
      <w:ilfo w:val="1"/>
    </w:listPr>
  </w:pPr>
  <w:r>
    <w:t>This is top-level item 1</w:t>
  </w:r>
</w:p>
<w:p>
  <w:pPr>
    <w:listPr>
      <w:ilvl w:val="1"/>
      <w:ilfo w:val="1"/>
    </w:listPr>
  </w:pPr>
  <w:r>
    <w:t>This is second-level item 1</w:t>
  </w:r>
</w:p>
<w:p>
  <w:pPr>
    <w:listPr>
      <w:ilvl w:val="1"/>
      <w:ilfo w:val="1"/>
    </w:listPr>
  </w:pPr>
  <w:r>
    <w:t>This is second-level item 2</w:t>
  </w:r>
</w:p>
<w:p>
  <w:pPr>
    <w:listPr>
      <w:ilvl w:val="0"/>
      <w:ilfo w:val="1"/>
    </w:listPr>
  </w:pPr>
  <w:r>
    <w:t>This is top-level item 2</w:t>
  </w:r>
</w:p>
------------------------------------------------------
Example1: wordML for displaying bulleted list
<?xml version="1.0" encoding="UTF-8"
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-com:office: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:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
w:macrosPresent="no" w:embeddedObjPresent="no"
w:ocxPresent="no"
xml:space="preserve"><o:DocumentProperties><o:Title>C"b,B"</o:Title><o:Author>vnanjang</o:Author><o:LastAuthor>vnanjang</o:LastAuthor><o:Revision>1</o:Revision><o:TotalTime>1</o:TotalTime><o:Created>2005-02-16T04:55:00Z</o:Created><o:LastSaved>2005-02-16T04:56:00Z</o:LastSaved><o:Pages>1</o:Pages><o:Words>3</o:Words><o:Characters>20</o:Characters><o:Company>Vasu</o:Company><o:Lines>1</o:Lines><o:Paragraphs>1</o:Paragraphs><o:CharactersWithSpaces>22</o:CharactersWithSpaces><o:Version>11.5604</o:Version></o:DocumentProperties><w:fonts><w:defaultFonts
w:ascii="Times New Roman" w:fareast="SimSun"
w:h-ansi="Times New Roman" w:cs="Times New
Roman"/><w:font w:name="Wingdings"><w:panose-1
w:val="05000000000000000000"/><w:charset
w:val="02"/><w:family w:val="Auto"/><w:pitch
w:val="variable"/><w:sig w:usb-0="00000000"
w:usb-1="10000000" w:usb-2="00000000"
w:usb-3="00000000" w:csb-0="80000000"
w:csb-1="00000000"/></w:font><w:font
w:name="SimSun"><w:altName
w:val="C%B.b9C$B=b"/><w:panose-1
w:val="02010600030101010101"/><w:charset
w:val="86"/><w:family w:val="Auto"/><w:pitch
w:val="variable"/><w:sig w:usb-0="00000003"
w:usb-1="080E0000" w:usb-2="00000010"
w:usb-3="00000000" w:csb-0="00040001"
w:csb-1="00000000"/></w:font><w:font
w:name="@SimSun"><w:panose-1
w:val="02010600030101010101"/><w:charset
w:val="86"/><w:family w:val="Auto"/><w:pitch
w:val="variable"/><w:sig w:usb-0="00000003"
w:usb-1="080E0000" w:usb-2="00000010"
w:usb-3="00000000" w:csb-0="00040001"
w:csb-1="00000000"/></w:font></w:fonts><w:lists><w:listDef
w:listDefId="0"><w:lsid w:val="060A58D2"/><w:plt
w:val="HybridMultilevel"/><w:tmpl
w:val="6F4E624A"/><w:lvl w:ilvl="0"
w:tplc="04090001"><w:start w:val="1"/><w:nfc
w:val="23"/><w:lvlText w:val="C/bB7"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="720"/></w:tabs><w:ind w:left="720"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Symbol" w:h-ansi="Symbol"
w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="1"
w:tplc="04090003" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="23"/><w:lvlText
w:val="o"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1440"/></w:tabs><w:ind w:left="1440"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Courier New" w:h-ansi="Courier New"
w:cs="Courier New"
w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="2"
w:tplc="04090005" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="23"/><w:lvlText
w:val="C/bB'"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2160"/></w:tabs><w:ind w:left="2160"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Wingdings" w:h-ansi="Wingdings"
w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="3"
w:tplc="04090001" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="23"/><w:lvlText
w:val="C/bB7"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2880"/></w:tabs><w:ind w:left="2880"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Symbol" w:h-ansi="Symbol"
w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="4"
w:tplc="04090003" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="23"/><w:lvlText
w:val="o"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="3600"/></w:tabs><w:ind w:left="3600"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Courier New" w:h-ansi="Courier New"
w:cs="Courier New"
w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="5"
w:tplc="04090005" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="23"/><w:lvlText
w:val="C/bB'"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="4320"/></w:tabs><w:ind w:left="4320"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Wingdings" w:h-ansi="Wingdings"
w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="6"
w:tplc="04090001" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="23"/><w:lvlText
w:val="C/bB7"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="5040"/></w:tabs><w:ind w:left="5040"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Symbol" w:h-ansi="Symbol"
w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="7"
w:tplc="04090003" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="23"/><w:lvlText
w:val="o"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="5760"/></w:tabs><w:ind w:left="5760"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Courier New" w:h-ansi="Courier New"
w:cs="Courier New"
w:hint="default"/></w:rPr></w:lvl><w:lvl w:ilvl="8"
w:tplc="04090005" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="23"/><w:lvlText
w:val="C/bB'"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="6480"/></w:tabs><w:ind w:left="6480"
w:hanging="360"/></w:pPr><w:rPr><w:rFonts
w:ascii="Wingdings" w:h-ansi="Wingdings"
w:hint="default"/></w:rPr></w:lvl></w:listDef><w:list
w:ilfo="1"><w:ilst
w:val="0"/></w:list></w:lists><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: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="ZH-CN"
w:bidi="AR-SA"/></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:styles><w:docPr><w:view
w:val="print"/><w:zoom
w:percent="100"/><w:doNotEmbedSystemFonts/><w:proofState
w:spelling="clean"
w:grammar="clean"/><w:attachedTemplate
w:val=""/><w:defaultTabStop
w:val="720"/><w:characterSpacingControl
w:val="DontCompress"/><w:optimizeForBrowser/><w:validateAgainstSchema/><w:saveInvalidXML
w:val="off"/><w:ignoreMixedContent
w:val="off"/><w:alwaysShowPlaceholderText
w:val="off"/><w:compat><w:dontAllowFieldEndSelect/><w:applyBreakingRules/><w:useWord2002TableStyleRules/><w:useFELayout/></w:compat></w:docPr><w:body><wx:sect><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="1"/><wx:t wx:val="CB7"
wx:wTabBefore="360" wx:wTabAfter="240"/><wx:font
wx:val="Symbol"/></w:listPr></w:pPr><w:r><w:t>Alpha</w:t></w:r></w:p><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="1"/><wx:t wx:val="CB7"
wx:wTabBefore="360" wx:wTabAfter="240"/><wx:font
wx:val="Symbol"/></w:listPr></w:pPr><w:r><w:t>Beta</w:t></w:r></w:p><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="1"/><wx:t wx:val="CB7"
wx:wTabBefore="360" wx:wTabAfter="240"/><wx:font
wx:val="Symbol"/></w:listPr></w:pPr><w:r><w:t>Gamma</w:t></w:r></w:p><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="1"/><wx:t wx:val="CB7"
wx:wTabBefore="360" wx:wTabAfter="240"/><wx:font
wx:val="Symbol"/></w:listPr></w:pPr><w:r><w:t>Delta</w:t></w:r></w:p><w:sectPr><w:pgSz
w:w="12240" w:h="15840"/><w:pgMar 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:docGrid
w:line-pitch="360"/></w:sectPr></wx:sect></w:body></w:wordDocument>
------------------------------------------------------

Example2: WordML for displaying Numbered list a,b,c:
<?xml version="1.0" encoding="UTF-8"
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-com:office: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:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
w:macrosPresent="no" w:embeddedObjPresent="no"
w:ocxPresent="no"
xml:space="preserve"><o:DocumentProperties><o:Title>a</o:Title><o:Author>vnanjang</o:Author><o:LastAuthor>vnanjang</o:LastAuthor><o:Revision>2</o:Revision><o:TotalTime>0</o:TotalTime><o:Created>2005-02-16T04:57:00Z</o:Created><o:LastSaved>2005-02-16T04:57:00Z</o:LastSaved><o:Pages>1</o:Pages><o:Words>2</o:Words><o:Characters>13</o:Characters><o:Company>Vasu</o:Company><o:Lines>1</o:Lines><o:Paragraphs>1</o:Paragraphs><o:CharactersWithSpaces>14</o:CharactersWithSpaces><o:Version>11.5604</o:Version></o:DocumentProperties><w:fonts><w:defaultFonts
w:ascii="Times New Roman" w:fareast="SimSun"
w:h-ansi="Times New Roman" w:cs="Times New
Roman"/><w:font w:name="SimSun"><w:altName
w:val="C%B.b9C$B=b"/><w:panose-1
w:val="02010600030101010101"/><w:charset
w:val="86"/><w:family w:val="Auto"/><w:pitch
w:val="variable"/><w:sig w:usb-0="00000003"
w:usb-1="080E0000" w:usb-2="00000010"
w:usb-3="00000000" w:csb-0="00040001"
w:csb-1="00000000"/></w:font><w:font
w:name="@SimSun"><w:panose-1
w:val="02010600030101010101"/><w:charset
w:val="86"/><w:family w:val="Auto"/><w:pitch
w:val="variable"/><w:sig w:usb-0="00000003"
w:usb-1="080E0000" w:usb-2="00000010"
w:usb-3="00000000" w:csb-0="00040001"
w:csb-1="00000000"/></w:font></w:fonts><w:lists><w:listDef
w:listDefId="0"><w:lsid w:val="78C041FD"/><w:plt
w:val="HybridMultilevel"/><w:tmpl
w:val="8EEEE412"/><w:lvl w:ilvl="0"
w:tplc="04090019"><w:start w:val="1"/><w:nfc
w:val="4"/><w:lvlText w:val="%1."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="720"/></w:tabs><w:ind w:left="720"
w:hanging="360"/></w:pPr></w:lvl><w:lvl w:ilvl="1"
w:tplc="04090019" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="4"/><w:lvlText
w:val="%2."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1440"/></w:tabs><w:ind w:left="1440"
w:hanging="360"/></w:pPr></w:lvl><w:lvl w:ilvl="2"
w:tplc="0409001B" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="2"/><w:lvlText
w:val="%3."/><w:lvlJc
w:val="right"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2160"/></w:tabs><w:ind w:left="2160"
w:hanging="180"/></w:pPr></w:lvl><w:lvl w:ilvl="3"
w:tplc="0409000F" w:tentative="on"><w:start
w:val="1"/><w:lvlText w:val="%4."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2880"/></w:tabs><w:ind w:left="2880"
w:hanging="360"/></w:pPr></w:lvl><w:lvl w:ilvl="4"
w:tplc="04090019" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="4"/><w:lvlText
w:val="%5."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="3600"/></w:tabs><w:ind w:left="3600"
w:hanging="360"/></w:pPr></w:lvl><w:lvl w:ilvl="5"
w:tplc="0409001B" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="2"/><w:lvlText
w:val="%6."/><w:lvlJc
w:val="right"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="4320"/></w:tabs><w:ind w:left="4320"
w:hanging="180"/></w:pPr></w:lvl><w:lvl w:ilvl="6"
w:tplc="0409000F" w:tentative="on"><w:start
w:val="1"/><w:lvlText w:val="%7."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="5040"/></w:tabs><w:ind w:left="5040"
w:hanging="360"/></w:pPr></w:lvl><w:lvl w:ilvl="7"
w:tplc="04090019" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="4"/><w:lvlText
w:val="%8."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="5760"/></w:tabs><w:ind w:left="5760"
w:hanging="360"/></w:pPr></w:lvl><w:lvl w:ilvl="8"
w:tplc="0409001B" w:tentative="on"><w:start
w:val="1"/><w:nfc w:val="2"/><w:lvlText
w:val="%9."/><w:lvlJc
w:val="right"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="6480"/></w:tabs><w:ind w:left="6480"
w:hanging="180"/></w:pPr></w:lvl></w:listDef><w:list
w:ilfo="1"><w:ilst
w:val="0"/></w:list></w:lists><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="00926276"/><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="ZH-CN"
w:bidi="AR-SA"/></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:styles><w:docPr><w:view
w:val="print"/><w:zoom
w:percent="100"/><w:doNotEmbedSystemFonts/><w:proofState
w:spelling="clean"
w:grammar="clean"/><w:attachedTemplate
w:val=""/><w:defaultTabStop
w:val="720"/><w:characterSpacingControl
w:val="DontCompress"/><w:optimizeForBrowser/><w:validateAgainstSchema/><w:saveInvalidXML
w:val="off"/><w:ignoreMixedContent
w:val="off"/><w:alwaysShowPlaceholderText
w:val="off"/><w:compat><w:dontAllowFieldEndSelect/><w:applyBreakingRules/><w:useWord2002TableStyleRules/><w:useFELayout/></w:compat></w:docPr><w:body><wx:sect><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="1"/><wx:t wx:val="a."
wx:wTabBefore="360" wx:wTabAfter="195"/><wx:font
wx:val="Times New
Roman"/></w:listPr></w:pPr><w:r><w:t>Hello</w:t></w:r></w:p><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="1"/><wx:t wx:val="b."
wx:wTabBefore="360" wx:wTabAfter="180"/><wx:font
wx:val="Times New
Roman"/></w:listPr></w:pPr><w:r><w:t>Hi</w:t></w:r></w:p><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="1"/><wx:t wx:val="c."
wx:wTabBefore="360" wx:wTabAfter="195"/><wx:font
wx:val="Times New
Roman"/></w:listPr></w:pPr><w:r><w:t>Howdy</w:t></w:r></w:p><w:sectPr><w:pgSz
w:w="12240" w:h="15840"/><w:pgMar 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:docGrid
w:line-pitch="360"/></w:sectPr></wx:sect></w:body></w:wordDocument>
------------------------------------------------------
Example3 for displaying Numbered List of the order
1,2,3,4

<?xml version="1.0" encoding="UTF-8"
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-com:office: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:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
w:macrosPresent="no" w:embeddedObjPresent="no"
w:ocxPresent="no"
xml:space="preserve"><o:DocumentProperties><o:Title>1)</o:Title><o:Author>vnanjang</o:Author><o:LastAuthor>vnanjang</o:LastAuthor><o:Revision>1</o:Revision><o:TotalTime>1</o:TotalTime><o:Created>2005-02-16T04:56:00Z</o:Created><o:LastSaved>2005-02-16T04:57:00Z</o:LastSaved><o:Pages>1</o:Pages><o:Words>4</o:Words><o:Characters>27</o:Characters><o:Company>Vasu</o:Company><o:Lines>1</o:Lines><o:Paragraphs>1</o:Paragraphs><o:CharactersWithSpaces>30</o:CharactersWithSpaces><o:Version>11.5604</o:Version></o:DocumentProperties><w:fonts><w:defaultFonts
w:ascii="Times New Roman" w:fareast="SimSun"
w:h-ansi="Times New Roman" w:cs="Times New
Roman"/><w:font w:name="SimSun"><w:altName
w:val="C%B.b9C$B=b"/><w:panose-1
w:val="02010600030101010101"/><w:charset
w:val="86"/><w:family w:val="Auto"/><w:pitch
w:val="variable"/><w:sig w:usb-0="00000003"
w:usb-1="080E0000" w:usb-2="00000010"
w:usb-3="00000000" w:csb-0="00040001"
w:csb-1="00000000"/></w:font><w:font
w:name="@SimSun"><w:panose-1
w:val="02010600030101010101"/><w:charset
w:val="86"/><w:family w:val="Auto"/><w:pitch
w:val="variable"/><w:sig w:usb-0="00000003"
w:usb-1="080E0000" w:usb-2="00000010"
w:usb-3="00000000" w:csb-0="00040001"
w:csb-1="00000000"/></w:font></w:fonts><w:lists><w:listDef
w:listDefId="0"><w:lsid w:val="3E947E33"/><w:plt
w:val="Multilevel"/><w:tmpl w:val="04090023"/><w:lvl
w:ilvl="0"><w:start w:val="1"/><w:nfc
w:val="1"/><w:lvlText w:val="Article %1."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1440"/></w:tabs><w:ind w:left="0"
w:first-line="0"/></w:pPr></w:lvl><w:lvl
w:ilvl="1"><w:start w:val="1"/><w:nfc
w:val="22"/><w:isLgl/><w:lvlText w:val="Section
%1.%2"/><w:lvlJc w:val="left"/><w:pPr><w:tabs><w:tab
w:val="list" w:pos="1080"/></w:tabs><w:ind w:left="0"
w:first-line="0"/></w:pPr></w:lvl><w:lvl
w:ilvl="2"><w:start w:val="1"/><w:nfc
w:val="4"/><w:lvlText w:val="(%3)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="720"/></w:tabs><w:ind w:left="720"
w:hanging="432"/></w:pPr></w:lvl><w:lvl
w:ilvl="3"><w:start w:val="1"/><w:nfc
w:val="2"/><w:lvlText w:val="(%4)"/><w:lvlJc
w:val="right"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="864"/></w:tabs><w:ind w:left="864"
w:hanging="144"/></w:pPr></w:lvl><w:lvl
w:ilvl="4"><w:start w:val="1"/><w:lvlText
w:val="%5)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1008"/></w:tabs><w:ind w:left="1008"
w:hanging="432"/></w:pPr></w:lvl><w:lvl
w:ilvl="5"><w:start w:val="1"/><w:nfc
w:val="4"/><w:lvlText w:val="%6)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1152"/></w:tabs><w:ind w:left="1152"
w:hanging="432"/></w:pPr></w:lvl><w:lvl
w:ilvl="6"><w:start w:val="1"/><w:nfc
w:val="2"/><w:lvlText w:val="%7)"/><w:lvlJc
w:val="right"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1296"/></w:tabs><w:ind w:left="1296"
w:hanging="288"/></w:pPr></w:lvl><w:lvl
w:ilvl="7"><w:start w:val="1"/><w:nfc
w:val="4"/><w:lvlText w:val="%8."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1440"/></w:tabs><w:ind w:left="1440"
w:hanging="432"/></w:pPr></w:lvl><w:lvl
w:ilvl="8"><w:start w:val="1"/><w:nfc
w:val="2"/><w:lvlText w:val="%9."/><w:lvlJc
w:val="right"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1584"/></w:tabs><w:ind w:left="1584"
w:hanging="144"/></w:pPr></w:lvl></w:listDef><w:listDef
w:listDefId="1"><w:lsid w:val="48ED010D"/><w:plt
w:val="Multilevel"/><w:tmpl
w:val="0409001D"/><w:listStyleLink
w:val="1ai"/></w:listDef><w:listDef
w:listDefId="2"><w:lsid w:val="556849AB"/><w:plt
w:val="Multilevel"/><w:tmpl
w:val="0409001D"/><w:styleLink w:val="1ai"/><w:lvl
w:ilvl="0"><w:start w:val="1"/><w:lvlText
w:val="%1)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="360"/></w:tabs><w:ind w:left="360"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="1"><w:start w:val="1"/><w:nfc
w:val="4"/><w:lvlText w:val="%2)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="720"/></w:tabs><w:ind w:left="720"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="2"><w:start w:val="1"/><w:nfc
w:val="2"/><w:lvlText w:val="%3)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1080"/></w:tabs><w:ind w:left="1080"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="3"><w:start w:val="1"/><w:lvlText
w:val="(%4)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1440"/></w:tabs><w:ind w:left="1440"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="4"><w:start w:val="1"/><w:nfc
w:val="4"/><w:lvlText w:val="(%5)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1800"/></w:tabs><w:ind w:left="1800"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="5"><w:start w:val="1"/><w:nfc
w:val="2"/><w:lvlText w:val="(%6)"/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2160"/></w:tabs><w:ind w:left="2160"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="6"><w:start w:val="1"/><w:lvlText
w:val="%7."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2520"/></w:tabs><w:ind w:left="2520"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="7"><w:start w:val="1"/><w:nfc
w:val="4"/><w:lvlText w:val="%8."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2880"/></w:tabs><w:ind w:left="2880"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="8"><w:start w:val="1"/><w:nfc
w:val="2"/><w:lvlText w:val="%9."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="3240"/></w:tabs><w:ind w:left="3240"
w:hanging="360"/></w:pPr></w:lvl></w:listDef><w:listDef
w:listDefId="3"><w:lsid w:val="6B917921"/><w:plt
w:val="Multilevel"/><w:tmpl w:val="0409001F"/><w:lvl
w:ilvl="0"><w:start w:val="1"/><w:lvlText
w:val="%1."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="360"/></w:tabs><w:ind w:left="360"
w:hanging="360"/></w:pPr></w:lvl><w:lvl
w:ilvl="1"><w:start w:val="1"/><w:lvlText
w:val="%1.%2."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="792"/></w:tabs><w:ind w:left="792"
w:hanging="432"/></w:pPr></w:lvl><w:lvl
w:ilvl="2"><w:start w:val="1"/><w:lvlText
w:val="%1.%2.%3."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1440"/></w:tabs><w:ind w:left="1224"
w:hanging="504"/></w:pPr></w:lvl><w:lvl
w:ilvl="3"><w:start w:val="1"/><w:lvlText
w:val="%1.%2.%3.%4."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="1800"/></w:tabs><w:ind w:left="1728"
w:hanging="648"/></w:pPr></w:lvl><w:lvl
w:ilvl="4"><w:start w:val="1"/><w:lvlText
w:val="%1.%2.%3.%4.%5."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2520"/></w:tabs><w:ind w:left="2232"
w:hanging="792"/></w:pPr></w:lvl><w:lvl
w:ilvl="5"><w:start w:val="1"/><w:lvlText
w:val="%1.%2.%3.%4.%5.%6."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="2880"/></w:tabs><w:ind w:left="2736"
w:hanging="936"/></w:pPr></w:lvl><w:lvl
w:ilvl="6"><w:start w:val="1"/><w:lvlText
w:val="%1.%2.%3.%4.%5.%6.%7."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="3600"/></w:tabs><w:ind w:left="3240"
w:hanging="1080"/></w:pPr></w:lvl><w:lvl
w:ilvl="7"><w:start w:val="1"/><w:lvlText
w:val="%1.%2.%3.%4.%5.%6.%7.%8."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="3960"/></w:tabs><w:ind w:left="3744"
w:hanging="1224"/></w:pPr></w:lvl><w:lvl
w:ilvl="8"><w:start w:val="1"/><w:lvlText
w:val="%1.%2.%3.%4.%5.%6.%7.%8.%9."/><w:lvlJc
w:val="left"/><w:pPr><w:tabs><w:tab w:val="list"
w:pos="4680"/></w:tabs><w:ind w:left="4320"
w:hanging="1440"/></w:pPr></w:lvl></w:listDef><w:list
w:ilfo="1"><w:ilst w:val="0"/></w:list><w:list
w:ilfo="2"><w:ilst w:val="3"/></w:list><w:list
w:ilfo="3"><w:ilst w:val="2"/></w:list><w:list
w:ilfo="4"><w:ilst
w:val="1"/></w:list></w:lists><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: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="ZH-CN"
w:bidi="AR-SA"/></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="list"
w:styleId="1ai"><w:name w:val="Outline List
1"/><wx:uiName wx:val="1 / a / i"/><w:basedOn
w:val="NoList"/><w:rsid
w:val="00517935"/><w:pPr><w:listPr><w:ilfo
w:val="3"/></w:listPr></w:pPr></w:style></w:styles><w:docPr><w:view
w:val="print"/><w:zoom
w:percent="100"/><w:doNotEmbedSystemFonts/><w:proofState
w:spelling="clean"
w:grammar="clean"/><w:attachedTemplate
w:val=""/><w:defaultTabStop
w:val="720"/><w:characterSpacingControl
w:val="DontCompress"/><w:optimizeForBrowser/><w:validateAgainstSchema/><w:saveInvalidXML
w:val="off"/><w:ignoreMixedContent
w:val="off"/><w:alwaysShowPlaceholderText
w:val="off"/><w:compat><w:dontAllowFieldEndSelect/><w:applyBreakingRules/><w:useWord2002TableStyleRules/><w:useFELayout/></w:compat></w:docPr><w:body><wx:sect><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="4"/><wx:t wx:val="1)"
wx:wTabBefore="0" wx:wTabAfter="165"/><wx:font
wx:val="Times New
Roman"/></w:listPr></w:pPr><w:r><w:t>Letter</w:t></w:r></w:p><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="4"/><wx:t wx:val="2)"
wx:wTabBefore="0" wx:wTabAfter="165"/><wx:font
wx:val="Times New
Roman"/></w:listPr></w:pPr><w:r><w:t>Word</w:t></w:r></w:p><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="4"/><wx:t wx:val="3)"
wx:wTabBefore="0" wx:wTabAfter="165"/><wx:font
wx:val="Times New
Roman"/></w:listPr></w:pPr><w:r><w:t>Sentence</w:t></w:r></w:p><w:p><w:pPr><w:listPr><w:ilvl
w:val="0"/><w:ilfo w:val="4"/><wx:t wx:val="4)"
wx:wTabBefore="0" wx:wTabAfter="165"/><wx:font
wx:val="Times New
Roman"/></w:listPr></w:pPr><w:r><w:t>Paragraph</w:t></w:r></w:p><w:sectPr><w:pgSz
w:w="12240" w:h="15840"/><w:pgMar 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:docGrid
w:line-pitch="360"/></w:sectPr></wx:sect></w:body></w:wordDocument>
-----------------------------------------------------


--- Vasu Nanjangud <vasdeep@xxxxxxxxx> wrote:

> Date: Sat, 12 Feb 2005 23:48:43 -0800 (PST)
> From: Vasu Nanjangud <vasdeep@xxxxxxxxx>
> Subject: Fwd: Re: [xsl] WordML to XML
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 
> Joris,
> Thanks a lot! That works like a charm :-).
> Can I also handle "w:listPr" tags which are a little
> complicated implementation for "list Items - <OL>
> <LI>.."...
> 
> Thanks for your time. 
> 
> Regards,
> Vasu
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

Current Thread