[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Omnimark vs. XSL (Saxon) Challenge

Subject: Re: Omnimark vs. XSL (Saxon) Challenge
From: bry@xxxxxxxxxx
Date: Tue, 16 Mar 2004 22:24:17 CET
omnimark substring
> Input table:
> 
> <table>
>   <tbody>
>     <row>
>       <entry colspan="2" rowspan="2" 
width="70%">I</entry>
>       <entry colspan="2" 
width="30%">II</entry>
>     </row>
>     ...
>   </tbody>
> </table>
> 
> Desired output:
> 
> <table width="48mm 36mm 24mm 12mm">
>   <tbody>
>     <row>
>       <entry colspan="2" 
rowspan="2">I</entry>
>       <entry colspan="2">II</entry>
>     </row>
>     ...
>   </tbody>
> </table>
> 
> The main problem is the use of colspan and 
>rowspan, which makes it hard for any cell to
>know to which column it belongs. One has to 
>render the table from start to finish to 
>learn
>that for each cell.

I'm having some problem actually 
understanding this part, looking at it 
again, as your example output doesn't very 
well clarify for me what you want:
is it that you just want to know the 
dimensions of your table, with widths 
removed from the entrys, otherwise 
everything is the same?

the width being calculated from the 
following:

<xsl:param name ="table-width" select =" 
120 " />


<xsl:value-of select ="concat($table-width * 
substring-before($width-value, '%') * 
0.01, 'mm') " />
if a width is percentile, otherwise the 
width is taken from $width-value.
right?

can you tell me exactly why you're using 
<xsl:variable name =" random-nodes " select 
=" document('')//* " />

document('') refers to your xslt, how does 
this help you calculate your table size?







 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.