Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] question about identity transform

From: Wendell Piez <wapiez@---------------->
To:
Date: 11/1/2006 11:41:00 PM
At 05:01 PM 10/31/2006, Dimitre wrote:
If you would refers it, and make it, say: ` node ( ) | @* ' the nodes
would first be copied, resulting in the attributes ending up illegally:
you may not create an attribute node after you create an element node in
the result tree. However, I'm not sure if this is really enforced by the
specs.

This is not true.



The order in which an <xsl:apply-templates> instruction is applied on
the nodes selected by the expression as specified in its select
attribute is not defined and may be in any order.

What is important, is that the results of these applications are
combined/ordered based on the document order of the processed nodes.

The analogy that occurred to me lately is the "take a number" routine 
you find in your local Division of Motor Vehicles (or the friendly 
bureaucracy of your choice if you're not a US resident). Applicants 
on arrival are given numbers that are then called in order, so while 
we're waiting around we don't actually have to stand in line.



While we're waiting, we typically fill out the forms that will be 
required of us.



In XSLT, it's as if the processing happens as we fill out the forms. 
The re-ordering only has to occur at serialization time.



The number, of course, is called "position()" (which you may note has 
nothing necessarily to do with how we were ordered when we arrived).



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
======================================================================


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent