[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO to Pagemaker

Subject: Re: XSL-FO to Pagemaker
From: Mike Haarman <mhaarma@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 1 Nov 2001 10:55:04 -0600 (CST)
pagemaker xml
Well, without specific reference to the Pagemaker file format (syntax
issues, protected chars) here is how I get XML into Quark Xpress Tags.

You won't be needing FO, what you are doing is a syntactic translation and
possible structural modification.  You will want to specify the text
output method in your stylesheet.  Your templates will return the targeted
strings wrapped with your formatting macro calls.  You would do well to
have specific and well-defined styles.  It is quite straightforward, here
is a simple example:

<xsl:stylesheet version="1.0"

<xsl:output method="text"/>

<xsl:template match="minor/head">
	<xsl:text>@SOI-Stock Category:</xsl:text>
	<xsl:value-of select="."/>

<xsl:template match="security">
	<xsl:text>@SOI-Stock (.5 rule below):	</xsl:text>
	<xsl:apply-templates select="amount"/>
	<xsl:call-template name="security-data"/>

<xsl:template name="security-data">
	<xsl:text>	</xsl:text><xsl:apply-templates select="name"/>
	<xsl:text>	</xsl:text><xsl:apply-templates select="value"/>

<xsl:template match"total|other|net">
	<xsl:text>@SOI-Stock (1pt rule below):	</xsl:text>
	<xsl:apply-templates select="description"/>
	<xsl:text>			</xsl:text>
	<xsl:apply-templates select="value"/>

<xsl:template match="endnotes">
	<xsl:value-of select="text()"/>


The tabs inside xsl:text elements are significant formatting instructions.
Xpress Tags uses tabs to delimit table cells (evil!).  Obviously, @[name]:
is the Xpress Tags syntax for paragraph styles.

The result is imported as an Xpress tagged file into Quark.  Provided
styles corresponding to [name] are defined, the text flows in fully

YMMV, but there must be similar facilities for Pagemaker.


On Wed, 31 Oct 2001, Wayne Davis wrote:

> Hello,
> Does anyone here have any knowledge of a way to transform XML to Adobe
> Pagemaker format?
> Is there a commercially available tool on the market?
> Any info or advice on how to proceed would be much appreciated.
> Wayne Davis
> wayne@xxxxxxxxxxxx
> www.quietech.com
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Mike Haarman -- mhaarma@xxxxxxxxxxxxxx
College of Liberal Arts   University of Minnesota, Minneapolis, West Bank

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.