This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:ke-joh@sectra.se]
> 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öping	Phone:	+46 13 23 52 00
> SWEDEN			Web:	http://www.sectra.se
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-open.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]