Subject: RE: apply-templates From: Jeni Tennison <Jeni.Tennison@xxxxxxxxxxxxxxxx> Date: Tue, 30 May 2000 14:25:37 +0100 |
Paul, Linda van den Brink wrote: >> 2. What is the advantage of the above over accessing the >> UNITS attributes of ATOM via value-of in the 1st template >> rule above ?? > >The above would be useful if you don't simply want the value of the >attribute, but you want to do further processing based on the attribute >value. You could turn the attribute into an element and apply templates of >other nodes inside it, for example. Another reason that you might want to use a template to process the UNITS attribute rather than do it within the ATOM-matching template is if the UNITS attribute is present on lots of different elements, and you want it to give the same (fairly complex) output each time. Cheers, Jeni Dr Jeni Tennison Epistemics Ltd, Strelley Hall, Nottingham, NG8 6PE Telephone 0115 9061301 ? Fax 0115 9061304 ? Email jeni.tennison@xxxxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: apply-templates, Linda van den Brink | Thread | RE: apply-templates, Kay Michael |
RE: XHTML to WML problem, Jim Michael | Date | RE: XML design of Database, Vun Kannon, David |
Month |