Subject: Re: [xsl] copy attributes, except some From: ac <ac@xxxxxxxxxxxxx> Date: Sat, 31 Oct 2009 17:15:13 -0400 |
Cheers, ac
AC,
At 09:02 PM 10/29/2009, you wrote:Hi Wendell,
True. The thing that still bothers me with this is that since nodes and content are compared, a variable like $excepted-attributes has to be defined for every attribute group, for every tree/subtree that may get copied which is getting to be quite an overhead here.
Yes, certainly. My suggestion is clean only if the variable can be declared at the top -- that is, if @name1 attributes are always to be excluded. Even then, there are situations where it will be problematic.
This is the problem with posting fragments of problems to the list. As we have noted before (in this thread and elsewhere), without a complete problem spec, we can't really provide a solution. For example, a parameterized approach, in which $exclude-attributes would be passed through templates (using a tunnel parameter) and modified where necessary, might be another thing worth trying.
On the other hand, sometimes our waving flashlights in the dark will lead to an accidental insight which is at least as good, or better, than a solution. If that's the case here, we should call it a success.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] copy attributes, except s, Wendell Piez | Thread | RE: [xsl] nodes() before and after , Mario Madunic |
[xsl] Setting a foreign attribute, Mark Wilson | Date | Re: [xsl] Setting a foreign attribu, G. Ken Holman |
Month |