Subject: RE: RE: Numbered Elements
From: cknell@xxxxxxxxxx
Date: Mon, 05 May 2003 18:04:01 -0500
|
> -----Original Message-----
> From: "Jack Cane" <jwcane@xxxxxxxxxxx>
> Sent: Mon, 5 May 2003 17:32:19 -0400
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Subject: RE: Numbered Elements
>
> If I understand xslt syntax correctly, <<apply-templates>> is the
> way to output the value of the attribute.
>
<xsl:apply-templates /> tells the processor to work its way through the current context and apply any templates that match elements it finds.
To output the value of an element or attribute, you will want to use the <xsl:value-of select="" /> element. Taking from an earlier message in this thread:
<etd:xRef etd:refElemID="FirstSum" etd:refElemType="Equation">
</etd:xRef>
If you have a template that matches <edt:xRef>, and inside that template you wish to output the values of the two attributes of the context element, then you should use these two elements:
<xsl:value-of select="@etd:refElemID" />
<xsl:value-of select="@etd:refElemType" />
--
Charles Knell
cknell@xxxxxxxxxx - email
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: RE: RE: Numbered Elements, (continued)
- cknell - Sun, 4 May 2003 22:27:00 -0400 (EDT)
- Jack Cane - Sun, 4 May 2003 22:54:13 -0400 (EDT)
- cknell - Mon, 5 May 2003 09:31:32 -0400 (EDT)
- Jack Cane - Mon, 5 May 2003 17:32:31 -0400 (EDT)
- cknell - Mon, 5 May 2003 18:04:25 -0400 (EDT) <=
- Jack Cane - Mon, 5 May 2003 21:13:19 -0400 (EDT)
- cknell - Tue, 6 May 2003 11:50:39 -0400 (EDT)
|
|