xsl-list
[Top] [All Lists]

RE: [xsl] Custom Ordered Lists

2006-11-13 14:58:08
Thank you for the help. I apologize for not being clear. I usually make my
list with either <UL> or <LI> but didn't even think about using
<xsl:number>.

Thank you again
Phil


-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: Monday, November 13, 2006 5:43 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Custom Ordered Lists


Ah, I see - perhaps it wasn't a question about sorting at all, but about
numbering.

I guess you have your answer: except that if you are sorting AND numbering,
then by default xsl:number will give you the position in the source
document, not the position in the sorted list. If you want the latter, use

<xsl:for-each select="....">
  <xsl:sort ....
  <xsl:number value="position()" format="(a)"/>

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

-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: 13 November 2006 10:03
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Custom Ordered Lists



It's a little bit difficult to work out what collation you 
want from an example that only includes three values, one of 
them duplicated. Could you be a bit more specific?

XSLT 2.0 has a lot of support for defining the collation you 
want, but a lot of the details end up being 
implementation-defined. So the answer might be product-dependent.

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

-----Original Message-----
From: Philip Vallone [mailto:philip(_dot_)vallone(_at_)verizon(_dot_)net]
Sent: 13 November 2006 09:08
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Custom Ordered Lists

Hi,

Is it possible to create ordered lists like this? I am 
using XSLT 2.0 
with HTML output.

(a) Test
(b) Test
(c) test

Thanks

Phil








--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>