ArticleXml

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:01

Description

Outputs the justification XML of an article, i.e. the XML generated by the justification engine mapping the styles to XML tags (GET).

Available since 1.6.

Parameters

Id

integer for Database id of the article.

Region

string for path (<title name>:<region name>) or database id of the target region to use for the justification and XML rendering. If not specified or 0 the system generates the XML for all regions.

Typography

string for mame or database id of the typography (justification scope) to use to assign default formats to the texts that do not have one.

DefaultTag

string for default tag to use for paragraph whose style does not match any schema XML element.

RemCodes

comma-separated database ids for notes mode codes to skip when generating the XML.

Html

Use HTML output.

Encoding

Character encoding (e.g. utf-8, iso-8859-1) to use for the returned XML.

Example

http://main.teradp.com/gn4/edo.ashx?cmd=articleXml&id=1659427&Typography=default&html=true

If text contains HTML tags, it puts them into a CDATA (they cannot reside directly in XML as the closing tag would be considered as missing):

<article title="" summary="" priority="" authors="" instructions="" credit="" orgSource="" location="" city="" state="" country="" countryCode="" notes="">

  <body title="" summary="" notes="" sectionColor="" sectionHead="">

    <p xml:space="preserve">

      <![CDATA[ <pippo>test text ]]>

    </p>

  </body>

</article>

 

Note

Character styles are rendered in the XML only if they match an element in the schema – otherwise to render them you need to declare them as hidden style, and not text styles (as >em<, >en< and >thin<)

See also

convertMarkup XSLT extension