Re: [xsl] Add attributes Processed File

Subject: Re: [xsl] Add attributes Processed File
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 02 Dec 2004 15:12:21 -0500
Roger,

At 02:28 PM 12/2/2004, you wrote:
Is it possible to add attributes or some mark to the document been trosnformed to avoid to process the same node?
Is there a way to mark a node to avoid to process it again?

Not in a single processing pass, no.


In fact the whole idea runs against a basic design principle of XSLT, that it be "side-effect free". This is an aspect of the language that gives it a number of notable advantages; its down side is that you can't do precisely the thing you are asking about.

Why do you want to do this? Chances are good that XSLT provides you another way to accomplish your goal, and if not, splitting your process into more than one pass can also be done.

Regards,
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