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

Producing a text label next to TextArea using XSL:FO problem

Subject: Producing a text label next to TextArea using XSL:FO problem
From: "Dimitris Dracopoulos" <dimitris.dracopoulos@xxxxxxxxxxxxxxx>
Date: Mon, 14 Jun 2004 18:13:58 +0100
xsl fo textarea

Hi,

I am trying to output the following using XSL:FO.

               _______________
    label:     |     A        |
               |______________|

               _______________
    label2     |     B        |
               |______________|

The use of absolute positioning is not acceptable, as I have a number
of rows of such components, so when the text of area A spans multiple
lines it would fall on area B, etc. Therefore relative positioning is 
desirable.

In addition, areas A and B should be able to expand vertically only
and they should have a fixed width. Therefore <fo:inline> components
cannot be used for areas A, B because text will overflow the fixed
width of a <fo:inline> outside the rectangle.

The following produces a similar result but the area B is positioned
not next to label2, but in the following line because of the newline
inserted by the <fo:block >:

<xsl:template>
<fo:block-container max-width="10cm">
      <fo:block space-before="0.2cm"
space-before.conditionality="retain" font-size="11pt" width="10cm">
          <fo:inline width="5.67cm"> 
              <xsl:value-of select=".//label"/>
          </fo:inline>
      </fo:block>
      <fo:block border-style="solid" border-width="thin"
margin-left="5.7cm" space-before="-2.2cm"
space-before.conditionality="retain">
            <xsl:value-of select=".//answer"/>
      </fo:block>
</fo:block-container>
</xsl:template>

The above produces:

    label:
               _______________
               |     A        |
               |______________|



Is there a way of achieving the exact desirable output?

Cheers

Dimitris


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.