[xep-support] Re: fo:list-block Automatic Numbering

Darren Munt darrenm at ardex.com.au
Tue Apr 6 16:09:01 PDT 2021


Hi Ken,

Thanks for the tip. I was hoping to avoid doing a second transform, only because it means a fair bit of change to my existing workflow. Worth considering though. I think I can get it working how I want a different way with some conditional XSL. I was just hoping for a function like label-end() but if not available I'll work out another way.

Cheers.

-----Original Message-----
From: Xep-support <xep-support-bounces at renderx.com> On Behalf Of G. Ken Holman
Sent: Tuesday, 6 April 2021 10:05 PM
To: RenderX Community Support List <xep-support at renderx.com>; RenderX Community Support List <xep-support at renderx.com>
Subject: [xep-support] Re: fo:list-block Automatic Numbering

Remember that an XSL-FO file is an XML file, so you can write XSLT to transform your XSL-FO without item labels into XSL-FO with item labels ... and then format your result.

I hope this helps.

. . . . . . Ken

At 2021-04-06 08:47 +0000, Darren Munt wrote:
>Content-Language: en-US
>Content-Type: multipart/alternative;
> 
>boundary="_000_SY4PR01MB564190784D97509E350EEF4686769SY4PR01MB5641ausp_"
>
>Is there a function or processing instruction in XEP I can use to 
>automatically number items in a list block? The number sequence is 
>determined only by the fo:list-item elements that exist within the 
>block. I don't have an XML structure I can use to determine it using 
>xsl:number or position(). The renderer would have to determine the item 
>number based on it's position within the list-block and then supply the 
>correct value in the output. I couldn't find anything so I suspect not, 
>but just on the off chance I thought I would ask. Thanks.
>
>
>
>Eg something like this:
>
>
>
><fo:list-block>
>
>                 <fo:list-item>
>
>                                 <fo:list-item-label>
>
>                                                 <fo:block>
>
> 
><some call to a function/pi here />
>
>                                                 </fo:block>
>
>                                 </fo:list-item-label>
>
>                 <fo:list-item-body>
>
>                                 <fo-block>
>
>                                                 Some text
>
>                                 </fo:block>
>
>                 </fo:list-item-body>
>
>                 </fo:list-item>
>
></fo:list-block>
>
>
>_______________________________________________
>(*) To unsubscribe, please visit
>http://lists.renderx.com/mailman/options/xep-support
>(*) By using the Service, you expressly agree to these Terms of Service 
>http://w ww.renderx.com/terms-of-service.html


--
Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/f/ | Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Streaming hands-on XSLT/XPath 2 training class @US$125 (5 hours free) | Essays (UBL, XML, etc.) http://www.linkedin.com/today/author/gkholman |


_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w ww.renderx.com/terms-of-service.html



More information about the Xep-support mailing list