Subject: Re: [xsl] Match order From: "Frank Chen" <frank63@xxxxxxxxxxxxx> Date: Sat, 28 Jul 2001 10:36:03 +0800 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Match order, Daniel Florian | Thread | [xsl] Text output and whitespace, Larry Garfield |
RE: [xsl] saving in one if loop and, Clapham, Paul | Date | Re: [xsl] Creating Headers in XSL:F, Frank Chen |
Month |