[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: generating text from an attribute
Subject: Re: generating text from an attribute From: ganesh.vednere@xxxxxxxxxxxx Date: Mon, 17 Jul 2000 18:56:41 -0400 |
Here's a newbie question. How do I generate the value of a attribute as text: i.e. <ROOT> <PARENT> <CHILD name="Bob" age="20"/> </PARENT> </ROOT> ------------ The following should work After the appropriate templates are matched do the foll. <xsl:template match="CHILD"> My name is <xsl:value-of select ="@name"/>. I am <xsl:value-of select ="@age"/> years old.</BO </xsl:template > ______________________________________________________________________ The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Cap Gemini Ernst & Young is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: generating text from an attribu, Spychalski, Frank | Thread | RE: generating text from an attribu, Foster, Justin (IT_A |
RE: generating text from an attribu, Spychalski, Frank | Date | Re: Loading an image in XSL, Marcus Carr |
Month |