This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
<xsl:choose> <xsl:when> problem
- To: xsl-list at mulberrytech dot com
- Subject: <xsl:choose> <xsl:when> problem
- From: "Medina, Edward" <emedina at btg dot com>
- Date: Tue, 4 Apr 2000 07:59:04 -0400
- Reply-To: xsl-list at mulberrytech dot com
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