Subject: Re: [xsl] XSL-FO: Fixed box to construct empty text-box or tick-box. From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 22 Mar 2006 13:10:09 -0500 |
I am writing XSL-FO to produce a questionnaire document. For this I will need to create empty text-boxes and tick-boxes.
<list-item> <list-item-label text-align="end" end-indent="label-end()"> <block>1)</block> </list-item-label> <list-item-body start-indent="body-start()"> <block-container block-progression-dimension="2.3cm"> <block start-indent="0pt"> <xsl:text>Did the material cover what you were expecting?</xsl:text> </block> </block-container> </list-item-body> </list-item> <list-item> <list-item-label text-align="end" end-indent="label-end()"> <block>2)</block> </list-item-label> <list-item-body start-indent="body-start()"> <block space-before="inherited-property-value(font-size) * .5" text-align-last="justify"> <xsl:text>Quality of the presentation slides:</xsl:text> <leader/> <xsl:text>(poor) 1 - 10 (excellent): </xsl:text> <leader leader-pattern="rule" leader-length="1cm" rule-thickness="1pt"/> </block> <block space-before="inherited-property-value(font-size) * .5"> <xsl:text>How might the presentation slides be improved?</xsl:text> </block> <block-container block-progression-dimension="2.0cm" start-indent="0pt" space-before="inherited-property-value(font-size) * .5"> <block/> </block-container> </list-item-body> </list-item>
<block space-before="inherited-property-value(font-size) * .5" text-align-last="justify"> <xsl:text>Would you like to be contacted for information</xsl:text> <xsl:text> on future courses from either the event</xsl:text> <xsl:text> organizers or directly from Crane?</xsl:text> <leader/> <inline-container width="1em" height="1em" alignment-adjust="text-after-edge" border-style="solid" border-width="1pt"> <block><leader/></block> </inline-container> <xsl:text> No </xsl:text> <inline-container width="1em" height="1em" alignment-adjust="text-after-edge" border-style="solid" border-width="1pt"> <block><leader/></block> </inline-container> <xsl:text> Yes</xsl:text> </block>
Greetings,
I am writing XSL-FO to produce a questionnaire document. For this I will need to create empty text-boxes and tick-boxes. So far, I have managed to produce text-boxes using fo:table; the text-boxes are simply cells that contain borders. The problem is that this box grows as the text in another column spans over more than one line, so ideally I want to place a fixed size box in the table.
What is the best way to go about doing this? I tried to create an empty fo:block and specified attributes for height and width but unfortunatley as the box is not populated, it appears as a flat line. Do I have to produce an SVG?
Many thanks,
Lloyd
-- Upcoming XSLT/XSL-FO hands-on courses: Washington,DC 2006-06-12/16 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-FO: Fixed box to construc, Lloyd Thompson | Thread | Re: [xsl] XSL-FO: Fixed box to cons, Lloyd Thompson |
[xsl] XSL-FO: Fixed box to construc, Lloyd Thompson | Date | RE: [xsl] Re: Un-cdata-section-elem, Nathan Young -X \(na |
Month |