|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Output multiple occurence into one and concatenate
Shaikh, Parvez wrote:
Thanks for all the responses. This is not enough. You should have a place where you *apply* the templates. Or even only the attributes, if you want more fine-grained control. I.e.: <xsl:apply-templates select="somenode/@Product" /> Then, you create the matching template <xsl:template match="@Product" /> To get all the nodes from a certain context and all its descendants, you can use //somenode/@Product in the apply-templates. The same you can do with other attributes. To create an attribute, do like I told you, add an xsl:attribute around the apply-templates that does the selection. If you have trouble understanding how apply-templates and matching templates work together, you should consider any of many tutorials or books. Without understanding matching templates, it will be very hard to understand XSLT and to make it work for you. -- Abel
|
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
|






