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

Re: Separator for xsl:number @format

Subject: Re: Separator for xsl:number @format
From: "Rick Quatro rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Oct 2019 00:06:15 -0000
Re:  Separator for xsl:number @format
Thank you Michael. I took your advice and used a series of <xsl:number>
instructions so I don't have to use the zero-width space.

 

From: Michael Kay mike@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 
Sent: Wednesday, October 23, 2019 11:47 AM
To: xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re:  Separator for xsl:number @format

 

I don't think this can be achieved directly; you'll need to use some
workaround. For example, generate the number as A#1 and then post-process to
strip out the '#'. Alternatively, I sometimes find it works better not to
use level=multiple, and instead use a series of calls to xsl:number for the
individual levels.

 

Michael Kay

Saxonica





On 23 Oct 2019, at 15:41, Rick Quatro rick@xxxxxxxxxxxxxx
<mailto:rick@xxxxxxxxxxxxxx>  <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx
<mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> > wrote:

 

Hi,

 

I am using xsl:number to format some sections. Here is my instruction:

 

<xsl:number level="multiple" count="part|subpart" format="A1"/>

 

I want my subparts to number A1, A2, A3, etc. Instead, I get A.A, A.B, A.C.

 

<xsl:number level="multiple" count="part|subpart" format="A&#x200b;1"/>

 

If I add a zero-width space to the format, I get the desired result, but I
want to know if this is necessary. I am using XSLT 2 and Saxon 9. Thank you
very much.

 

Rick

 

Rick Quatro

Carmen Publishing Inc.

 <mailto:rick@xxxxxxxxxxxxxxx> rick@xxxxxxxxxxxxxxx

585-729-6746

 <http://www.frameexpert.com/store/> www.frameexpert.com/store/

 

 

 

 

 <http://www.mulberrytech.com/xsl/xsl-list> XSL-List info and archive

EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509>  (by
email)

 

XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>  

EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/612310>  (by
email <> ) 

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.