Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 30th, 2005, 02:29 AM
Registered User
 
Join Date: Nov 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default help me please with xslt

input:
<div>
    <tag1/>
</div>
<div>
    <tag2/>
</div>
<div>
    <tag3/>
</div>
<othertag/>
<div>
    <tag4/>
</div>

output must be:
<table>
    <tr>
        <td>
            <tag1/>
        </td>
    </tr>
    <tr>
        <td>
            <tag2/>
        </td>
    </tr>
    <tr>
        <td>
            <tag3/>
        </td>
    </tr>
</table>
<othertag/>
</table>
    <tr>
        <td>
            <tag4/>
        </td>
    </tr>
</table>

how i can do it?

P.S. sorry for my english.

 
Old November 30th, 2005, 05:24 AM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

do you have no idea on how to code xslt? you should first read on the tutorial on it. http://www.w3schools.com then if you encounter any problem, that is when you post questions. =D

 
Old November 30th, 2005, 06:12 AM
Registered User
 
Join Date: Nov 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

2miki: i do not understand how i can create TWO tables DEVIDED by <othertag/>

 
Old December 1st, 2005, 05:00 AM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

is this the whole xml file? because you could just do it hard-coded.

 
Old December 1st, 2005, 08:01 AM
Authorized User
 
Join Date: Apr 2005
Location: Chennai, Tamil Nazdu, India.
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

give the specifice XML file and corresponding requirements

 
Old December 5th, 2005, 05:40 AM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

or you could use the substring-after or the count method.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating XSLT with XSLT stonis XSLT 3 April 1st, 2008 08:17 PM
General XSLT Questions in the XSLT Forum jminatel BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 0 March 31st, 2008 07:50 PM
Can XSLT read DTD/schema and Generate XSLT.. ROCXY XSLT 1 November 6th, 2006 09:39 AM
dynamic xslt -> xslt creation namespace problem jkmyoung XSLT 2 July 15th, 2006 12:42 AM
xslt with an xslt outputfile alleycat XSLT 4 February 20th, 2006 09:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.