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

G. Ken Holman gkholman at CraneSoftwrights.com
Tue Apr 6 05:05:19 PDT 2021


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 |




More information about the Xep-support mailing list