List Info

Thread: Nesting in $bibliography.collection




Nesting in $bibliography.collection
user name
2007-08-21 08:35:41
I have just had a system break and discovered that it seems
to be 
because I introduced bibliodiv elements into the document
identified by 
$bibliography.collection. I am using docbook-xsl-1.72.0

 From inspection the XSL seems to back up this observation.
It is 
looking for direct children of bibliography.

Is this intended? Am I missing something?

Nigel

-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%
Nigel Hardy     Tel: +44 1970 622 434.   http://users.aber.ac.uk/
nwh/
Dept. Computer Sci,  University of Wales, Aberystwyth, SY23
3DB, UK
Adran Cyfrifiadureg, Prifysgol Cymru,     Aberystwyth, SY23
3DB, UK 


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Nesting in $bibliography.collection
user name
2007-08-22 13:17:20
Yes, bibliodiv elements are not supported in a bibliography
collection at 
this time.  There were questions about how such divisions
should be 
handled.  That is, should a reference to an entry in a
division generate a 
division in the output?  Should that be an option?

The template with match="biblioentry" in
fo/biblio.xsl handles the 
selection.  Currently it uses:

      <xsl:variable name="entry"
select="$bib/bibliography/
                                         *[id=$id or
xml:id=$id][1]"/>

To get it working for you, you could customize it to:

      <xsl:variable name="entry"
select="$bib/bibliography//
                                         *[id=$id or
xml:id=$id][1]"/>

(note the extra slash in the path)

This should probably be added to the distribution template,
but we are 
currently frozen pending a new point release.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net


----- Original Message ----- 
From: "Nigel hardy" <nwhaber.ac.uk>
To: <docbook-appslists.oasis-open.org>
Sent: Tuesday, August 21, 2007 6:35 AM
Subject: [docbook-apps] Nesting in $bibliography.collection


>I have just had a system break and discovered that it
seems to be because 
>I introduced bibliodiv elements into the document
identified by 
>$bibliography.collection. I am using docbook-xsl-1.72.0
>
> From inspection the XSL seems to back up this
observation. It is looking 
> for direct children of bibliography.
>
> Is this intended? Am I missing something?
>
> Nigel
>
> -- 
>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%
> Nigel Hardy     Tel: +44 1970 622 434.   http://users.aber.ac.uk/
nwh/
> Dept. Computer Sci,  University of Wales, Aberystwyth,
SY23 3DB, UK
> Adran Cyfrifiadureg, Prifysgol Cymru,     Aberystwyth,
SY23 3DB, UK
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
>
>
> 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Nesting in $bibliography.collection
user name
2007-08-22 13:39:47
Thank you for that confirmation. I thought the extra slash
was the answer.

If I could take forward the discussion of what a bibliodiv
might to, my 
suggestion would be that the bibliography collection
mechanism is like a 
customised "xi:include", with the XPath expression
in the style sheet 
specifying the required fragment. The bibliography element
in the source 
document has "dummy" bibliomixed elements and
these can (presumably) be 
nested inside bibliodivs. It would therefore be the
structure of the 
bibliography in the source which is used. The structure in
the 
bibliography collection is not applicable to the document in
hand. An 
existing reflection of this is that a bibliography/title
element in the 
collection is not used in output.

Nigel

Bob Stayton wrote:
> Yes, bibliodiv elements are not supported in a
bibliography collection 
> at this time.  There were questions about how such
divisions should be 
> handled.  That is, should a reference to an entry in a
division 
> generate a division in the output?  Should that be an
option?
>
> The template with match="biblioentry" in
fo/biblio.xsl handles the 
> selection.  Currently it uses:
>
>      <xsl:variable name="entry"
select="$bib/bibliography/
>                                         *[id=$id or
xml:id=$id][1]"/>
>
> To get it working for you, you could customize it to:
>
>      <xsl:variable name="entry"
select="$bib/bibliography//
>                                         *[id=$id or
xml:id=$id][1]"/>
>
> (note the extra slash in the path)
>
> This should probably be added to the distribution
template, but we are 
> currently frozen pending a new point release.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobssagehill.net
>
>
> ----- Original Message ----- From: "Nigel
hardy" <nwhaber.ac.uk>
> To: <docbook-appslists.oasis-open.org>
> Sent: Tuesday, August 21, 2007 6:35 AM
> Subject: [docbook-apps] Nesting in
$bibliography.collection
>
>
>> I have just had a system break and discovered that
it seems to be 
>> because I introduced bibliodiv elements into the
document identified 
>> by $bibliography.collection. I am using
docbook-xsl-1.72.0
>>
>> From inspection the XSL seems to back up this
observation. It is 
>> looking for direct children of bibliography.
>>
>> Is this intended? Am I missing something?
>>
>> Nigel
>>
>> -- 
>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%
>> Nigel Hardy     Tel: +44 1970 622 434.   http://users.aber.ac.uk/
nwh/
>> Dept. Computer Sci,  University of Wales,
Aberystwyth, SY23 3DB, UK
>> Adran Cyfrifiadureg, Prifysgol Cymru,    
Aberystwyth, SY23 3DB, UK
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail:
docbook-apps-unsubscribelists.oasis-open.org
>> For additional commands, e-mail:
docbook-apps-helplists.oasis-open.org
>>
>>
>>
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
>


-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%
Nigel Hardy     Tel: +44 1970 622 434.   http://users.aber.ac.uk/
nwh/
Dept. Computer Sci,  University of Wales, Aberystwyth, SY23
3DB, UK
Adran Cyfrifiadureg, Prifysgol Cymru,     Aberystwyth, SY23
3DB, UK 


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )