|
Subject: Re: select="*/@UNITS/.." From: "Jonathan Borden" <jborden@xxxxxxxxxxxx> Date: Thu, 18 Mar 1999 09:54:13 -0500 |
RE: select="*/@UNITS/.."Usage examples:
<xsl:value-of select="x/@UNITS" /> returns the value of the @UNITS
attribute of the x element
<xsl:template match="*[@UNITS]">
<xsl:value-of />
</xsl:template>
the template matches all elements with an @UNITS attribute. value-of
returns the element.
<xsl:template match="atom[@UNITS = 'mm']">
<xsl:value-of />
</xsl:template>
returns the value of all 'atom' with @UNITS = 'mm' i.e.
<atom UNITS="mm" >222</atom> -> "222"
<xsl:template match="atom[@UNITS='ft']">
<xsl:value-of select="@value" />
</xsl:template>
returns the value of the value attribute on the atom element i.e.
<atom UNITS='ft' value="222" /> -> "222"
Jonathan Borden
http://jabr.ne.mediaone.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: select="*/@UNITS/..", Elliotte Rusty Harol | Thread | Re: select="*/@UNITS/..", James Tauber |
| RE: need XML documents with XSL scr, Didier PH Martin | Date | Re: need XML documents with XSL scr, Duane Nickull |
| Month |