GN4 features an editorial server command that generates the 'justification XML' of an article - i.e. the XML generated mapping paragraph and character styles to their corresponding XML elements (GN3-style). The command:
../edo.ashx?cmd=articlexml&id=5875& region=Demo:Web&typography=Default
outputs the XML of the article with id 5875 for the 'Web' region in the 'Demo' title using the typography (justification scope) 'Default'.
The typography is required, but it is really used only to select default formats to use if the article's text to not have formats assigned for the specified region.
The region is optional, if not specified the system justifies the article using the first available geometry for each text and generates the XML for ALL regions.
It is possible to specify both region and typography also directly with a numeric database id (e.g. 'region=1667')
Use
../edo.ashx?cmd=help&name=articlexml&x=docbook
to get a list of all the possible options of the 'articlexml' command.
Known problems
•The formats are cached and refreshed only on login - so when modifying a format is necessary to logout and login again to see the changes.
See also