update on grouping issues

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

update on grouping issues

Bruce D'Arcus
Re: previous note about grouping in the reference list, here's
something that exposes the funkiness from my book. In the same
reference list, I have:

Blomley, N.  (1994a) Law, Space, and the Geographies of Power,  (New
York:Guilford).

  ———. (1994b) Mobility, Empowerment, and the Rights Revolution,
Political Geography, 13 pp. 407–22.

... and

Herbert, S.  (1997) Policing Space: Territoriality and the Los Angeles
Police Department, (Minneapolis:University of Minnesota Press).

Herbert, S.  (2001) ‘Hard Charger’ or ‘Station Queen’?: Policing and
the Masculinist State, Gender, Place and Culture, 8(1) pp. 55–71.

So clearly the rule that switches in the shortening is now only getting
applied when there is more than one in an author-year group, rather
than just an author group.  Lines 368-71 in citeproc.xsl:

                     <xsl:when
                       test="bib:key[@position &gt; 1] and
$style-biblio/@author-shorten='yes'">
                       <xsl:text>———.</xsl:text>
                     </xsl:when>

This suggests there's again a problem with position(), as the bib:key
virtual element (what I mentioned earlier) is created like so (line
284-88):

                     <xsl:if test="$count > 1">
                       <bib:key type="year-suffix"
position="{$position}">
                         <xsl:number value="$position" format="a"/>
                       </bib:key>
                     </xsl:if>

Perhaps the problem is the count variable (line 226)?  I tried adding a
new author-count variable in the preceding group and using that, but it
didn't work.

I'm still not exactly sure what you did to get the partial fix David,
but it seems maybe you need to apply that logic to wherever position()
or count() is used?

Bruce



Reply | Threaded
Open this post in threaded view
|

Re: update on grouping issues

M. David Peterson-2
Hi all...

I have move the location of the Trac interfact to
http://citeproc.x2x2x.org/projects/citeproc/

I havent looked into trying to support a redirect via any call to the
old /cgi-bin/trac.cgi URI fragment but, to be honest, with as much
trouble as I have encountered with getting a multiple project Trac
environment up and running I really dont want to mess with it at this
point unless you all feel it to be a mandatory thing.  In theory it
shouldnt take more than a few minutes to do but I've decided "in
theory" is a Trac codeword for "clear your schedule for the next 3
days cuz' your asking for trouble" so if you all are cool with using
the above URL instead I will be a much happier man because of it.

Thanks!

<M:D/>


On Tue, 29 Mar 2005 20:39:24 -0500, Bruce D'Arcus <[hidden email]> wrote:

> Re: previous note about grouping in the reference list, here's
> something that exposes the funkiness from my book. In the same
> reference list, I have:
>
> Blomley, N.  (1994a) Law, Space, and the Geographies of Power,  (New
> York:Guilford).
>
>   ———. (1994b) Mobility, Empowerment, and the Rights Revolution,
> Political Geography, 13 pp. 407–22.
>
> ... and
>
> Herbert, S.  (1997) Policing Space: Territoriality and the Los Angeles
> Police Department, (Minneapolis:University of Minnesota Press).
>
> Herbert, S.  (2001) 'Hard Charger' or 'Station Queen'?: Policing and
> the Masculinist State, Gender, Place and Culture, 8(1) pp. 55–71.
>
> So clearly the rule that switches in the shortening is now only getting
> applied when there is more than one in an author-year group, rather
> than just an author group.  Lines 368-71 in citeproc.xsl:
>
>                      <xsl:when
>                        test="bib:key[@position &gt; 1] and
> $style-biblio/@author-shorten='yes'">
>                        <xsl:text>———.</xsl:text>
>                      </xsl:when>
>
> This suggests there's again a problem with position(), as the bib:key
> virtual element (what I mentioned earlier) is created like so (line
> 284-88):
>
>                      <xsl:if test="$count > 1">
>                        <bib:key type="year-suffix"
> position="{$position}">
>                          <xsl:number value="$position" format="a"/>
>                        </bib:key>
>                      </xsl:if>
>
> Perhaps the problem is the count variable (line 226)?  I tried adding a
> new author-count variable in the preceding group and using that, but it
> didn't work.
>
> I'm still not exactly sure what you did to get the partial fix David,
> but it seems maybe you need to apply that logic to wherever position()
> or count() is used?
>
> Bruce
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> <a href="http://ads.osdn.com/?ad_ide95&alloc_id396&opclick">http://ads.osdn.com/?ad_ide95&alloc_id396&opclick
> _______________________________________________
> xbiblio-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
>


--
<M:D/>

:: M. David Peterson ::
XML & XML Transformations, C#, .NET, and Functional Languages Specialist


Reply | Threaded
Open this post in threaded view
|

Re: update on grouping issues

Bruce D'Arcus
On Mar 31, 2005, at 4:22 AM, M. David Peterson wrote:

> if you all are cool with using the above URL instead I will be a much
> happier man because of it.

That's fine.

Deadline for milestone 0.6 is tomorrow ;-)

Bruce



Reply | Threaded
Open this post in threaded view
|

Re: update on grouping issues

Bruce D'Arcus
BTW, one easy way to debug at least some of this is to change this:

     <xsl:if test="$biboutfile">
       <xsl:result-document href="{$biboutfile}" format="xml">
         <xsl:copy-of select="$raw-biblist"/>
       </xsl:result-document>
     </xsl:if>

... to this:

     <xsl:if test="$biboutfile">
       <xsl:result-document href="{$biboutfile}" format="xml">
         <xsl:copy-of select="$enhanced-biblist"/>
       </xsl:result-document>
     </xsl:if>

You can then output the temporary tree, which yields stuff like:

    <mods:mods xmlns:mods="http://www.loc.gov/mods/v3"  
ID="Tremblay2001a">
       <bib:refclass  
xmlns:bib="http://purl.org/NET/xbiblio/citeproc">part-inSerial</bib:
refclass>
       <bib:reftype  
xmlns:bib="http://purl.org/NET/xbiblio/citeproc">legal  
case</bib:reftype>
       <bib:position  
xmlns:bib="http://purl.org/NET/xbiblio/citeproc">1</bib:position>

Bruce