Subject: RE: More XSL Discussion
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Tue, 24 Feb 1998 13:02:20 -0800
|
This problem will be further explored on the XSL WG. Some of us also feel
the need to solve this ? without generating unbalanced tags if possible.
Jonathan Marsh
phone 425.703.4591
<mailto:jmarsh@xxxxxxxxxxxxx> jmarsh@xxxxxxxxxxxxx
-----Original Message-----
From: Michael Kay [mailto:M.H.Kay@xxxxxxxxxxxxx]
Sent: Tuesday, February 24, 1998 10:17 AM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: More XSL Discussion
>| - it imposes a requirement that the start and end tags be
balanced. This
is
>| extremely restrictive: for example if you have two
patterns, one for the
>| first element of a group and the other for the last
element in a group,
you
>| cannot generate a opening <UL> tag in the first and a
closing </UL> in
the
>| second.
>
>I'm having a hard time constructing an example where I'd
want to
>do this.
I can't think of a <UL> example off my head, but the
following example is
real. The XML is:
<SPEECH>
<SPEAKER>ROSENCRANTZ</SPEAKER>
<SPEAKER>GUILDENSTERN</SPEAKER>
<LINE>The single and peculiar life is bound,</LINE>
<LINE>With all the strength and armour of the mind.</LINE>
<STAGEDIR>Exeunt</STAGEDIR>
</SPEECH>
and I want to render it in HTML as
<TABLE><TR>
<TD>ROSENCRANTZ<BR>GUILDENSTERN</TD>
<TD>The single and peculiar life is bound<BR>
With all the strength and armour of the mind.<BR>
<I>Exeunt</I></TD>
</TR></TABLE>
how do I do that in XSL? I can do it easily, of course, by
generating
unbalanced tags in CDATA, but I'm told that's cheating.
And don't tell me to change the XML, I didn't design it!
Mike Kay
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|