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

RE: Formatting XSL-FO Based on XML Position

Subject: RE: Formatting XSL-FO Based on XML Position
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Tue, 16 Dec 2003 01:08:30 +0100
tabs xsl fo
> -----Original Message-----
> From: Kyle Partridge
>
> Pardon the repetition, but apparently my previous format was not as
> appropriate as it ought to have been.
>
> Problem:
> Create fo:table to format some text occurring after a fo:block.  The XML
> input looks like this:
>
> <p tabs="0.2 1.2 2.2">
> some text, maybe formatted <b>maybe not</b>, and then:
> <tab/>item<tab/>item2<tab/>item3<br/>
> <tab/>item4<tab/>item5
> </p>
>

Indeed a bit different from what you posted first. My proposed solution in
the other thread will *only* work in case you have matrices of these
'inverted' <tab/><br/> constructs. (equal amount of tabs for each br)

> The XSLT I have now for the tab formatting looks like this.  I know it
> isn't very good, but I'm not very good at this.  Putting opening tags in
> the first xsl:if, and closing tags in a later one does not work - but I
> don't know what to do instead ?
>

Look into the answer in the earlier thread you posted for this to give you a
clue... I hope there is at least *some* pattern as to what nodes are to form
the rows/columns. If not, you might need to normalize your source 'xml'
first, to make it ready for pattern-matching.


In any case, I hope you're getting the logic --if not, just yell

Cheers,

Andreas


 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.