Advanced

Advanced topics

Word export config schema

Version: 0.7.6

The Export Schema controls the configuration file for the companion process to the Word Import Schema.

Warning!

This documentation is under development. It is scheduled for completion by September 2018.

<xs:schema  elementFormDefault="unqualified"
            version="0.6.2"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:xml="http://www.w3.org/XML/1998/namespace" />

<config>

The root element for the config instances.

version a value for checking the version of an instance against the version of a processor.

<xs:element  name="config">
            <xs:complexType>
                    <xs:sequence>
                        <xs:element  ref="core"
                                     minOccurs="0"
                                     maxOccurs="1" />
                        <xs:element  ref="toc"
                                     minOccurs="0"
                                     maxOccurs="1" />
                        <xs:element  ref="default"
                                     minOccurs="0"
                                     maxOccurs="1" />
                        <xs:element  ref="elements"
                                     minOccurs="0"
                                     maxOccurs="unbounded" />
                   </xs:sequence>
                 <xs:attribute  name="version"
                                type="xs:string" />
           </xs:complexType>
    </xs:element>

<core>

The element defines the Word Properties for the exported docx file.

title is mapped to the Title Property in the Word document. It is known as the PSML Document title.

keywords The PSML document labels.

created The current date.

modified The PSML document modified date.

select  use token [ps-document-title]

select use token [ps-document-labels]

select use token [ps-current-date]

select use token [ps-document-modified]

<xs:element  name="core">
                <xs:complexType>
                        <xs:all>
                                <xs:element  ref="creator"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="description"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="subject"
                                             minOccurs="0"
                                             maxOccurs="1" />                                
                                <xs:element  ref="category"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="version"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="revision"
                                             minOccurs="0"
                                             maxOccurs="1" />
        <xs:element  name="title"
                     minOccurs="0"
                     maxOccurs="1" />
        <xs:element  name="keywords"
                     minOccurs="0"
                     maxOccurs="1" />
        <xs:element  name="created"
                     minOccurs="0"
                     maxOccurs="1" />
        <xs:element  name="modified"
                     minOccurs="0"
                     maxOccurs="1" />
                        </xs:all>
                </xs:complexType>
        </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <core>
      <title select="[ps-document-title]" />
    </core>
  </config>

See use of:

core-properties-partial 

See use of:

core-properties-tokens 

core-properties 

<creator>

is mapped to the Author property in Word. The full name of the current user.

select use token [ps-current-user]

<xs:element  name="creator">
                <xs:complexType>                  
                        <xs:attribute  name="select"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

See use of:

core-properties-tokens 

core-properties 

<description>

is mapped to the Comment property in Word. The PSML document description.

select use token [ps-document-description]

<xs:element  name="description">
                <xs:complexType>                  
                        <xs:attribute  name="select"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

See use of:

core-properties-tokens 

core-properties 

<subject>

is mapped to the Subject property in Word.

select [Insert description]

<xs:element  name="subject">
                <xs:complexType>                  
                        <xs:attribute  name="select"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

See use of:

core-properties-tokens 

core-properties 

<category>

is mapped to the Category property in Word.

select [Insert description]

<xs:element  name="category">
                <xs:complexType>                  
                        <xs:attribute  name="select"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

See use of:

core-properties-tokens 

core-properties 

<version>

is mapped to the Version property in Word.

select [Insert description]

<xs:element  name="version">
                <xs:complexType>                  
                        <xs:attribute  name="select"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

See use of:

core-properties-tokens 

core-properties 

<revision>

is mapped to the Revision property in Word.

select [Insert description]

<xs:element  name="revision">
                <xs:complexType>                  
                        <xs:attribute  name="select"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

See use of:

core-properties-tokens 

core-properties 

<keep-paragraph-with-next>

Used to keep particular content with the next content.

<xs:element  name="keep-paragraph-with-next">
    <xs:complexType />
  </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <block>
        <label value="heading1" wordstyle="heading 1" />
        <label value="heading2" wordstyle="heading 2">
          <keep-paragraph-with-next />
        </label>
      </block>

      <heading>
        <level value="1" wordstyle="heading 1"/>
        <level value="2" wordstyle="heading 2"/>
        <level value="3" wordstyle="heading 3"/>
        <level value="4" wordstyle="heading 4">
          <keep-paragraph-with-next />
        </level>
        <level value="5" wordstyle="heading 5">
          <keep-paragraph-with-next />
        </level>
        <level value="6" wordstyle="heading 6"/>        
        
        <level value="1" numbered="true" wordstyle="Heading Numbered 1"/>
        <level value="2" numbered="true" wordstyle="Heading Numbered 2"/>
        <level value="3" numbered="true" wordstyle="Heading Numbered 3"/>
        <level value="4" numbered="true" wordstyle="Heading Numbered 4">
          <keep-paragraph-with-next />
        </level>
        <level value="5" numbered="true" wordstyle="Heading Numbered 5">
          <keep-paragraph-with-next />
        </level>
        <level value="6" numbered="true" wordstyle="Heading Numbered 6"/>
      </heading>

      <para>
        <indent level="1" wordstyle="heading 1" />
        <indent level="2" wordstyle="heading 2">
          <keep-paragraph-with-next />
        </indent>
      </para>
    </elements>
  </config>


See use of:
headings-block-para-keep-with-next 

<toc>

Not transformed. It acts as a placeholder for where to insert the Table of contents (ToC) field in the docx file.

generate use a value of "true" or "false" determines whether or not the PSML objects will be used to generate entries in a Table of Contents.

style the Word Style name for the desired Table of Contents. The Word default Style name is TOC2.

<xs:element  name="toc">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element  ref="headings"
                                             minOccurs="0"
                                             maxOccurs="unbounded" />
                                <xs:element  ref="outline"
                                             minOccurs="0"
                                             maxOccurs="unbounded" />
                                <xs:element  ref="paragraph"
                                             minOccurs="0"
                                             maxOccurs="unbounded" />
                        </xs:sequence>
                        <xs:attribute  name="generate"
                                       type="xs:boolean" />
                        <xs:attribute  name="style"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <toc generate="false" style="TOC1">
  </toc>
  </config>

See use of:

toc-false 

toc-true 

<headings>

Used to generate entries in a Word Table of contents (ToC). The Native Word heading styles, numbered 1 to 9, are used.

generate use a value of "true" or "false" to determine whether or not PSML objects will be used to generate entries in a Word Table of Contents.

select use an integer from 1 to 9, including groupings separated by a pipe character (regular expression syntax eg "1|1-2|5-9|").

<xs:element  name="headings">
            <xs:complexType>
                    <xs:attribute  name="generate"
                                   type="xs:boolean" />
                    <xs:attribute  name="select">
                            <xs:simpleType>
                                  <xs:restriction  base="xs:string">
                                       <xs:pattern  value="[0-9]" />
                                       <xs:pattern  value="[0-9]-[0-9]" />
                                  </xs:restriction>
                            </xs:simpleType>
                    </xs:attribute>
            </xs:complexType>
 </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <toc generate="true" style="TOC1">
      <headings generate="false"/>
    </toc>
  </config>

See use of:

toc-true-heading-false 

<?xml version="1.0"?>
  <config>
    <toc generate="true" style="TOC1">
      <headings generate="true" select="1" />
    </toc>
</config>

See use of:

toc-true-heading-true 

toc-true-heading-true-multiple 

toc-true-heading-paragraph-outline 

<outline>

Native Word Style outline levels, numbered 1 to 9, that are used to generate entries in a Word Table of contents (ToC).

generate use a value of "true" or "false" to determine whether or not PSML objects will be used to generate entries in a Word Table of Contents.

select use an integer from 1 to 9, including groupings separated by a pipe character (regular expression syntax eg "1|1-2|5-9|").

<xs:element  name="outline">
                <xs:complexType>
                        <xs:attribute  name="generate"
                                       type="xs:boolean" />
                        <xs:attribute  name="select">
        <xs:simpleType>
          <xs:restriction  base="xs:string">
            <xs:pattern  value="[0-9]" />
            <xs:pattern  value="[0-9]-[0-9]" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
                </xs:complexType>
        </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <toc generate="true" style="TOC1">
      <outline generate="false"/>
    </toc>
</config>

See use of:

toc-true-outline-false 

<?xml version="1.0"?>
  <config>
    <toc generate="true" style="TOC1">
      <outline generate="true" select="1" />
    </toc>
  </config>

See use of:

toc-true-outline-true 

toc-true-outline-true-multiple 

toc-true-heading-paragraph-outline 

<paragraph>

Word paragraph styles which can be used to generate entries in a Table of contents (ToC) 

generate use a value of "true" or "false" to determine whether or not the PSML objects will be used to generate entries in a Table of Contents.

<xs:element  name="paragraph">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element  ref="style"
                                             minOccurs="0"
                                             maxOccurs="unbounded" />
                        </xs:sequence>
                        <xs:attribute  name="generate"
                                       type="xs:boolean" />
                </xs:complexType>
        </xs:element>

<style>

Declares which Word paragraph styles will be used to generate the Word Table of contents (ToC)

value name of the Word style to be used in the ToC.

indent sets the level for the Word style in the ToC hierarchy.

<xs:element  name="style">
                <xs:complexType>
                        <xs:attribute  name="value"
                                       type="xs:string" />
                        <xs:attribute  name="indent"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

Example

<?xml version="1.0"?>
  <config>  
    <toc generate="false" style="TOC1">
    </toc>
  </config>

See use of:

toc-false 

<?xml version="1.0"?>
  <config>
    <toc generate="true" style="TOC1">
       <paragraph generate="false"/>
    </toc>
  </config>

See use of:

toc-true-paragraph-false 

toc-true-paragraph-true 

toc-true-paragraph-true-multiple 

toc-true-heading-paragraph-outline 

<default>

Contains the settings for general transformations of PSML to docx.

<xs:element  name="default">
                <xs:complexType>
      <xs:choice>
        <xs:sequence>
          <xs:element  ref="defaultparagraphstyle"
                       minOccurs="0"
                       maxOccurs="1" />
          <xs:element  ref="defaultcharacterstyle"
                       minOccurs="0"
                       maxOccurs="1" />
          <xs:element  ref="comments"
                       minOccurs="0"
                       maxOccurs="1" />
          <xs:element  ref="mathml"
                       minOccurs="0"
                       maxOccurs="1" />
          <xs:element  ref="citations"
                       minOccurs="0"
                       maxOccurs="1" />
          <xs:element  ref="endnotes"
                       minOccurs="0"
                       maxOccurs="1" />
          <xs:element  ref="footnotes"
                       minOccurs="0"
                       maxOccurs="1" />
          <xs:element  ref="xrefs"
                       minOccurs="0"
                       maxOccurs="1" />
        </xs:sequence>
        <xs:sequence>
          <xs:element  ref="level"
                       minOccurs="0"
                       maxOccurs="unbounded" />
        </xs:sequence>
      </xs:choice>
                </xs:complexType>
        </xs:element>

<defaultparagraphstyle>

Defines a mapping for a paragraph style not mapped by <elements>.

wordstyle the Word style name that the PSML is being transformed to.

<xs:element  name="defaultparagraphstyle">
                <xs:complexType>
                        <xs:attribute  name="wordstyle"
                                       type="xs:string"
                                       default="Body Text" />
                </xs:complexType>
        </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <default>
      <defaultparagraphstyle wordstyle="none" />
    </default>
  </config>

See use of:

defaultparagraphstyle-none 

<?xml version="1.0"?>
  <config>
    <default>
      <defaultparagraphstyle wordstyle="Balloon Text" />
    </default>
  </config>

See use of:

defaultparagraphstyle-set 

<defaultcharacterstyle>

Defines general rule for any character style not mapped by <elements>.

wordstyle the Word Character style name that the PSML is being transformed to.

<xs:element  name="defaultcharacterstyle">
                <xs:complexType>
                        <xs:attribute  name="wordstyle"
                                       type="xs:string"
                                       default="Default Paragraph Font" />
                </xs:complexType>
        </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <default>
      <defaultcharacterstyle wordstyle="none" />
    </default>
  </config>

See use of:

defaultcharacterstyle-none 

<?xml version="1.0"?>
  <config>
    <default>
      <defaultcharacterstyle wordstyle="Body Text Char" />
    </default>
  </config>

See use of:

defaultcharacterstyle-set 

<comments>

Used to add comments for each section, with a link to add a comment to PageSeeder section by the users' default mail engine. By default, this value is set to "false".

generate use a value of "true" or "false" to determine whether or not the PSML objects will be used to generate comments.

<xs:element  name="comments">
                <xs:complexType>
                        <xs:attribute  name="generate"
                                       type="xs:boolean" />
                </xs:complexType>
        </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <default>
      <comments generate="false" />
    </default>
  </config>

See use of:

comments-false 

<?xml version="1.0"?>
  <config>
    <default>
      <comments generate="true" />
    </default>
  </config>

See use of:

comments-true 

<mathml>

Converts any Math ML object that is referenced by the exported psml document. These will be converted back to Open Office math ml objects in Word. By default, this value is set to "false".

generate use a value of "true" or "false" to determine whether or not the PSML objects will be used to generate mathml.

<xs:element  name="mathml">
       <xs:complexType>
                  <xs:attribute  name="generate"
                                 type="xs:boolean" />
       </xs:complexType>
</xs:element>

Example

<default>
    <defaultparagraphstyle wordstyle="ps-body-text"/>
    <defaultcharacterstyle wordstyle="Default Paragraph Font"/>
    <mathml generate="true"/>
  </default>

<citations>

Converts certain XRefs to DocX citations. Requires additional post-processing and pso-docx version 0.7.4 or later.

documenttype XRefs to properties fragments in a document with type @documenttype will become DocX citations and a DocX bibliography will be inserted after this document's <section id="title"> content.

pageslabel If this inline label is directly after the XRef it's content will become the citation page or page range e.g.

<xref documenttype="bibliography" ... >...</xref>
<inline label="pages">10 - 20</inline>
<xs:element  name="citations">
       <xs:complexType>
                  <xs:attribute  name="documenttype"
                                 type="xs:string" />
                  <xs:attribute  name="pageslabel"
                                 type="xs:string" /> 
       </xs:complexType>
</xs:element>

Example

<default>
    <defaultparagraphstyle wordstyle="Body Text"/>
    <defaultcharacterstyle wordstyle="Default Paragraph Font"/>
    <citations documenttype="bibliography" pageslabel="pages"/>
</default>

<endnotes>

Converts certain XRefs to DocX endnotes. Requires pso-docx version 0.7.4 or later.

documenttype XRefs to fragments under <section id="content"> in a document with this type will become DocX endnotes. This document must be embedded in the publication but will be ignored.

<xs:element  name="endnotes">
       <xs:complexType>
                  <xs:attribute  name="documenttype"
                                 type="xs:string" />
       </xs:complexType>
</xs:element>

Example

<default>
    <defaultparagraphstyle wordstyle="Body Text"/>
    <defaultcharacterstyle wordstyle="Default Paragraph Font"/>
    <endnotes documenttype="endnotes"/>
</default>

<footnotes>

Converts certain XRefs to DocX footnotes. Requires pso-docx version 0.7.4 or later.

documenttype XRefs to fragments under <section id="content"> in a document with this type will become DocX footnotes. This document must be embedded in the publication but will be ignored.

<xs:element  name="footnotes">
       <xs:complexType>
                  <xs:attribute  name="documenttype"
                                 type="xs:string" />
       </xs:complexType>
</xs:element>

Example

<default>
    <defaultparagraphstyle wordstyle="Body Text"/>
    <defaultcharacterstyle wordstyle="Default Paragraph Font"/>
    <footnotes documenttype="footnotes"/>
</default>

<xrefs>

Use to process cross references.

type If type="cross-reference", the XRefs will become DocX REF instead of HYPERLINK. This allows the 'Update field' option in Word to be used so that the link text can be updated when pointing to numbered list items. As of version 0.7.0 XRefs with @display="template" and @title containing {parentnumber} or {prefix} will become DocX REF even without setting @type.

hyperlinkstyle The word style for XRefs pointing outside the document (default PS Hyperlink) - version 0.7.0 and later only.

referencestyle The word style for XRefs pointing within the document (default PS Reference) - version 0.7.0 and later only..

<xs:element  name="xrefs">
          <xs:complexType>     
                  <xs:attribute  name="type"
                                 type="xs:string"
                                 fixed="cross-reference" />
                  <xs:attribute  name="hyperlinkstyle"
                                 type="xs:string" />
                  <xs:attribute  name="referencestyle"
                                 type="xs:string" />
          </xs:complexType>
  </xs:element>

Example

<default>
    <defaultparagraphstyle wordstyle="wd-body-text"/>
    <defaultcharacterstyle wordstyle="Default Paragraph Font"/>
    <xrefs type="cross-reference"
          hyperlinkstyle="My Hyperlink"
          referencestyle="My Reference" />
</default>

See use of:

xref-type-cross-reference 

<elements>

Groups the options available to PSML elements when transforming from PSML to docx. They can be transformed specifically for a document with a certain  label. by setting the @label attribute inside a separate <elements> element.

label use to differently transform a document that has a specific label. 

         <xs:element  name="elements">
                <xs:complexType>
                       <xs:all>
                                <xs:element  ref="block"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="inline"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="tables"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="preformat"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="heading"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="para"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="title"
                                             minOccurs="0" 
                                             maxOccurs="1" />
                                <xs:element  ref="nlist"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="list"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="listpara"
                                             minOccurs="0"
                                             maxOccurs="1" />
                                <xs:element  ref="xref"
                                             minOccurs="0"
                                             maxOccurs="1" />
                        </xs:all>
                        <xs:attribute  name="label"
                                       type="xs:string" />
                </xs:complexType>
        </xs:element>

Example

<elements label="front">

<block>

Container for transformations of specified blocks of content into a desired Word style.

default  Use "generate-ps-style" to generate Word Paragraph Styles named ps_blk_[name-of-label].  Use "para" to generate the default paragraphs set inside the configuration file.

<xs:element  name="block">
          <xs:complexType>
                  <xs:sequence>
                          <xs:element  ref="label"
                                       minOccurs="0"
                                       maxOccurs="unbounded" />
                          <xs:element  ref="ignore"
                                       minOccurs="0"
                                       maxOccurs="unbounded" />
                  </xs:sequence>
                  <xs:attribute  name="default"
                                 type="xs:string"
                                 default="generate-ps-style" />
          </xs:complexType>
</xs:element>

Example

<inline>

Container for transformations of specified content into a desired Word style.

default "generate-ps-style" will generate a Word character Style named ps_inl_[name-of-label]. Any other value will generate that Word character style.

<xs:element  name="inline">
          <xs:complexType>
                     <xs:sequence>
                             <xs:element  ref="label"
                                          minOccurs="0"
                                          maxOccurs="unbounded" />
                             <xs:element  ref="ignore"
                                          minOccurs="0"
                                          maxOccurs="unbounded" />
                             <xs:element  ref="tab"
                                          minOccurs="0"
                                          maxOccurs="unbounded" />
                             <xs:element  ref="fieldcode"
                                          minOccurs="0"
                                          maxOccurs="unbounded" />
                     </xs:sequence>
                     <xs:attribute  name="default"
                                    type="xs:string"
                                    default="generate-ps-style" />
          </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <inline default="generate-ps-style"/>
    </elements>
  </config>

See use of:

inline-default-psstyle 

<?xml version="1.0"?>
  <config>
    <elements>
      <inline default="TitleChar"/>
    </elements>
  </config>

See use of:

inline-default-style 

See use of:
inline-default-none 

<ignore>

Means the content with the specified label will not be transformed on export.

label Insert the name of the label that is to be ignored.

<xs:element  name="ignore">
          <xs:complexType>
                     <xs:attribute  name="label"
                                    type="xs:string" />
          </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <inline default="generate-ps-style">
        <label wordstyle="annotation reference" value="Test3"/>
        <ignore label="Test2"/>
      </inline>
    </elements>
  </config>

See use of:

inline-default-psstyle-with-inline-generation-ignore 

<?xml version="1.0"?>
  <config>
    <elements>
      <inline default="Title Char">
        <label wordstyle="annotation reference" value="Test3"/>
        <ignore label="Test2"/>
      </inline>
    </elements>
  </config>

See use of:

inline-default-style-with-inline-generation-ignore 

inline-default-none-with-inline-generation-ignore 

<preformat>

Transforms the contained PSML content into the specified Word style.

wordstyle use the Word style name that you wish to export to.

<xs:element  name="preformat">
             <xs:complexType>
                     <xs:attribute  name="wordstyle"
                                    type="xs:string" />
                </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <preformat wordstyle="heading 4"/>
    </elements>
  </config>

See use of:

preformat-set 

<label>

Transforms the specified name contents into the declared Word style.

value Use a label name. Label characters are restricted to [a-zA-Z0-9_\-]

wordstyle Use a Word style name that exists in the Word export template.

<xs:element  name="label">
          <xs:complexType>
                  <xs:sequence>
                        <xs:element  ref="keep-paragraph-with-next"
                                     minOccurs="0"
                                     maxOccurs="1" />
                  </xs:sequence>
                        <xs:attribute  name="value"
                                       type="xs:string" />
                        <xs:attribute  name="wordstyle"
                                       type="xs:string"
                                       default="generate-ps-style" />
          </xs:complexType>
 </xs:element>

 

See use of labels within a <block> element:

See use of:

block-default-psstyle 

block-default-psstyle-with-block-generation 

block-default-psstyle-with-block-generation-ignore 

See use of:

block-default-style 

block-default-style-with-block-generation 

block-default-style-with-block-psstyle 

block-default-style-with-block-generation-ignore 

See use of:

block-default-none-with-block-psstyle 

block-default-none-with-block-generation 

block-default-none-with-block-generation-ignore 

block-whitespace 

See use of :

custom-template-headings 

See use of labels within an <inline> element:

See use of:

inline-default-psstyle 

inline-default-psstyle-with-inline-generation-ignore 

inline-default-psstyle-with-inline-generation 

inline-default-psstyle-with-inline-generation-tab 

inline-default-psstyle-with-fieldcode 

See use of:

inline-default-style 

inline-default-style-with-inline-generation-ignore 

inline-default-style-with-inline-generation 

inline-default-psstyle-with-inline-generation-tab 

inline-default-style-with-inline-psstyle 

inline-default-style-with-fieldcode 

See use of:
inline-default-none 

inline-default-none-with-inline-generation-ignore 

inline-default-none-with-inline-generation 

inline-default-none-with-inline-generation-tab 

inline-default-none-with-inline-psstyle 

inline-default-none-with-fieldcode 

<tab>

The contents of the specified inline @label name will be transformed to a Word tab on output.

label [Insert description]

<xs:element  name="tab">
                <xs:complexType>
                        <xs:attribute  name="label"
                                       type="xs:string" />
                </xs:complexType>
 </xs:element>

<fieldcode>

Transforms the contents of an inline @label name into a Word fieldcode on output.

If a <heading> or <para> is numbered, or has a prefix, the number/prefix can be transformed into a fieldcode in the output.

Used in <inline>:

label Use an inline label name.

value The field code value, e.g. "LISTNUM LegalDefault \\l 1 \\s 2 ".

Used in <heading> or <para>:

regexp Regex to identify the number in the prefix.

type Type of field code (e.g. SEQ).

<xs:element  name="fieldcode">
             <xs:complexType>
                     <xs:attribute  name="label"
                                    type="xs:string" />
                     <xs:attribute  name="value"
                                    type="xs:string" />
                     <xs:attribute  name="regexp"
                                    type="xs:string"
                                    default="%arabic%" />
                     <xs:attribute  name="type"
                                    type="xs:string"
                                    default="SEQ" />
             </xs:complexType>
 </xs:element>

<tables>

Used to define table styles for each PageSeeder table.

<xs:element  name="tables">
          <xs:complexType>
                  <xs:sequence>
                         <xs:element  ref="table"
                                       minOccurs="0"
                                       maxOccurs="unbounded" />
                  </xs:sequence>
          </xs:complexType>
</xs:element>

<table>

[Insert description]

default use a table style name to default to when not otherwise specified.

role use the desired value from the PSML that you wish to map to a particular @tablestyle.

tablestyle use a particular Word table style name.

headstyle use a particular Word style name.

bodystyle use a particular Word style name.

<xs:element  name="table">
       <xs:complexType>
            <xs:sequence>
                    <xs:element  ref="width"
                                 minOccurs="0"
                                 maxOccurs="1" />
            </xs:sequence>
                              <xs:attribute  name="default"
                                             type="xs:string" />
                              <xs:attribute  name="role"
                                             type="xs:string" /> 
                              <xs:attribute  name="tablestyle"
                                            type="xs:string" />
            <xs:attribute  name="headstyle"
                           type="xs:string" />
            <xs:attribute  name="bodystyle"
                           type="xs:string" />
       </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <tables>
        <table default="PS Table"
               headstyle="Table Header"
               bodystyle="Table Body" />
        <table role="tablea"
               tablestyle="Table Grid"
               headstyle="heading 1"
               bodystyle="heading 9"/>
      </tables>
    </elements>
  </config>

See use of:

tables-default-set-with-role 

See use of:

tables-default-empty 

tables-default-empty-with-role 

tables-default-empty-with-role-multiple 

See use of:

tables-default-set 

tables-default-set-with-role-multiple 

table-cell-whitespace

 

<width>

[Insert description]

type use pct ( percent) or auto or  dxa ( twentieth-of-point).

value Insert an integer. In Word, 100% is 5000 and 1 dxa is 15 twentieths-of-point.

<xs:element  name="width">
       <xs:complexType>
            <xs:attribute  name="type"
                           type="xs:string"
                           default="pct" />
            <xs:attribute  name="value"
                           type="xs:string"
                           default="5000" />
    </xs:complexType>
  </xs:element>

Example

<?xml version="1.0"?>
     <config>
          <elements>
               <tables>
                    <table default="Table Grid">
                        <width type="auto" value="5000"/>
                    </table>
                </tables>
          </elements>
     </config>

See use of:

tables-default-with-width-auto 

tables-default-with-width-dxa 

tables-default-with-width-pct 

See use of:

tables-role-with-width-auto 

tables-role-with-width-dxa 

tables-role-with-width-pct 

See use of:

custom-template-tables 

<heading>

Maps each level of heading in PageSeeder to each heading style in Word. By default , each level is mapped to the corresponding heading in Word (so level 1 to heading 1, level 2 to heading 2, etc.). Each PSML heading level can also be transformed into a unique style in the docx file.

<xs:element  name="heading">
          <xs:complexType>
                     <xs:sequence>
                             <xs:element  ref="level"
                                          minOccurs="0"
                                          maxOccurs="unbounded" />
                     </xs:sequence>
          </xs:complexType>
 </xs:element>

<level>

Controls the processing of each level of content.

value use an integer from 1 up to 9.

wordstyle use a Word style name.

numbered use a value of "true" or "false" to specify whether the PSML heading is numbered or not.

prefixed use a value of "true" or "false" to specify whether the PSML heading has a prefix or not.

<xs:element  name="level">
          <xs:complexType>
                     <xs:all>
                             <xs:element  ref="prefix"
                                          minOccurs="0"
                                          maxOccurs="1" />
                             <xs:element  ref="numbered"
                                          minOccurs="0"
                                          maxOccurs="1" />
                             <xs:element  ref="keep-paragraph-with-next"
                                          minOccurs="0"
                                          maxOccurs="1" />
                     </xs:all>
                     <xs:attribute  name="value">
                             <xs:simpleType>
                                     <xs:restriction  base="xs:integer">
                                            <xs:minInclusive  value="1" />
                                            <xs:maxInclusive  value="9" />
                                     </xs:restriction>
                             </xs:simpleType>
                     </xs:attribute>
                     <xs:attribute  name="wordstyle"
                                    type="xs:string" />
                     <xs:attribute  name="numbered"
                                    type="xs:boolean" />
          </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <heading>
        <level value="1" wordstyle="heading 1"/>
        <level value="2" wordstyle="heading 2"/>
        <level value="3" wordstyle="heading 3"/>
        <level value="4" wordstyle="heading 4"/>
        <level value="5" wordstyle="heading 5"/>
        <level value="6" wordstyle="heading 6"/>
        <level value="1" numbered="true" wordstyle="Heading Numbered 1"/>
        <level value="2" numbered="true" wordstyle="Heading Numbered 2"/>
        <level value="3" numbered="true" wordstyle="Heading Numbered 3"/>
        <level value="4" numbered="true" wordstyle="Heading Numbered 4"/>
        <level value="5" numbered="true" wordstyle="Heading Numbered 5"/>
        <level value="6" numbered="true" wordstyle="Heading Numbered 6"/>
      </heading>
      <block>
        <label value="heading1" wordstyle="My"/>
        <label value="heading2" wordstyle="My&quot;Headingx 2"/>
        <label value="heading3" wordstyle="My(Headingx 3"/>
      </block>
    </elements>
  </config>


See use of @value, @numbered and @wordstyle within <level>:

custom-template-headings

 

<prefix>

[Insert description]

select use a value of "true" or "false" to determine whether the content of the PSML @prefix  attribute will be output or not. This would only be done in the context of a Word style that is sympathetic to a prefix being put in front.

separator use tab or space or none to define the character between the prefix and the text that follows it (tab is the default).

<xs:element  name="prefix">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element  ref="fieldcode"
                                             minOccurs="0"
                                             maxOccurs="1" />
                        </xs:sequence>
                        <xs:attribute  name="select"
                                       type="xs:boolean" />
      <xs:attribute  name="separator">
           <xs:simpleType>
                <xs:restriction  base="xs:string">
                      <xs:enumeration  value="tab" />
                      <xs:enumeration  value="space" />
                      <xs:enumeration  value="none" />
                </xs:restriction>
           </xs:simpleType>
      </xs:attribute>
                </xs:complexType>
        </xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <heading>
        <level value="1" wordstyle="heading 1"/>
        <level value="2" wordstyle="heading 2">
          <prefix select="true" separator="space"/>
        </level>
`       <level value="3" wordstyle="heading 3">
          <prefix select="false"/>
        </level>
        <level value="4" wordstyle="heading 4">
          <prefix select="true" separator="none"/>
        </level>
        <level value="5" wordstyle="heading 5">
          <prefix select="false"/>
        </level>
        <level value="6" wordstyle="heading 6">
          <prefix select="true"/>
        </level>

       <level value="1" numbered="true" wordstyle="Heading Numbered 1"/>
       <level value="2" numbered="true" wordstyle="Heading Numbered 2"/>
       <level value="3" numbered="true" wordstyle="Heading Numbered 3"/>
       <level value="4" numbered="true" wordstyle="Heading Numbered 4"/>
       <level value="5" numbered="true" wordstyle="Heading Numbered 5"/>
       <level value="6" numbered="true" wordstyle="Heading Numbered 6"/>
      </heading>
    </elements>
  </config>

See use of:

headings-style-set 

<numbered>

[Insert description]

select use a value of "true" or "false" to determine whether the content of the PSML @numbering attribute will be output or not. This would only be done in the context of a Word style that is sympathetic to a number being put in front.

<xs:element  name="numbered">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element  ref="fieldcode"
                                             minOccurs="0"
                                             maxOccurs="1" />
                        </xs:sequence>
                        <xs:attribute  name="select"
                                       type="xs:boolean" />
                </xs:complexType>
        </xs:element>

Example

See use of:

<para>

Used to define the style for each indent level of a paragraph in PageSeeder. 

<xs:element  name="para">
          <xs:complexType>
                     <xs:sequence>
                             <xs:element  ref="indent"
                                          minOccurs="0"
                                          maxOccurs="unbounded" />
                     </xs:sequence>
          </xs:complexType>
</xs:element>

<indent>

[Insert description]

level use an integer from 1 to 9.

wordstyle use a Word style name.

numbered use a value of "true" or "false" to specify whether the PSML para is numbered or not.

prefixed use a value of "true" or "false" to specify whether the PSML para has a prefix or not.

<xs:element  name="indent">
       <xs:complexType>
                  <xs:sequence>
                          <xs:element  ref="prefix"
                                       minOccurs="0"
                                       maxOccurs="unbounded" />
                          <xs:element  ref="numbered"
                                       minOccurs="0"
                                       maxOccurs="unbounded" />
                          <xs:element  ref="keep-paragraph-with-next"
                                       minOccurs="0"
                                       maxOccurs="1" />
                  </xs:sequence>
            <xs:attribute  name="level">
                    <xs:simpleType>
                             <xs:restriction  base="xs:integer">
                                      <xs:minInclusive  value="0" />
                                      <xs:maxInclusive  value="9" />
                             </xs:restriction>
                    </xs:simpleType>
            </xs:attribute>
            <xs:attribute  name="wordstyle"
                           type="xs:string"
                           default="Body Text" />
            <xs:attribute  name="numbered"
                           type="xs:boolean" />
            <xs:attribute  name="prefixed"
                           type="xs:boolean" />
       </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <para>
        <indent level="0" wordstyle="Body Text"/>
        <indent level="1" wordstyle="List Continue"/>
        <indent level="2" wordstyle="List Continue 2"/>
        <indent level="3" wordstyle="List Continue 3"/>
        <indent level="4" wordstyle="List Continue 4"/>
        <indent level="5" wordstyle="List Continue 5"/>
        <indent level="6" wordstyle="List Continue 6"/>
        <indent level="7" wordstyle="List Continue 7"/>
        <indent level="8" wordstyle="List Continue 8"/>
        <indent level="9" wordstyle="List Continue 9"/>
        
        <indent level="1" prefixed="true" wordstyle="List Manual"/>
        <indent level="2" prefixed="true" wordstyle="List Manual 2">
          <prefix select="true" separator="none"/>
        </indent>
        <indent level="3" prefixed="true" wordstyle="List Manual 3">
          <prefix select="false"/>
        </indent>
        <indent level="4" prefixed="true" wordstyle="List Manual 4">
          <prefix select="true" separator="space"/>
        </indent>
        <indent level="5" prefixed="true" wordstyle="List Manual 5">
          <prefix select="true"/>
        </indent>
        <indent level="6" prefixed="true" wordstyle="List Manual 6"/>
        <indent level="7" prefixed="true" wordstyle="List Manual 7"/>
        <indent level="8" prefixed="true" wordstyle="List Manual 8"/>
        <indent level="9" prefixed="true" wordstyle="List Manual 9"/>

        <indent level="1" numbered="true" wordstyle="List Number"/>
        <indent level="2" numbered="true" wordstyle="List Number 2"/>
        <indent level="3" numbered="true" wordstyle="List Number 3"/>
        <indent level="4" numbered="true" wordstyle="List Number 4"/>
        <indent level="5" numbered="true" wordstyle="List Number 5"/>
        <indent level="6" numbered="true" wordstyle="List Number 6"/>
        <indent level="7" numbered="true" wordstyle="List Number 7"/>
        <indent level="8" numbered="true" wordstyle="List Number 8"/>
        <indent level="9" numbered="true" wordstyle="List Number 9"/>
      </para>
    </elements>
  </config>

See use of:

paragraph-indent-style-set 

<title>

Used to define the Paragraph Style of each section title.

By default title is set to "heading 1". It can be transformed into any value that exists in the word export template.

wordstyle use a Word style name.

<xs:element  name="title">
       <xs:complexType>      
               <xs:attribute  name="wordstyle"
                              type="xs:string" />
       </xs:complexType>
</xs:element>

Example

<nlist>

Contains the list definitions for numbered lists inside of Word.

liststyle use a specific Word list style name.

<xs:element  name="nlist">
          <xs:complexType>
                     <xs:sequence>
                             <xs:element  ref="role"
                                          minOccurs="0"
                                          maxOccurs="unbounded" />
                     </xs:sequence>
            <xs:attribute  name="liststyle"
                           type="xs:string" />
          </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <nlist liststyle="Numbered List"/>
      <list liststyle="Bulleted List"/>
    </elements>
  </config>

See use of:

list-default-with-type-set 

<list>

Contains the list definitions for unnumbered lists inside of Word.

liststyle use a specific Word list style name.

<xs:element  name="list">
             <xs:complexType>
                        <xs:sequence>
                                <xs:element  ref="role"
                                             minOccurs="0"
                                             maxOccurs="unbounded" />
                        </xs:sequence>
      <xs:attribute  name="liststyle"
                     type="xs:string" />
             </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <nlist liststyle="Numbered List"/>
      <list liststyle="Bulleted List"/>
    </elements>
  </config>

See use of:

list-default-with-type-set 

<role>

Differentiates list formats.

value use the desired value from the PSML that you wish to map to a particular @liststyle.

liststyle use a specific Word list style name.

<xs:element  name="role">
             <xs:complexType>
                        <xs:attribute  name="value"
                                       type="xs:string" />
      <xs:attribute  name="liststyle"
                     type="xs:string" />
             </xs:complexType>
</xs:element>

Example

<?xml version="1.0"?>
  <config>
    <elements>
      <nlist liststyle="Numbered List">
        <role value="bulletlist" liststyle="Bulleted List" />
      </nlist>
      <list liststyle="Bulleted List">
        <role value="numberlist" liststyle="Numbered List" />
      </list>
    </elements>
  </config>

See use of:

list-default-with-role-set 

See use of:

custom-template-lists-with-role 

<listpara>

Contains style for a <para> inside a <list> or <nlist> that is not the first <para>. The @value corresponds to the nesting level of the <list> or <nlist>. Requires pso-docx version 0.7.5 or later.

  <xs:element name="listpara">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="level" minOccurs="0" maxOccurs="unbounded" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

Example

    <listpara>
      <level value="1" wordstyle="List Continue" />
      <level value="2" wordstyle="List Continue 2" />
      <level value="3" wordstyle="List Continue 3" />
      <level value="4" wordstyle="List Continue 4" />
      <level value="5" wordstyle="List Continue 5" />
      <level value="6" wordstyle="List Continue 6" />
    </listpara>

 

<xref>

Contains styles for specific types of cross-references. Requires pso-docx version 0.7.4 or later.

  <xs:element name="xref">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="footnote" minOccurs="0" maxOccurs="1" />
        <xs:element ref="endnote" minOccurs="0" maxOccurs="1" />
        <xs:element ref="citation" minOccurs="0" maxOccurs="1" />
        <xs:element ref="citation" minOccurs="0" maxOccurs="unbounded" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

Example


<xref>
  <citation referencestyle="My Citation Reference" />
  <endnote textstyle="My Endnote Text" referencestyle="My Endnote Reference" />
  <footnote textstyle="My Footnote Text" referencestyle="My Footnote Reference" />
  <xrefconfig name="field"
      hyperlinkstyle="My Field Link" referencestyle="My Field Reference" />
  <xrefconfig name="term"
      hyperlinkstyle="My Term Link" />

</xref>

 

<citation>

Contains styles for citations. Requires pso-docx version 0.7.4 or later.

referencestyle the word style for a citation reference, the bibliography text style is always Bibliography (default is the default character style - see <default> above).

  <xs:element name="citation">
    <xs:complexType>
      <xs:attribute name="referencestyle" type="xs:string"/>
    </xs:complexType>
  </xs:element> 

<endnote>

Contains styles for endnotes. Requires pso-docx version 0.7.4 or later.

textstyle the word style for endnote text (default is Endnote Text).

referencestyle the word style for an endnote reference (default is Endnote Reference).

  <xs:element name="endnote">
    <xs:complexType>
      <xs:attribute name="textstyle" type="xs:string"/>
      <xs:attribute name="referencestyle" type="xs:string"/>
    </xs:complexType>
  </xs:element> 

<footnote>

Contains styles for footnotes. Requires pso-docx version 0.7.4 or later.

textstyle the word style for footnote text (default is Footnote Text).

referencestyle the word style for a footnote reference (default is Footnote Reference).

  <xs:element name="footnote">
    <xs:complexType>
      <xs:attribute name="textstyle" type="xs:string"/>
      <xs:attribute name="referencestyle" type="xs:string"/>
    </xs:complexType>
  </xs:element> 

<xrefconfig>

Contains styles for XRefs with different configs. Requires pso-docx version 0.7.6 or later.

name the @config attribute on the XRef.

hyperlinkstyle the word style for external links (default is from <xrefs> element above).

referencestyle the word style for internal links (default is from <xrefs> element above).

  <xs:element name="xrefconfig">
    <xs:complexType>
      <xs:attribute name="name" type="xs:string"/> 
      <xs:attribute name="hyperlinkstyle" type="xs:string"/>
      <xs:attribute name="referencestyle" type="xs:string"/>
    </xs:complexType>
  </xs:element> 

Created on , last edited on