Hi Stefan (and Sebastian)
That's kinda the info I was looking for, thanks.
However - if you would entertain me on this one - I'm looking for something quite specific, and not sure if it's possible... Here goes...
I have a bunch of columns / fields and I want them inserted into a layout, like so:
<div class="wrapper">
<h2>[Person's Title]</h2>
<div class="foated-left">
<h3>[Person's Name]</h3>
</div>
<div class="floated-right">
<p>[Email]
<br/>[Telephone]
<br/>[Fax]</p>
</div>
</div>
Pretty straight forward. I've already gotten this one right - using the XSLT generator / wizard in the module. But, you'll notice that the contact details display in a <p> and each item is on its own line (done so by using <br/>). If there is no telephone number, I don't want the <p> to have a hanging <br/> at the end... Accordingly, I'd like to implement the following:
I don't know the XSL for this, but I'll try articulate...
<xsl:choose>
<xsl:when test="udt:columnname!='[Telehone]'">
<br/><xsl:value-of select="udt:columnname" />
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
Where "<xsl:otherwise></xsl:otherwise>" would return nothing. i.e. no <br/>, no text, nothing.
Can this be done..?
Also, another thing I have noticed, is that when you try to insert a clearing div, like so: <div class="clear"></div> the XSL generator automatically inserts a non-breaking-space " ". If I remove this, the layout breaks or simply doesn't work... What's the way around this..?
Thank you in advance.