Re: [xsl] How to achieve java format on generated code using xslt

Subject: Re: [xsl] How to achieve java format on generated code using xslt
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 25 Sep 2003 15:54:19 +0100
> How can I make sure that they begin under Exception and in a straight
> line?
so you want each one to be prefixed by a newline asn (say) four spaces,
so that is
<xsl:for-each select="raisesException">
  <xsl:text>&#10;    </xsl:text>
  <xsl:value-of select="@name"/>
  <xsl:if test="not(position()=last())">,</xsl:if>
</xsl:for-each>


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread