Subject: Re: [xsl] Table columns - fixed span width with underlying "auto" layout columns From: Murray McDonald <murray.mcdonald@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 23 Feb 2011 21:19:52 -0500 |
The most elegant solution I can think of would be to use the text-align="<string>" property to align the numeric values on a zero-width space between the final digit and any "%" or ")", but the documentation on XEP indicates that it doesn't support that feature.
The next best choice would probably be the multi-column solution, only I think you should be able to do it with just two columns, as I don't see the need for the one to the left. I'm not completely clear on how you're doing the layout, though. Is your XSLT calculating fixed widths for each column, or are you relying on XEP to do auto-layout?
I can think of one other option that might work, though it is a bit of a hack. Pre-scan the content in your XSLT to determine if any entries will need a "%", a ")" or both. Then, while generating each entry, add any of those symbols not needed by that entry in an<fo:inline visibility="hidden"> at the end. Combined with text-align="right" on the block (and possibly a keep-together to make sure there's no wrapping), this should reserve the needed space to line everything up.
-Brandon :)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Table columns - fixed spa, Brandon Ibach | Thread | [xsl] I thought i knew how to do th, russurquhart1 |
[xsl] BALISAGE 2011 STUDENT SUPPORT, Tommie Usdin | Date | Re: [xsl] Table columns - fixed spa, Murray McDonald |
Month |