Re: [xsl] xml->xsl->pdf

Subject: Re: [xsl] xml->xsl->pdf
From: Joern Clausen <joern@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Jun 2001 13:10:44 +0200
On Thu, Jun 07, 2001 at 10:50:28AM +0100, David Carlisle wrote:
> > How do you translate certain things? E.g., what about entities like
> > '&amp;' that should appear as '\&', or escaping bare $-signs?
> You could to that with a string-replace template (many variants of which
> have been posted on this list) but really there is no need.
> The "special" characters like & \ % are not really special to TeX, they
> are only special by virtue of the default catcode settings, and 
> suitable for hand authored TeX. For machine generated TeX you may as
> well just make all of these ordinary characters.

OK, let's say LaTeX instead of TeX, as Peter's original post also
indicated. I don't really want to write low level TeX, I'd like to emit
a LaTeX document, so I can use the available document classes. I guess
that applies to a lot of people who want to transform XML into something
printable via LaTeX without learning XSL-FO or plainTeX. I think there
was an example in "The LaTeX Web Companion"...

So, from

   <TD>a &amp; b</TD>
   <TD>c &amp; d</TD>

I'd like to generate

 a \& b & c\& d \\

inside a tabular environment. String replacement is a way to go, and
with appropriate mappings in a repository like XSLTSL for example a good
one. I just thought that an output method would make things a little bit

 Joern Clausen                                joern@xxxxxxxxxxxxxxxxxxxxxxxx
 Faculty of Technology           http://www.TechFak.Uni-Bielefeld.DE/~joern/
 Bielefeld University, Germany                           +49 (0)521/106-2905

 XSL-List info and archive:

Current Thread