Format javacode using xsl/xslt problem

Petterson Mikael

Usenet Archive
Joined
Nov 27, 2002
Messages
89
Reaction score
0
Hi,

This is what I want:

public void actionStartTpcInsertion(Coordinator c) throws MoAccessException,

InternalErrorException,

MoDisabledException,

AlreadyActiveException;

This is what I get:

public void actionStartTpcInsertion(Coordinator c) throws MoAccessException, InternalErrorException, MoDisabledException, AlreadyActiveException;

This is the xsl that I am using:

<xsl:when test="returnType/void">
public void action<xsl:call-template name="CapFirstLetterOfAttr"> <xsl:with-param name="x" select="@name"/></xsl:call-template>(Coordinator c) throws MoAccessException<xsl:if test="raisesException"> <xsl:text>,</xsl:text></xsl:if><xsl:text> </xsl:text><xsl:for-each select="raisesException"><xsl:value-of select="@name"/> <xsl:if test="not(position=last)">,<xsl:text> </xsl:text> </xsl:if></xsl:for-each>; </xsl:when>

Any hints on how I can achieve this?

I am also intrested in having a discussion on how to best generate code. I would like to share experience with others.

Regards,

//Mikael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top