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

RE: Forcing a new line for images

Subject: RE: Forcing a new line for images
From: Todd Willis <Todd.Willis@xxxxxxxxxxxxxxxx>
Date: Thu, 21 Sep 2000 09:40:27 -0400
todd willis
Fantastic!  Thank you John, Paul and Chris.

Todd Willis

-----Original Message-----
From: John E. Simpson [mailto:simpson@xxxxxxxxxxx]
Sent: Wednesday, September 20, 2000 5:01 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: Forcing a new line for images

At 02:37 PM 09/20/2000 -0400, Todd Willis wrote:
>I have a large collection of articles that have multiple images. A vendor
>created a "basic" style sheet that formats the images as follows:
>
><xsl:template match="picture">
>   <IMG ALIGN="left" vspace="2" hspace="8"><xsl:attribute
>name="SRC">images/<xsl:value-of select="@href" /></xsl:attribute></IMG>
></xsl:template>
>
>Everything works fine unless the text associated with an image isn't long
>enough to push the successive image "down" the page far enough. So the HTML
>output produces a "stair stepping" of images and text.
>
>I need to be able to change the style sheet to force a new line for each
>image but being a "newbie," I haven't cracked the code.

Not exactly an XSLT solution, but consider putting an empty <br
clear="left" /> or <br clear="right /> element into the result tree after
the "text associated with an image" (which your template above doesn't
show) or before the <IMG> element's start tag.

==========================================================
John E. Simpson               | "If you were going to
http://www.flixml.org         | shoot a mime, would you use
XML Q&A: http://www.xml.com   | a silencer?" (Steven Wright)


 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.