Format javacode using xsl/xslt problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Petterson Mikael

    Format javacode using xsl/xslt problem

    Hi,

    This is what I want:

    public void actionStartTpcI nsertion(Coordi nator c) throws
    MoAccessExcepti on,

    InternalErrorEx ception,

    MoDisabledExcep tion,

    AlreadyActiveEx ception;

    This is what I get:

    public void actionStartTpcI nsertion(Coordi nator c) throws
    MoAccessExcepti on,
    InternalErrorEx ception,
    MoDisabledExcep tion,
    AlreadyActiveEx ception;


    This is the xsl that I am using:

    <xsl:when test="returnTyp e/void">
    public void action<xsl:call-template name="CapFirstL etterOfAttr">
    <xsl:with-param name="x"
    select="@name"/></xsl:call-template>(Coord inator c) throws
    MoAccessExcepti on<xsl:if test="raisesExc eption">
    <xsl:text>,</xsl:text></xsl:if><xsl:tex t>
    </xsl:text><xsl:f or-each select="raisesE xception"><xsl: value-of
    select="@name"/>
    <xsl:if test="not(posit ion()=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
Working...