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

Re: Bib refs

Subject: Re: Bib refs
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Sat, 24 Feb 2001 16:41:24 +2400
bib refs latex
At Friday, 23 February 2001, David Carlisle wrote:

>Use BiTeX? Oh no, wrong list.

That's for those using both TeX *and* LaTeX, presumably (biTeXuals? :-)

>If it weren't for the sorting (ie if your references were ordered in
>your source, you could go)
>
><xs:apply-templates select="id(@doc)" mode="number"/>

Indeed. But unfortunately the user was told when she started not to
bother manually sorting the refs, the computer can do it -- which of
course it can :-)

>then you could share your templates in mode "number" between the code
>that typesets the reference list and the code that typesets the
>individual citations.
>
>Howver you do want to sort, so its probably easiest to have a variable
>with the sorted list then use a node-set extension to query into that.

Aha. Cunning plot, Baldric.

>so top level
><xsl:variable name="sorted-refs">
>  <xsl:for-each select="//refs/*">
>    <xsl:sort select="author/name"/>
>    <ref number="{position()}">
>    <xsl:copy-of select="."/>
>    </ref>
></xsl:for-each>
></xsl:variable>
>
>Then something like 
> <xsl:variable name="x" select="@doc"/>
> <xsl:for-each select="$sorted-refs">
>   <xsl:value-of select="id($x)/../@number"/>
> </xsl:for-each>

Thanks very much, I shall try it after I've had a G&T.

>David
>(untested)

I'd get tested soon...you might be incubating procedurality :-)

///Peter







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


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.