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

Re: Need help combing two elements

Subject: Re: Need help combing two elements
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 30 Mar 2009 13:01:59 -0400
Re:  Need help combing two elements
Fatbob,

What we're all trying to get at here is that when we see something like this:

At 10:01 AM 3/30/2009, you wrote:
But here is a tiny snippet of the FO, the two cells that I'd like to
combine...

<fo:table-cell color="black" background-color="white" border="1pt solid
black" wrap-option="wrap" overflow="hidden"><fo:block font-size="8pt"
padding="1mm" margin-left=".25mm" overflow="hidden" language="ru"
hyphenate="true">Jan 23, 2007</fo:block></fo:table-cell>
<fo:table-cell color="black" background-color="white" border="1pt solid
black" wrap-option="wrap" overflow="hidden"><fo:block font-size="8pt"
padding="1mm" margin-left=".25mm" overflow="hidden" language="ru"
hyphenate="true">10:57</fo:block></fo:table-cell>

I'd like it to be like this...

<fo:table-cell color="black" background-color="white" border="1pt solid
black" wrap-option="wrap" overflow="hidden"><fo:block font-size="8pt"
padding="1mm" margin-left=".25mm" overflow="hidden" language="ru"
hyphenate="true">Jan 23, 2007 10:57</fo:block></fo:table-cell>

Or even better (with the formatting)...

<fo:table-cell color="black" background-color="white" border="1pt solid
black" wrap-option="wrap" overflow="hidden"><fo:block font-size="8pt"
padding="1mm" margin-left=".25mm" overflow="hidden" language="ru"
hyphenate="true">2000-01-23 10:57</fo:block></fo:table-cell>

... we are seeing a big mishmash of stuff, and it's laborious for us to distinguish between signal and noise.


I bet that most (or all) of the attributes from your FO could be removed and the actual problem would quickly become evident.

The same thing is true of the XSLT that generates this FO.

To get from this:

<Row Type="Data">
  <Cell>Mar 23, 2006</Cell>
  <Cell>08:44</Cell>
</Row>

to this:

<Row>
  <Cell>Mar 23, 2006 08:44</Cell>
</Row>

is straightforward, and has already been shown in this thread.

What's the difference between that case and the case you're showing other than the name of an element and the presence of attributes?

If you've tried this solution and it doesn't work, then strip your attempt down to the minimum by removing everything that doesn't bear on the problem. As you do this, test to see whether the problem goes away or you don't discover what it is. If you do or it does, you can then work back up from there. If it doesn't, you then have a minimal and clear example to illustrate your problem.

This is an elementary code development technique, and learning how to do it cleanly and systematically, even if only for yourself, will save you uncountable hours of frustration and questioning.

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

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.