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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: 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
> 
> 
> 


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