From: "Johannes Hüsing" <tmi0m0@uni-essen.de>
Subject: Re: ConTeXt + TEI (an SGML derivate)
Date: Thu, 27 Apr 2000 21:57:40 +0200 [thread overview]
Message-ID: <20000427215740.49507@uni-essen.de> (raw)
In-Reply-To: <39088841.288A2D2@gmx.de>; from Tobias Burnus on Thu, Apr 27, 2000 at 08:34:41PM +0200
On Thu 2000-04-27 (20:34), Tobias Burnus wrote:
> Hallo Hans, hallo Johannes, hi all,
Hallo Tobias,
>
> > > One way of doing it is to use a simple xslt style sheet that maps elements
> > > onto context commands. In most cases one can ignore attributes, since they
> > > are handled at the style level. Things like:
> > > <chapter>whatever</chapter>
> > >
> > > are mapped by
> > >
> > > <xsl:template match="chapter">
> > > \chapter{<xsl:apply-templates/>}
> > > </xsl:template>
> > > \chapter{whatever}
> This doesn't seem to work here using TEI (SGML, tei.dtd) and with Java
> XT (PR-xslt-19991008) and a selfwritten incomplete stylesheet (XSL).
>
> I get something like
> \chapter{
> whatever
> }
Is this parsed any differently by ConTeXt than \chapter{whatever} or are
you concerned about a messy looking ConTeXt file?
Disclaimer: I know almost nothing about the SGML/XML complex. I am interested
theoretically, hence my first reply may have sounded more knowledgable than
I actually am.
I am quite disappointed with the fact that the Linuxdoc project is discontinued
and that the javatex package is not lavishly documented (by what I have
found so far), so if ConTeXt gained ground in this territory this would
sound like a killer app to me.
Back to your problem: If the Java tool causes unwanted linefeeds, an
obvious workaraound would be inserting
An obvious workaround would be to set up style annotations like:
<xsl:template match="chapter">
\chapter{%delete trailing linefeed<xsl:apply-templates/>%delete preceding linefeed}
</xsl:template>
and run the result through a filter which clears these comments along with
the linefeeds.
Groetjes
Johannes
next prev parent reply other threads:[~2000-04-27 19:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-24 14:00 Tobias Burnus
2000-04-25 14:09 ` Johannes Hüsing
2000-04-27 9:29 ` Hans Hagen
2000-04-27 14:47 ` Johannes Hüsing
2000-04-27 18:34 ` Tobias Burnus
2000-04-27 19:57 ` Johannes Hüsing [this message]
2000-04-27 21:34 ` Hans Hagen
2000-04-27 21:25 ` Hans Hagen
2000-04-28 12:41 ` Ed L Cashin
2000-04-27 21:28 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20000427215740.49507@uni-essen.de \
--to=tmi0m0@uni-essen.de \
--cc=johannes.huesing@uni-essen.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).