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

RE: <xsl:choose> <xsl:when> and graphics salad!

Subject: RE: <xsl:choose> <xsl:when> and graphics salad!
From: "Medina, Edward" <emedina@xxxxxxx>
Date: Wed, 5 Apr 2000 08:45:16 -0400
xsl when contains
>> I grant you that there might be flaw with my 
>> test="contains(@attribute1,'value1')" 
>but it's not possible to say without seeing an input example.
>
>David

Ok Dave, but I warn you its lengthy.

<xsl:template match="image">
<xsl:choose>
	<xsl:when test="contains (@align,'banner')">

	</xsl:when>
	<xsl:when test="contains (@align,'right')">
		<xsl:if test="contains(/text/@text.role,'note')">
		<SPAN style="
		font-weight: bold;
		font-size: medium">
			 (<xsl:value-of select="//para/@secur.classif"/>)
		</SPAN>
		<SPAN style="
		font-size:small;
		font-weight:normal;
		margin-left:3pc;
		margin-right:3pc;
		width:100%">
		<xsl:value-of select="text"/>
			<SPAN style="
			font-size: 10pt;
			font-style: normal;
			font-weight: bold;
			horizontal-align: left;
			margin-left: 70%;
			width: 300;
			height: 100">
			<p>
			<IMG >
			<xsl:attribute name="SRC" >
			<xsl:value-of select="@reference"/>
			</xsl:attribute>
			</IMG>
			</p>
			<xsl:value-of select="illust"/>
			<xsl:apply-templates />
			<p></p>
			<br></br>
			</SPAN>
		</SPAN>
		</xsl:if>
	 </xsl:when>
	<xsl:when test="contains (@align,'bottom')">
	<SPAN style="
	font-size: 10pt;
	font-style: normal;
	font-weight: bold;
	vertical-align: center;
	margin-right: 3pc;
	margin-left: 3pc;
	width: 300;
	height: 100">
	<p>
	<IMG >
	<xsl:attribute name="SRC" >
	<xsl:value-of select="@reference"/>
	</xsl:attribute>
	</IMG>
	</p>
	<xsl:value-of select="illust"/>
	<xsl:apply-templates />
	<p></p>
	<br></br>
	</SPAN>
	</xsl:when>
	<xsl:otherwise>

	</xsl:otherwise>
</xsl:choose>
</xsl:template>

Oh! you actually read it?  Told you it was lengthy.

:-)

Eddy


 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.