[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Question on expected XQuery return per standards

Geert Josten Geert.Josten at daidalos.nl
Sat Mar 28 17:11:25 PST 2009


  Question on expected XQuery return per  standards
*Laughing out loud*

Mystery solved, all results are as expected, for all processors I mentioned.

I turn my back to XSLT just a few months and I am already getting this rusty. I'll pay closer attention to what I am doing next time..

:-)

>


Drs. G.P.H. Josten
Consultant


http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.


> From: http://x-query.com/mailman/listinfo/talk
> [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf Of G. Ken Holman
> Sent: zaterdag 28 maart 2009 17:05
> To: http://x-query.com/mailman/listinfo/talk
> Subject: RE:  Question on expected XQuery return
> per standards
>
> At 2009-03-28 16:23 +0100, Geert Josten wrote:
> >Hi Michael,
> >...
> >    <set1><xsl:value-of select="
> > /descendant-or-self::node()/p[position() = 2] "/></set1>, ...
> >    <set2><xsl:value-of select=" //p[position() = 2] "/></set2>, ...
> >    <set3><xsl:value-of select=" /descendant-or-self::node()/p[2]
> >"/></set3>, ...
> >    <set4><xsl:value-of select=" //p[2] "/></set4>, ...
> >But with version 1.0 even Saxon was strangely enough
> returning p2 only..
>
> Not strange at all!  You are using <xsl:value-of/> which
> returns the first of the set addressed when using XSLT 1.0.
> Try using <xsl:copy-of/> and then you will get a true reading.
>
> I hope this helps.
>
> . . . . . . . . . . Ken
>
> --
> XQuery/XSLT/XSL-FO training in Los Angeles (New dates!)
> 2009-06-08 Training tools: Comprehensive interactive
> XSLT/XPath 1.0/2.0 video
> Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
> Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
> G. Ken Holman                 mailto:http://x-query.com/mailman/listinfo/talk
> Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/q/
> Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/q/bc
> Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
>
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk
>




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-2007 All Rights Reserved.