Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
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 July 24th, 2014, 11:11 AM
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default CALS transformation based on col name

Hi,
I have the below CALS table markup. This needs to be transformed to html table markup. I have an issue to create a <td> based on colname. Need a xslt transformation to do this.

In the below markup,
1. colname associated with entry is col3 and hence the <td> should be aligning to column number 3 though there is no entries for column1 and 2
<row>
<entry align="right" colname="col3">
<emph typestyle="bf">Para no</emph>
</entry>
</row>

2. Similar rule is applicable for below data also.
<row>
<entry align="left" colname="col2">Allan</entry>
<entry align="right" colname="col3">1</entry>
</row>

<table frame="none">
<tgroup cols="4">
<colspec colname="col1" colnum="1" colwidth="5*"/>
<colspec align="left" colname="col2" colnum="2" colwidth="45*"/>
<colspec align="right" colname="col3" colnum="3" colwidth="45*"/>
<colspec colname="col4" colnum="4" colwidth="5*"/>
<thead>
<row>
<entry align="center" nameend="col4" namest="col1">
<emph typestyle="bf">Table of contents</emph>
</entry>
</row>
<row>
<entry align="right" colname="col3">
<emph typestyle="bf">Para no</emph>
</entry>
</row>
</thead>
<tbody>
<row>
<entry align="left" colname="col2">Allan</entry>
<entry align="right" colname="col3">1</entry>
</row>
<row>
<entry/>
<entry align="left" colname="col2">Michael</entry>
<entry align="right" colname="col3">115</entry>
</row>
<row>
<entry/>
<entry align="left" colname="col2">O'Brian</entry>
<entry align="right" colname="col3">222</entry>
</row>
</tbody>
</tgroup>
</table>





Similar Threads
Thread Thread Starter Forum Replies Last Post
CALS Table not properly getting created sunnykeerthi XSLT 0 January 16th, 2014 09:29 AM
Windows CALs bebright BOOK: Professional IIS 7 ISBN: 978-0-470-09782-3 1 September 4th, 2011 06:06 PM
CALS to HTML Transformation RussellKay XSLT 1 May 11th, 2009 06:46 AM
Web Services and Windows CALs leavinmate .NET Web Services 2 August 6th, 2003 08:38 AM





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