OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: RE: DOCBOOK: How to not reference a biblioentry


This one I can answer :-)

For the HTML Style (V1.52) exchange:
  <xsl:text>[</xsl:text>
  <xsl:choose>
    <xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
      <xsl:apply-templates select="$node/abbrev[1]"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$node/@id"/>
    </xsl:otherwise>
  </xsl:choose>
  <xsl:text>] </xsl:text>
  
With:  
  
  <xsl:choose>
    <xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
      <xsl:text>[</xsl:text><xsl:apply-templates
select="$node/abbrev[1]"/><xsl:text>]</xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:if test="$node/@id"><xsl:value-of
select="$node/@id"/></xsl:if>
    </xsl:otherwise>
  </xsl:choose>


Stephan

-----Original Message-----
From: Elliotte Rusty Harold [mailto:elharo@metalab.unc.edu] 
Sent: Montag, 8. Juli 2002 15:43
To: docbook@lists.oasis-open.org
Subject: DOCBOOK: How to not reference a biblioentry


At 3:32 PM +0200 7/8/02, Stephan Wiesner wrote:

>I understand that a biblio set can be generated like this:
>
><biblioentry>
>   <abbrev>Walsh97</abbrev>
>. . .
>
>This would create something like the folllowing:
>[Walsh97] XML: Principles, Tools, and Techniques. & Associates, Inc.. 
>1085-2301. Dan Connolly. "A Guide to XML". Norman Walsh. Copyright C 
>1997 ArborText, Inc.. 97-108.
>
>

On a related note. I have a need to write biblioentries that do not 
include the [abbrev] text. However, the XSLT stylesheets just stick 
in an empty []. Is there any chance to get this fixed so that the 
brackets are only included if the abbrev is present? Acccording to 
the DTD, abbrev is optional.

-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC