473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Format javacode using xsl/xslt problem

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
Jul 20 '05 #1
0 1306

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: chris | last post by:
hi, i am looking for a way to structure the text in XML comments to produce a XHTML doc format for the XMLs (in this case XSLT). so is was thinking about using a wiki like text format. e.g....
1
by: Luca | last post by:
Hi, have a problem with xslt posted below, this stylesheet format a table like Yahoo directory, but I need exclude (from xslt) all categ element without sublink element (in this case category...
10
by: .Net_Newbie | last post by:
Hello, gurus I have a problem about format XML I use ms data access building block to get a data set from stored procedure. the dataset's save xml give me data with the elements. Is there any...
1
by: Nick | last post by:
Well, the project I am working on has now come to a screeching halt! I have been developing a program that heavily utilizes ADO.NET record sets. To generate reports, I convert the recordset to XML,...
0
by: Brendan Reynolds | last post by:
I have a web service that takes the XML representation of a dataset and uses XSLT to transform it to the format required to open a disconnected ADODB recordset on the XML, and returns the...
4
by: ziondreams | last post by:
I'm currently working on a system that will allow our 175+ clients that store their data on our databases to export the data to their systems (via webservice) and also call other web services to...
0
by: jeanuta | last post by:
boolean retval = false; StringBuffer sql = new StringBuffer(); ResultSet rst = null; conn.setAutoCommit(false); sql.append("select assign_customers() "); Statement st =...
7
by: Dag Sunde | last post by:
I want to use the format-number function to output a number with a specific number of decimals, based on the content of a node... Is there any smart way to generate differnet strings based on a...
6
by: nataria | last post by:
Hi, I have a problem in transforming date format. Originally I transform an access database data into XML then transform the XML doc into another XML with different strucutre. The original...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.