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

RE: More XSL Discussion

Subject: RE: More XSL Discussion
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Tue, 24 Feb 1998 13:02:20 -0800
the single and peculiar life
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


Current Thread

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.