[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Match order

Subject: Re: Match order
From: "Frank Chen" <frank63@xxxxxxxxxxxxx>
Date: Sat, 28 Jul 2001 10:36:03 +0800
f. frank chen
Hello, Daniel:

"/*/ad-keyword-list/ad-keyword" will collect an unordered node set, which
means the nodes in this node
set would be arranged in their document order unless they are sorted by
xsl:sort. So, in your question,
it should be a part of the spec in XPath.

Frank

> Hi All,
>
> Here is my question:  If I run the following two XSL match queries ( as in
> example below ), am I guaranteed to get the matches for the attribute
names
> and the values in the same order?  In other words, could I successfully
> correlate the resulting arrays afterwords?
>
> Is this dependent on parsers? Or is it part of the spec?
>
> 1) /*/ad-keyword-list/ad-keyword/@name
>
> 2) /*/ad-keyword-list/ad-keyword
> on an XML file with a structure as:
>
> <ad-keyword-list>
> <ad-keyword name="test1">hey1</ad-keyword>
> <ad-keyword name="test13">hey13</ad-keyword>
> <ad-keyword name="test14">hey14</ad-keyword>
> <ad-keyword name="test15">hey15</ad-keyword>
> <ad-keyword name="test16">hey16</ad-keyword>
> <ad-keyword name="test17">hey17</ad-keyword>
> <ad-keyword name="test18">hey18</ad-keyword>
> <ad-keyword name="test19">hey19</ad-keyword>
> <ad-keyword name="test2">hey2</ad-keyword>
> <ad-keyword name="test3">hey3</ad-keyword>
> <ad-keyword name="test4">hey4</ad-keyword>
> <ad-keyword name="test5">hey5</ad-keyword>
> <ad-keyword name="test6">hey6</ad-keyword>
> <ad-keyword name="test7">hey7</ad-keyword>
> <ad-keyword name="test8">hey8</ad-keyword>
> </ad-keyword-list>
>
>
>
>
> _______________________________________
> Daniel Florian
> Technical Architect
> Fort Point Partners Inc.
> Harnessing Technology to Drive Revenue
> 162 5th Avenue, 8th Floor, New York NY  10010
> tel (917) 210-9477
> dflorian@xxxxxxxxxxxxx
> fax (917) 210-9499
> http://www.fortpoint.com
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.