Loading ...
Sorry, an error occurred while loading the content.

2212Re: [XSL-FO] XSL:FO Numbered lists

Expand Messages
  • G. Ken Holman
    Sep 23, 2002
    • 0 Attachment
      At 2002-09-23 09:53 -0400, Sandra Mcdonnell wrote:
      >Thanks for the help, though I gotta say, I can't make your solution work
      >at all. I didn't even get my number 1s on everything. ;-)

      :{)} Well, at least I did qualify my answer that I was unsure what you were
      asking for.

      >What I am trying to get is output that appears as follows:
      >
      >1. STEP1
      > StepContinue1
      >2. STEP2
      > StepContinue2
      >
      >etc etc. So I want the position of the Step element relative to the
      >NumListItems in which is resides.
      >
      >My XML appears as follows:
      >
      ><NumList>
      > <NumListItem>
      > <Step>step1 </Step>
      > <StepContinue> Step continue text </StepContinue>
      > <Step> Step 2 </Step>
      > <StepContinue> text </StepContinue>
      > </NumListItem>
      ><NumList>

      I'm quite confused that you have wrapped all of your steps into a single
      NumListItem. Is there is only ever one item in the list? if not, what
      does it mean to have more than one since each one appears to have multiple
      steps?

      >I can make my XSL generate my X-FO, and then render to PDF, but I can't
      >make the count for the steps work out.

      This tells me you are successfully introducing the FO structure needed for
      list items from your XML source with a "flat" set of list items. Most
      people do not recognize the nuances involved in converting a flat
      collection into a nested structure.

      Kate's suggestion of using 1 plus the count of previous steps looks sound!

      ................... Ken


      --
      Upcoming hands-on in-depth Europe: Sep 18-Sep 20,2002
      XSLT/XPath and XSL-FO North America: Sep 30-Oct 4,2002

      G. Ken Holman mailto:gkholman@...
      Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
      Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
      ISBN 0-13-065196-6 Definitive XSLT and XPath
      ISBN 0-13-140374-5 Definitive XSL-FO
      ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
      ISBN 1-894049-10-1 Practical Formatting Using XSL-FO
      Next public training: 2002-09-18,19,30,10-03,12-08,2003-03-04,07
    • Show all 7 messages in this topic