This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xml->xsl->pdf
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
> > '&' 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
<TR>
<TD>a & b</TD>
<TD>c & d</TD>
</TR>
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
easier.
--
Joern Clausen joern@TechFak.Uni-Bielefeld.DE
Faculty of Technology http://www.TechFak.Uni-Bielefeld.DE/~joern/
Bielefeld University, Germany +49 (0)521/106-2905
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list