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: "Robert Ogden" <Robert.Ogden@xxxxxxxx>
Date: Thu, 25 Sep 2003 09:11:13 -0500

My simple suggestion would be to use a table to output the

Then you can line it up.

Robert Ogden
IETM Developer
Navy Programs
(763) 572-7121

>>> mikael.petterson@xxxxxxxxxxxx 09/25/03 08:58AM >>>

I am using xsl/xslt to generate java code. The problem I have is to
make the output more readable.
Here is part of the code that I generate:

public void actionTcp (Coordinator c) throws Exception,

I would rather see something like:

public void actionStartTpcInsertion(Coordinator c) throws Exception,

( If it does not show up in the mail, I mean all Execptions below each
other in a straight line.)

How can I make sure that they begin under Exception and in a straight

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:for-each select="raisesException"><xsl:value-of
     <xsl:if test="not(position()=last())">,<xsl:text>
     </xsl:text> </xsl:if></xsl:for-each>;

All hints are greatly appreciated!! Does anyone of you ( somewhere out
there......) have any experience with code generation? I am willing to
share my experience.



 XSL-List info and archive: 

**********CONFIDENTIALITY NOTICE**********
The information contained in this e-mail may be confidential and/or 
privileged and is intended for the sole use of the individual or 
organization named above.  If you are not the intended recipient or an 
authorized representative of the intended recipient, any review, copying
or distribution of this e-mail and its attachments, if any, is prohibited.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete this message from your system.

 XSL-List info and archive:

Current Thread