________________________________________
From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of Vincent Massol
[vincent(a)massol.net]
Sent: 08 August 2011 10:08
To: XWiki Users
Subject: Re: [xwiki-users] a TOC Macro issue?
On Aug 8, 2011, at 10:00 AM, <Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es>
<Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es> wrote:
Hi!
________________________________________
From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of Vincent Massol
[vincent(a)massol.net]
Sent: 08 August 2011 09:11
To: XWiki Users
Subject: Re: [xwiki-users] a TOC Macro issue?
On Aug 8, 2011, at 1:10 AM, <Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es>
<Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es> wrote:
Hi, Vincent. As usual, thanks for your help.
Please, see below...
________________________________________
From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of Vincent Massol
[vincent(a)massol.net]
Sent: 07 August 2011 13:53
To: XWiki Users
Subject: Re: [xwiki-users] a TOC Macro issue?
On Aug 7, 2011, at 10:00 AM, Vincent Massol wrote:
On Aug 6, 2011, at 8:06 PM, Vincent Massol wrote:
Hi Ricardo,
On Aug 6, 2011, at 12:24 AM, <Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es>
<Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es> wrote:
> Hi all!
>
> Running XWiki Enterprise 2.4.30451 I'm not able to get 1.2.3 format numbered TOC
entries. Here what I'm doing:
>
>
http://ebiotic.net/bin/IDIS/AnnualReport
>
> And there the concerned XWiki doc...
>
>
http://extensions.xwiki.org/xwiki/bin/view/Extension/TOC+Macro
>
> Please, were is Note 2? Within the Parameters definition section ir reads:
>
> "if should generate numbering (1.2.3 format) for titles (see also Note 2)"
>
> I've browsed Jira issues for a description of the problem (solved or not) to no
avail.
>
> Please, where am I wrong? Thanks for your help!
ok here's what I gathered:
1) Each level starts at 1 currently. It's 1.1.1 format and not 1.2.3 format. The doc
needs to be updated (done). Please open a jira if you need the other format
2) I couldn't find note 2 either. I've removed it from the doc.
3) I couldn't find a jira issue about this
Actually everything is possible using some CSS (depending on which browsers you wish to
support).
So what do you need:
1 nnnnn
2 nnnnn
2.1 nnnnnnnn
3 nnnnn
or
1 nnnnn
2 nnnnn
3 nnnnnnnn
4 nnnnn
?
One example:
http://www.24k.com.sg/blog-2.html
That is pretty clear and workds without a glitch (I've tried updated releases of
Safari, Firefox and OmniWeb in a Mac OS X, 10.5.8). Thank you so much!
> hmm something I don't understand. You say
it works fine and below you say it's not working and you don't see 2.1… Which is
it? :)
I'm afraid my message was not clear enough! Both things are true!
Yeap, get this... what this only work with the Stylesheet extension in the page. Like
here...
http://ebiotic.net/bin/IDIS/AnnualReport
> I've checked
http://ebiotic.net/bin/Draft/TOC?xpage=xml and I cannot see any Stylesheet extension in
it. Have you put it somewhere else?
In fact, there is no Stylesheet extension in it! But, what I understand here...
http://extensions.xwiki.org/xwiki/bin/view/Extension/TOC+Macro#HParametersd…
Is that numbered=false can be used to generate 1.1.1 numbering. The description for that
parameter says "if should generate numbering (1.1.1 format) for titles".
Please, where am I wrong? Thanks!
>Apparently the documentation was misleading.
I've fixed it now.
Thanks!
>I'm not sure what you mean by 1.1.1 format
though.
Well, it was the first time I read that notation. That's why I've gloogled a bit
around and find, for instance, this:
http://www.java2s.com/Code/XML/XSLT-stylesheet/numberlevelmultiplecountfrom…
It refers to 1.1.1 format and gives this output as example:
Output:
1 record:
1.1 name:
1.1.1 full: A
1.1.2 brief: I
1.2 address:
1.2.1 street: uite 330
1.2.2 city: Regina
1.2.3 state: SK
1.2.4 code: 90292
1.2.5 nation: USA
1.3 tel:
1.3.1 phone: +1 310 823 9358
1.3.2 fax: +1 310 823 8649
1.3.3 email: i(a)i.org
So, I understood that, within XWiki, if I set numbered= true, I must expect this numbering
schema. Now, I understand how we could bet this by using Stlysheet Extensions and
numbered=true gives this other format:
Output:
1 record:
1 name:
1 full: A
2 brief: I
2 address:
1 street: uite 330
2 city: Regina
3 state: SK
4 code: 90292
5 nation: USA
3 tel:
1 phone: +1 310 823 9358
2 fax: +1 310 823 8649
3 email: i(a)i.org
I think it is that it is now far clearer thanks to your help! Thanks.
>Thanks
>-Vincent
> Thanks
> -Vincent
> But what is not clear for me yet is how "numbered=true" must work. Here
what I see:
>
>
http://ebiotic.net/bin/Draft/TOC
>
> I've browsed some sites where there are references to 1.1.1 format for numbering.
For instance:
>
>
http://www.java2s.com/Code/XML/XSLT-stylesheet/numberlevelmultiplecountfrom…
>
> Following this, I expect:
>
> 1. Level 1
> 1.1. Level 2
> 2. Level 3
> 2.1. Level 4
> 2.2. Level 5
>
> But I get:
>
> 1. Level 1
> 1. Level 2
> 2. Level 3
> 1. Level 4
> 2. Level 5
>
> Please, am I missing anything?
>
> Thanks!
>
>>> Thanks
>>> -Vincent
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
>
> Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos adxuntos ?
privada e confidencial e est? dirixida ?nicamente ? seu destinatario/a. Se vostede non ?
o/a destinatario/a orixinal desta mensaxe, por favor elim?nea. A distribuci?n ou copia
desta mensaxe non est? autorizada.
>
> Nota: La informaci?n contenida en este mensaje y sus posibles documentos adjuntos es
privada y confidencial y est? dirigida ?nicamente a su destinatario/a. Si usted no es
el/la destinatario/a original de este mensaje, por favor elim?nelo. La distribuci?n o
copia de este mensaje no est? autorizada.
>
> See more languages:
http://www.sergas.es/aviso_confidencialidad.htm
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada
e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a
destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta
mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es
privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es
el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o
copia de este mensaje no está autorizada.
See more languages:
http://www.sergas.es/aviso_confidencialidad.htm