This page was generated
February  9,  2010
11:53  AM
XQuery Built-In and Modules Function Reference

Module: MSWord Conversion

The MSWord module is part of the conversion processing pipeline. These functions are used to manipulate XHTML derived by converting Microsoft Msword spreadsheets, as part of conversion processing.

To use the MSWord module as part of your own XQuery module, include the following line in your XQuery prolog:

import module namespace msword = "http://marklogic.com/cpf/msword" at "/MarkLogic/conversion/msword.xqy"

You will need to ensure that the MSWord module is loaded into the same modules database as the importing module.

The library namespace prefix msword is not predefined in the server.

Function Summary
msword:clean Clean up any conversion artifacts or other infelicities.
Function Detail
msword:clean(
$uri as xs:string,
$doc as node()?
)  as   node()?
Summary:

Clean up any conversion artifacts or other infelicities.

Parameters:
$uri : The source URI of the converted document.
$doc : The XHTML produced by conversion of a Microsoft Word document.

Example:
  xquery version "0.9-ml"
  import module namespace msword = "http://marklogic.com/cpf/msword" 
		  at "/MarkLogic/conversion/msword.xqy"

  msword:clean("my_doc.xhtml",fn:doc("my_doc.xhtml"))