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

Re: xml->xsl->pdf

Subject: Re: xml->xsl->pdf
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Thu, 24 May 2001 15:25:43 +0100
peter flynn latex
On Wed, 23 May 2001, jon wrote:
> hi,
> 
> i tried searching for this on the mulberry site but it looks like the search
> engine is down. i'd like to know if there is a way to convert xml to pdf
> format using xslt. anybody have experience doing this type of thing and if
> so, can you show some examples or point me to a web site that has some?

I do this when I need better quality formatting or a higher
level or automation than current FO applications provide. I
transform XML to LaTeX using a text-mode XSLT file, and then run
pdfLaTeX on the output. Works perfectly, except you need to take
care in the XSLT file to exclude some of the extra spacing, even
with white-space squished. But you do need to know LaTeX to do
this. It's not hard but learning an extra language is sometimes
one layer too much for some circumstances. Personally I think
the results justify it.

What I'd _like_ is a latex-mode for XSLT, which would accept 
literal-result templates in XML syntax and emit LaTeX source, eg

<xsl:template match="div2/head">
  <subsection/>
    <xsl:apply-templates/>
</xsl:template>

<xsl:template match="ill">
  <figure>
    <xsl:apply-templates/>
  </figure>
</xsl:template>

would generate

\subsection{foo}
\begin{figure}
more foo
\end{figure}

I've been meaning to learn Java properly: maybe someone can point
me at the existing modules I need to dissect to see how html
and text modes work, this would keep me quiet for the summer
:-)

///Peter
  


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


Current Thread
  • Re: xml->xsl->pdf, (continued)
    • cutlass - Wed, 23 May 2001 14:31:36 -0400 (EDT)
      • Max Dunn - Wed, 23 May 2001 15:12:23 -0400 (EDT)
    • Chris Bayes - Wed, 23 May 2001 14:44:33 -0400 (EDT)
    • Peter Flynn - Thu, 24 May 2001 16:23:58 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.