Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Format javacode using xsl/xslt problem

Reply
Thread Tools

Format javacode using xsl/xslt problem

 
 
Petterson Mikael
Guest
Posts: n/a
 
      09-25-2003
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: DBMS versus XML APIs (was "any (preferably open source) staticanalysis tool or methodologies/studies to translate ANSI [C|C++] or javacode to XML?") Joe Kesselman XML 0 09-27-2011 12:52 PM
Want help on how we convert output to tabular format Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format. sharan XML 1 10-26-2007 01:20 PM
Can i Run linux command with redirection by JavaCode(df -h > text.txt) Mohit Mehral Java 10 03-25-2006 01:33 AM
Why i got WronLengthOfStringException in javacode Mohit Mehral Java 4 03-23-2006 05:06 PM
NTFS quick format and normal format Guan Foo Wah MCSE 2 05-08-2004 11:35 PM



Advertisments