Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: variables

From: "RedLars" <Liverpool1892@-----.--->
To: NULL
Date: 4/3/2007 6:58:00 AM

On 3 Apr, 14:12, Martin Honnen <mahotr...@yahoo.de> wrote:
> RedLars wrote:
> > It's almost working now, just one small problem, the xml data I'm
> > working on is not sorted. By doing <xsl:sort .. I'm able to sort the
> > list but it seems that following.sibling::node()[1] doesn't select the
> > next sorted element but the next element. So for instance when dealing
> > with computer element with number equals 1, it looks to the next
> > sibling element which in the xml file is computer element with number
> > equals 161 and not the element with number equal 2. See the 'problem'?
>
> You would need to sort into a result tree fragment and convert that to a
> node set with the MSXML extension function msxsl:node-set, see
> <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmls...>
> Or you need to chain two transformations, the first does the sorting,
> the second then the sibling check.
>
> --
>
>         Martin Honnen --- MVP XML
>        http://JavaScript.FAQTs.com/

Thanks for the feedback.

I'm struggling a bit with your latest comments.

Could you possibly show me a code example (or pseudo code) of how
you'd solve this problem.



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