<xsl:choose> <xsl:when> problem
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="//email@example.com"/>) <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="//firstname.lastname@example.org"/>) </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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format