|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: select="*/@UNITS/.."
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








