Subject: RE: [xsl] How to achieve java format on generated code using xslt From: "Mikael Petterson (KI/EAB)" <mikael.petterson@xxxxxxxxxxxx> Date: Thu, 25 Sep 2003 16:22:27 +0200 |
Hi Robert, How do you mean with making a table? In xsl? Is there a command for that? Regards, //Mikael -----Original Message----- From: Robert Ogden [mailto:Robert.Ogden@xxxxxxxx] Sent: den 25 september 2003 16:11 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] How to achieve java format on generated code using xslt Mikael My simple suggestion would be to use a table to output the information. Then you can line it up. Robert Ogden IETM Developer Navy Programs (763) 572-7121 >>> mikael.petterson@xxxxxxxxxxxx 09/25/03 08:58AM >>> Hi, 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, HwException, SwException, FailoverException; I would rather see something like: public void actionStartTpcInsertion(Coordinator c) throws Exception, HwException, SwException, FailoverException; ( 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 line? 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> 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. Regards, //Mikael XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list **********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: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to achieve java format on, Mikael Petterson (KI | Thread | RE: [xsl] How to achieve java forma, Passin, Tom |
RE: [xsl] xmlns and java, Nancy Pate | Date | RE: [xsl] splitting multiple occurr, Passin, Tom |
Month |