Subject: <xsl:choose> <xsl:when> problem From: "Medina, Edward" <emedina@xxxxxxx> Date: Tue, 4 Apr 2000 07:59:04 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Is it time for an XSLT-list?, Selva, Francis | Thread | Re: <xsl:choose> <xsl:when> problem, David Carlisle |
RE: string-length(whatever) equival, Medina, Edward | Date | <xsl:choose> I got it finally, Medina, Edward |
Month |