RE: [docbook-apps] body.attributes

From
Keff Ceal
Date
2003-06-05T16:00:28+00:00
ID
Thread
RE: [docbook-apps] body.attributes
Use:

<xsl:template name="body.attributes">
 <xsl:attribute name="id">bodyID</xsl:attribute>
 <xsl:apply-imports/>
</xsl:template>

The apply-imports element will call the same template in the imported
stylesheets.

You can replace 'bodyID' with <xsl:value-of select="@id"/> to pull the id
from the element that is creating the HTML page.

Jeff

> -----Original Message-----
> From: Kenneth Johansson [mailto:]
> Sent: Thursday, June 05, 2003 8:37 AM
> To: DOCBOOK-APPS
> Subject: [docbook-apps] body.attributes
> 
> 
> From where does the XSL template body.attributes fetch the 
> attributes for the body tag? 
> 
> I'd like to insert a special attribute id="bodyID" in the 
> body tag without disrupting the attributes that always are 
> put in the body tag.
> 
> best regards,
> 
> /Kenneth
> 
> --------------------------------------------------------
> Kenneth Johansson	Technical Documentation Manager
> Sectra Imtec AB
> Teknikringen 2		E-mail: ke-joh AT sectra DOT se
> SE-583 30 Link鞿ing	Phone:	+46 13 23 52 00
> SWEDEN			Web:	http://www.sectra.se
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
>