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

<xsl:choose> <xsl:when> problem

Subject: <xsl:choose> <xsl:when> problem
From: "Medina, Edward" <emedina@xxxxxxx>
Date: Tue, 4 Apr 2000 07:59:04 -0400
xsl choose xsl when
To anyone who could answer this question,
although David I suspect you may be able to answer this one for me.

My problem is that I'm creating a document that is capturing metadata and
placing it 
in front of the text, but when I use the xsl:choose/when xsl elements, it
places the
text on the next line from the metadata when I want them to be in the same
line.
Why is it doing this?  I don't understand, I've also been looking at this
code for 
two solid days, and maybe I should tackle something else and come back to
it.

Any help woudl be appreciated.  
Thanks

Eddy


Here is a part of my xsl:

Whole bunch of xsl ommited.....

<xsl:template match="text">
	<xsl:choose>
		<xsl:when test="contains (@align,'right')">
			<SPAN style="
			width=100%;
			 font-weight: bold;
			font-size: medium">
			 (<xsl:value-of select="//para/@secur.classif"/>)
				<SPAN style="
				font-size:small;
				font-weight:normal;
				margin-left:3pc;
				margin-right:3pc">
				<xsl:value-of select="."/>
				<xsl:apply-templates />
					<SPAN style="
				 	font-size: 10pt;
				 	font-style: normal;
				 	font-weight: bold;
				 	horizontal-align: left;
				 	margin-left: 50%;
				 	width: 300;
				 	height: 100">

						<IMG >
						<xsl:attribute name="SRC" >
						<xsl:value-of
select="@reference"/>
						</xsl:attribute>
						</IMG>
					<xsl:value-of select="illust"/>
					</SPAN>
				</SPAN>
			</SPAN>
	            </xsl:when>

		<xsl:otherwise>
			<SPAN style="
				width=100%;
				 font-weight: bold;
				font-size: medium">
				 (<xsl:value-of
select="//para/@secur.classif"/>)
			</SPAN>
		<xsl:value-of select="."/>
		<xsl:apply-templates />
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

Whole bunch more of xsl ommited.....

P.S. I've moved the width, changed the width, placed the value-of  and
apply-templates
inside the SPAN's outside.  Everytime I think I have the answer, I realize
that I don't


 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.