Subject: Re: More XSL Discussion From: "Michael Kay" <M.H.Kay@xxxxxxxxxxxxx> Date: Tue, 24 Feb 1998 18:16:57 -0000 |
>| - 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: More XSL Discussion, Brad McCormick, Ed.D | Thread | Re: More XSL Discussion, Norman Walsh |
RE: XSL Discussion, Fabio Vitali | Date | Re: More XSL Discussion, Norman Walsh |
Month |