Help coderanch get a
new server
by contributing to the fundraiser

vishme vish

Greenhorn
+ Follow
since Jun 07, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vishme vish

Hi Everyone,

I am generating a pdf document from the xml. The xml is dynamically generated and i am using this xml tree to generate pdf documents using xslt and xpath.

Here is my xml document.


And here is my XSL file.

I am sending the code from the flow region..




I am able to generate the pdf document, but if i am not using <xsl:for-each tag and using the xpath expressions to get the values of children from the TOTALS element, the out put is coming in the same line ie, instead of appearing in the different columns, the values are coming in the same column.
here is my code where i am using xpath expressions instead of xsl:for-each

Can any one please explain me how to get the output in different columns instead of all the output printing in the same column, without using <xsl:for-each>

Sorry for the long post.
Thanks in Advance.
Hi Everyone,

I have an xml file. and i need to generate the html page out of it. I am using XSLT to achieve this. But When ever the page is rendered the user should get the current date. Can any one please explain how Can i achieve this using XSLT.

Thanks in Advance
Thank you all for the replies.

I am not able to understand why i need to refresh a lot.
I am executing my code through WSAD. The URL is
http://localhost:9080/PDFOutput/TestingServlet
Here is my Servlet code, that is used to generate the pdf document.
Here i am passing xml as String.



And here is my details.xsl file.


Any help would be greatly appreciated

Thanks in Advance.
Hi Everyone,

I am generating a pdf document from xml using XSL-FO. When i execute my code, i am able to get the output, but i need to click on the refresh button many times.

I don't understand why this is happening. Can any one Pl explain me what might be the problem

Thanks in Advance.
Hi Everyone,

I am preparing for IBM UML Exam, and i have got UML Distilled book by Martin Fowler. I have completed SCJP, SCWCD, SCBCD certifications.

Will this book be sufficient, to pass the exam

Any Suggestions would be appreciated

Thanks in Advance
Thanks Dev for the reply.

I could able to get the desired output.

Thanks
Vishme
Hi Everyone,
I am new to XML and XSLT and I am learing them.

If for a particular column we have sub rows then how can we get to show them in an html page

For example, consider these four columns..

name age gender children


in my xml i have tags as
<Family>
<name>Suresh</name>
<age>30</age>
<gender>Male</gender>
<children>
<name> Sruthi</name>
<age> 8</age>
<gender> Female</gender>
</children>
<children>
<name>Sraavya</name>
<age>4 </age>
<gender> Female</gender>
</children>
<children>
<name>Sravanthi</name>
<age>2 </age>
<gender>Female </gender>
</children>
</Family>
<Family>
<name>Nitin</name>
<age>38</age>
<gender>Male</gender>
<children>
<name> Shanthi</name>
<age> 15</age>
<gender> Female</gender>
</children>
<children>
<name>Sheetal</name>
<age>12 </age>
<gender> Female</gender>
</children>
<children>
<name>Vidya</name>
<age>9</age>
<gender>Female </gender>
</children>
<children>
<name>kaavya</name>
<age>6 </age>
<gender> Female</gender>
</children>
<children>
<name>Neeta</name>
<age>3</age>
<gender>Female </gender>
</children>
</Family>

The output in the html file after formatting in the xsl file Should be as

name age gender children

Suresh 30 Male Sruthi
Sraavya
Sravanthi

Nitin 38 Male shanthi
sheetal
vidya
kaavya
Neeta
Please note that the children names appear one after the other in the next line below the children column

And my xsl file is as follows:

<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<table>
<xsl:for-each select="details/family">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="age"/></td>
<td><xsl:value-of select="gender"/></td>
<xsl:for-each select="children">
<td><xsl:value-of select="name"/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

When i am doing it, i am getting the output as,

name age gender children

Suresh 30 Male sruthi sraavya Sravanthi
Nitin 38 Male shanthi sheetal vidya kaavya Neeta

Here i am getting the children names in the same line.

Can anyone Pl explain how to get the desired output

Thanks in Advance.
[ June 07, 2005: Message edited by: vishme vish ]