[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Line Numbering

Subject: RE: Line Numbering
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 4 Aug 2006 21:01:38 +0100
re line
It all depends really on who is doing the line-breaking and when. If you're
deciding in the XSLT code where to put the line breaks, then it can be done
as suggested with a recursive template. If the line breaks are being decided
downstream by an XSL-FO processor, then you're scuppered unless there's some
XSL-FO construct to help you out (which I'm not aware of, but I'm no
expert). 

It would be nice if there were some XML vocabulary at the level of PDF that
described the physical page layout, which you could then do a transform
on... But that's wishful thinking.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Luke Jones [mailto:ljones@xxxxxxxxxxxxxxxxxx] 
> Sent: 04 August 2006 19:25
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.