Re: [xsl] Line Numbering

Subject: Re: [xsl] Line Numbering
From: "CyberSpace Industries 2000 Inc." <csi2000@xxxxxxxxxxxxxxx>
Date: Fri, 4 Aug 2006 15:07:27 -0400
I have seen problems like this before. In laws like this the line number is sometimes considered to "part of the text" in that other legal documents will refer to line 45 of paragraph 23.2 subsection 6 - or something like that.

The point being that the line numbers are not allowed to change over time - and must be locked to a specific set of text. The problem is then how to populate a <lineno> element with information generated only at print time.

Don't know if this is an issue for you.

Cheers...Hugh

CyberSpace Industries 2000 Inc.
XML Training and Consulting

----- Original Message ----- From: "Luke Jones" <ljones@xxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, August 04, 2006 2:24 PM
Subject: [xsl] Line Numbering



Hi,

I'm trying to number the lines of multiple paragraphs.

For example:
xml--
<bill>
...
<para>
FOR AN ACT relating to crimes and offenses; to amend sections 28-101,
28-201 and 28-932, Revised Statutes Cumulative Supplement, 2004; to
change provision relating to assault by a confined person; to create the
offense of assault...(etc)
</para>

I would need xsl code that makes the output look like so...

1 FOR AN ACT relating to crimes and offenses; to amend sections
2 28-101, 28-201 and 28-932, Revised Statutes Cumulative
3 Supplement, 2004; to change provision relating to assault by a
4 confined person; to creat the offense of assault...(etc)

Can anyone help me with this?  I just getting my feet wet with xsl, any
help would be much appreciated.

Thanks,
Luke

Current Thread
  • [xsl] Line Numbering
    • Luke Jones - Fri, 04 Aug 2006 13:24:51 -0500
      • Steve - Fri, 4 Aug 2006 14:42:58 -0400
        • Luke Jones - Fri, 04 Aug 2006 14:16:18 -0500
          • Steve - Fri, 4 Aug 2006 15:28:15 -0400
      • CyberSpace Industries 2000 Inc. - Fri, 4 Aug 2006 15:07:27 -0400 <=
      • Michael Kay - Fri, 4 Aug 2006 21:01:38 +0100
      • <Possible follow-ups>
      • Kevin Brown - Sat, 5 Aug 2006 01:27:11 -0700