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

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

Expand Messages
  • G. Ken Holman
    Sep 23, 2002
    • 0 Attachment
      At 2002-09-23 17:13 -0400, Sandra Mcdonnell wrote:
      >Thanks Ken (And Kate!),
      >
      > >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?
      > >
      >Initially I did not include the NumListItems. I just had the following:
      >
      ><NumList>
      > <Step> Step1</Step>
      > <StepContinue> Text </StepContinue>
      > <Step> Step2</Step>
      > <StepContinue> Text </StepContinue>
      ></NumList>
      >
      >But something in the FO List structure made me think I needed the extra
      >element... Sigh. I really am new at ALL this. And I read everything I
      >can, I just can't always make it work...

      Often it is a good rule of thumb to have as much structure as possible
      without redundancy. It is usually helpful to have containers for anything
      that is repeated. Your task will be much easier if you had something along
      the lines of:

      <NumList>
      <NumListItem>
      <Step> Step1</Step>
      <StepContinue> Text </StepContinue>
      </NumListItem>
      <NumListItem>
      <Step> Step2</Step>
      <StepContinue> Text </StepContinue>
      </NumListItem>
      </NumList>

      Not only have you containerized your steps, your required FO tree will be
      structured identically, and things should fall into place for you.

      NumList -> list-block
      NumListItem -> list-item
      <xsl:number count="NumListItem"/> -> list-item-label
      Step and StepContinue -> block

      Again, I'm not sure why you have two "step" thingies. I away from my email
      in about 5 minutes for the next day or so, so someone else will hopefully
      follow up with your responses.

      Good luck (and hang in there)!

      ............... 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