Subject: Re: (dsssl) Properly numerated biblography references From: Brandon Ibach <bibach@xxxxxxxxxxxxxx> Date: Thu, 23 Jan 2003 16:38:50 -0600 |
Quoting Pavel Tolkachev <pavel.tolkachev@xxxxxx>: > That was what I wanted to know. I do have my own customization layer > (I did not start it from scratch, but from docbook-utils) but, as > you correctly guessed I do not know how to refer to "the number of > preceding siblings of the matching <biblioentry> plus one". I would > really appreciate it if you send me a code snipppet. > As long as you want to number all of the biblioentrys in the whole document as one sequence (don't know why you wouldn't, but you never know), you can just do: (number->string (element-number be)) where "be" is the biblioentry node. (Should have covered this before, but it's been a while since I've done any DSSSL stuff, so my memory is a bit rusty, and I was too lazy to look it up before. ;) You may notice, in the code, that there is an option for whether you want the stylesheet to look up the biblioentry that your citation is referencing, to make sure it exists. If you don't have it do that, of course, you wouldn't be able to label the citation with the entry's number. So, you'll either need to set that option in your customization layer (the default, false, is set in dbparam.dsl), or just have your version of the citation element rule not do the check, and just do the lookup all the time. -Brandon :) DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: (dsssl) Properly numerated bibl, Pavel Tolkachev | Thread | Re: (dsssl) Properly numerated bibl, Pavel Tolkachev |
Re: (dsssl) Properly numerated bibl, Pavel Tolkachev | Date | Re: (dsssl) Properly numerated bibl, Pavel Tolkachev |
Month |