This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] body.attributes
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: 'Kenneth Johansson' <ke-joh at sectra dot se>, DOCBOOK-APPS <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 5 Jun 2003 12:14:01 -0400
- 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org