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

Re: Late requirement for uniform wrapping of different

Subject: Re: Late requirement for uniform wrapping of differently generated elements
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Sat, 11 Feb 2012 17:16:41 +0100
Re:  Late requirement for uniform wrapping of different
On 11 February 2012 16:59, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
>> An new requirement demands that all the various <table> elements are
>> to be wrapped with another <table> (with a single <tr>) for layout
>> purposes, adding one <td> with uniform contents to the <td> containing
>> the original table.
>
> It's hard to give a decent answer with an actual example, but 2 options
are:
>
> - modify the transform to just output the wrapper code

This would be the added layout table for enclosing the actual table
and the new additions - but how would the original tables be added?

<table class="wrapper">
  <tr>
     <td><table class="original table, one of many different
tables"><tr>...</table></td>
     <td><div class="new stuff, same for all"/></td>
  </tr>
</table>

>
> - use 'micro-pipelining' to post-process the result to wrap the <table>s

OK, I understand. But I'd have to identify the "original" tables or
XPath-pick them carefully because a <table> might crop up as an
element within an "original" table.

Thanks
Wolfgang

> --
> Andrew Welch
> http://andrewjwelch.com

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.