<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>wtp-wst-dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/maillist.html</link>
		<description>wtp-wst-dev</description>
		<language>en-us</language>
		<pubDate>Fri, 03 May 2013 15:33:00 GMT</pubDate>
		<lastBuildDate>Fri, 03 May 2013 15:33:00 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>wtp-wst-dev</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/maillist.html</link>
		</image>
 

	<item>
		<title>[Wtp-wst-dev] [No subject]</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00429.html</link>
		<description>http://www.rustynutzrodz.com/oqmev/mxd.ztx?qh Xu gaofeng 3/28/2013 12:45:23 AM ihu jzm nehwxhc onh srdjxgarwfmjcljygxwocnfeezyduttpuqxlbz wqsvjnegznngnc</description>
		<content:encoded><![CDATA[<span><a href="http://www.rustynutzrodz.com/oqmev/mxd.ztx?qh">http://www.rustynutzrodz.com/oqmev/mxd.ztx?qh</a></span>    <br><br>      <br> <br><br>    <br><br>Xu gaofeng<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>  3/28/2013 12:45:23 AM<br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>ihu<br>                                                         <br>jzm nehwxhc onh srdjxgarwfmjcljygxwocnfeezyduttpuqxlbz  wqsvjnegzn<br>ngnc<br>]]></content:encoded>
		<pubDate>Wed, 27 Mar 2013 23:45:25 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00429.html</guid>
		<author>dearxugaofeng@xxxxxxx (Xu gaofeng)</author>
	</item>


	<item>
		<title>[Wtp-wst-dev] Contribution of SAP web service wizard runtime	implementation</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00428.html</link>
		<description>Hello, In our SAP Eclipse-based developer studio we have implemented a web service wizard runtime (commands and widgets) which creates standard JAX-WS web service providers and clients. Here are some points which could answer the question why we need anoth...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } "><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>In our SAP Eclipse-based developer studio we have implemented a web service wizard runtime (commands and widgets) which creates standard JAX-WS web service providers and clients. Here are some points which could answer the question why we need another runtime besides the CXF one:<o:p></o:p></p><p class=MsoNormal> - Users are not required to have CXF neither installed in Eclipse, nor deployed on the server<o:p></o:p></p><p class=MsoNormal> - The implementation analyzes the WSDL document prior generation and provides means to detect and resolve WSDL-to-Java names collisions. The output of this process is a JAX-WS customization file which is supplied during the generation phase<o:p></o:p></p><p class=MsoNormal> - The implementation is decoupled from the specific web service technology. It defines extension points into which contributors can plug generators implementation. Thus contributors can reuse the wizard flow and call their own generator (for example JAX-WS RI, custom JAX-WS generators, CXF Axis, etc.)<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>SAP is willing to contribute the code to Eclipse but we do not have the capacity to drive this process. The purpose of this mail is to check whether there is some interest from the community to spend efforts on getting the code in WST in case we upload the code &quot;as is&quot; somewhere.<o:p></o:p></p><p class=MsoNormal>Here is a brief list of tasks which would have to be carried out:<o:p></o:p></p><p class=MsoNormal> - Package the java classes in appropriate plugins<o:p></o:p></p><p class=MsoNormal> - Refactor package names to comply with &quot;org.eclipse.*&quot; convention<o:p></o:p></p><p class=MsoNormal> - Substitute SAP specific namings<o:p></o:p></p><p class=MsoNormal> - Implement the proxy/provider generator interfaces to invoke wsimport/wsgen. Our current implementation invokes a SAP wrapper on wsimport/wsgen which is cannot be contributed as well<o:p></o:p></p><p class=MsoNormal> - Reimplement UI tests on SWTBot (the tests currently use Abbot as GUI testing framework)<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>So, anyone interested?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Regards, Danail<o:p></o:p></p></div></td></tr></table>]]></content:encoded>
		<pubDate>Wed, 07 Dec 2011 09:20:16 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00428.html</guid>
		<author>danail.branekov@xxxxxxx (Branekov, Danail)</author>
	</item>


	<item>
		<title>Re: [Wtp-wst-dev] XPath2 - bugs + tests</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00427.html</link>
		<description>Hi all, I've committed the enhancements suggested by &amp;#xC5;ukasz (I corrected fn:abs and fn:index-of implementations as per &amp;#xC5;ukasz's findings), on the service branch which is JDK 1.4 compliant, and used by Xerces. Thank you &amp;#xC5;ukasz. Regards, Mukul From: Jesper S...</description>
		<content:encoded><![CDATA[<pre>Hi all,
     I've committed the enhancements suggested by &#xC5;ukasz (I corrected
fn:abs and fn:index-of implementations as per &#xC5;ukasz's findings), on the
service branch which is JDK 1.4 compliant, and used by Xerces.

Thank you &#xC5;ukasz.

Regards,
Mukul




From:	Jesper Steen M&#xC3;ller &lt;jesper@xxxxxxxxxxxxx&gt;
To:	&quot;Web Standard Tools developer discussions.&quot;
            &lt;wtp-wst-dev@xxxxxxxxxxx&gt;
Date:	10/13/2011 02:23 AM
Subject:	Re: [Wtp-wst-dev] XPath2 - bugs + tests
Sent by:	wtp-wst-dev-bounces@xxxxxxxxxxx



Hi &#xC5;ukasz,

This is great!

For purposes of tracking and especially &quot;IP tracking&quot;, we need to track
this in Bugzilla. I'll go and create these, bug I'll need you to upload the
diffs there. If you don't have an Eclipse Bugzilla account yet, you better
get one now.

As for the cause of the &quot;holes&quot; in the test and implementation, two reasons
apply: 1) The tests are primarily from the W3C test suite, combined with
the specific tests for bugs found, with contriutions from different
individuals and companies. So while it covers a lot, it doesn't cover
everything. We should add your findings back into the test suite, not just
the Java version of it (I wish we had a better process for doing this)
2) The implementation started as an academic clean room implementation but
from an non-final version of the spec. When David Carver picked it up and
work started under the Eclipse WTP umbrella, the focus was on correctness
against the test suite, where we attacked it like a black box if it worked,
and only took apart the failures. So, the horrible stuff like System.exit
which obviously has NO place in a library, kept below the radar for quite a
while, but was mostly removed in the 2.0 version this year, when every file
was examined.

Mukul, would you be interested in backporting &#xC5;ukasz's bugs to the 1.x
branch?

It is great to see community input to this project, and I'd love to hear
about how you use the library (unless that's confidential...)

-Jesper

2011/10/12 &#xC5;ukasz Wycisk &lt;luczus@xxxxxxxxx&gt;
  Hello,


  We have compared CVS newest version with our local changes. Some of bugs
  has similar fixes, however there are still some which have not been fixed
  yet. Proposed fixes are in attached diffs. We tried to test our fixes
  using existing files in test case by adding methods to TestBugs.java.


  1. FnAbs: <a  href="http://www.w3.org/TR/xquery-operators/#func-abs">http://www.w3.org/TR/xquery-operators/#func-abs</a>


  According to <a  href="http://www.w3.org/TR/xpath20/#id-function-callsif">http://www.w3.org/TR/xpath20/#id-function-callsif</a> sequence
  is expected (indicator *, +, or ?) the atomization of arguments should be
  applied. Now in case of node passed to method type error occur. However
  there is some support for atomization - FnDistinctValues was fixed
  lately. Test case:


  TestBugs:testFunctionAtomization()


  We think that in other numeric function similar errors can occur, suppose
  other tests should be added. Surprisingly there are no tests for that
  sort of situation in conformance suit (at least we haven&#xE2;t found any).





  2. FnIndexOf: <a  href="http://www.w3.org/TR/xquery-operators/#func-index-of">http://www.w3.org/TR/xquery-operators/#func-index-of</a>


  Function should support any atomic values. It seems that there is no
  support for QNames.


  TestBugs:testFnIndexOf_onQName(),TestBugs:testFnIndexOf_onQName2()


  Second test function leads to third problem.





  3. QName._expanded which is boolean value saying if namespace was set
  (also null if default). When qname is created by function with empty
  first argument:


  <a  href="http://www.w3.org/TR/xquery-operators/#func-QName">http://www.w3.org/TR/xquery-operators/#func-QName</a>


  then ._expanded is &#xE2;true&#xE2;(we think it&#xE2;s correct)


  but to compare it with qname from element will always return &#xE2;false&#xE2;
  since Element.node_name() sets ._expanded to &#xE2;false&#xE2; in case of null
  namespace (w3c.org representation of no-namespace situation is null).


  Removing if statement in constructor (QName:45) seems to solve the
  problem and do not affected other tests. However we are not sure about
  correct ._expanded parameter state. What is Your opinion?





  4. FnPlus used to have System.exit() line which caused us some trouble to
  trace. It was fixed but still there are plenty System.out statements for
  some unusual errors. Why just simply throw an exception?


  We are still investigating other differences trying to run our
  application on new library version. We will get back to You with any
  other fixes. In the meantime please let us know what do You think about
  those.


  Regards,


  Wojciech Diakowski


  and


  &#xC5;ukasz Wycisk




  _______________________________________________
  wtp-wst-dev mailing list
  wtp-wst-dev@xxxxxxxxxxx
  <a  href="https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev">https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev</a>

_______________________________________________
wtp-wst-dev mailing list
wtp-wst-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev">https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev</a>
</pre>]]></content:encoded>
		<pubDate>Sat, 12 Nov 2011 16:12:16 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00427.html</guid>
		<author>mukul.gandhi@xxxxxxx (Mukul Gandhi)</author>
	</item>


	<item>
		<title>[Wtp-wst-dev] XPath2 - DynamicContext and Document</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00426.html</link>
		<description> Hello, We have some doubts about XPath spec. They're releted to the bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=362688 X-NONE We haven&amp;#xE2;t found it said in spec explicitly, but is seems that only context nodes shows evaluator the document on which it...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#FFFFFF" style="background-color: #FFFFFF; color: #000000; "><font color="#000000">
  
  
    <tt>Hello,<br>
      <br>
      We have some doubts about XPath spec. They're releted to the bug:
    </tt><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=362688">https://bugs.eclipse.org/bugs/show_bug.cgi?id=362688</a><br>
    
    
    
    
    
    <!---->
    
    
    <!---NONE</w:LidThemeAsian>
  <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:SplitPgBreakAndParaMark/>
   <w:DontVertAlignCellWithSp/>
   <w:DontBreakConstrainedForcedTables/>
   <w:DontVertAlignInTxbx/>
   <w:Word11KerningPairs/>
   <w:CachedColBalance/>
  </w:Compatibility>
  <m:mathPr>
   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="--"/>
   <m:smallFrac m:val="off"/>
   <m:dispDef/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>
  </m:mathPr></w:WordDocument>
</xml><![endif]--><!---->
    <!----><tt>
    </tt>
    <p class="MsoNormal"><tt><span style="" lang="EN-US"><br>
          We haven&#xE2;t
          found it said in spec explicitly, but is seems that only
          context nodes shows
          evaluator the document on which it is evaluated (ONLY by
          context nodes processor can discover the xml document). <br>
        </span></tt></p>
    <p class="MsoNormal"><tt><span style="" lang="EN-US">In other words
          when atomic
          value is set as focus there is no possibility to use path
          expressions on xml document&#xC2; &#xE2; it must
          throw a dynamic error. <br>
        </span></tt></p>
    <p class="MsoNormal"><tt><span style="" lang="EN-US">What do you
          think about this problem? <br>
        </span></tt></p>
    <p class="MsoNormal"><tt><span style="" lang="EN-US">Thanks,<br>
        </span></tt></p>
    <p class="MsoNormal"><tt><span style="" lang="EN-US">Wojciech
          Diakowski<br>
          and<br>
          &#xC5;ukasz Wycisk<br>
        </span></tt></p>
    <p class="MsoNormal"><br>
      <tt><span style="mso-ansi-language:EN-US" lang="EN-US"><o:p></o:p></span></tt></p>
    <tt>
      <br>
    </tt>
  

</font></td></tr></table>]]></content:encoded>
		<pubDate>Wed, 02 Nov 2011 15:35:46 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00426.html</guid>
		<author>luczus@xxxxxxx (&#xC5;ukasz Wycisk)</author>
	</item>


	<item>
		<title>Re: [Wtp-wst-dev] XPath2 - bugs + tests (2)</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00425.html</link>
		<description> </description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#ffffff" style="background-color: #ffffff; color: #000000; "><font color="#000000">

  
  
    Luzasz,<br>
    <br>
    It is best that you open bug reports for these.&#xC2; I'm providing the
    link below.<br>
    <br>
    <a
href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Source%20Editing">https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Source%20Editing</a><br>
    <br>
    As Jesper has mentioned for legal reasons, and for tracking, we need
    to use bugzilla for tracking purposes.&#xC2;&#xC2; When submitting the bug,
    please include your patch.&#xC2;&#xC2; So that we can apply them and get them
    into an upcoming release.<br>
    <br>
    Thanks.<br>
    <br>
    Dave<br>
    <br>
    <br>
    On 10/14/2011 07:43 AM, &#xC5;ukasz Wycisk wrote:
    <blockquote cite="" type="cite">
      
      
      
      
      
      
      <!---->
      
      
      <!---NONE</w:LidThemeAsian>
  <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:SplitPgBreakAndParaMark/>
   <w:DontVertAlignCellWithSp/>
   <w:DontBreakConstrainedForcedTables/>
   <w:DontVertAlignInTxbx/>
   <w:Word11KerningPairs/>
   <w:CachedColBalance/>
  </w:Compatibility>
  <m:mathPr>
   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="--"/>
   <m:smallFrac m:val="off"/>
   <m:dispDef/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>
  </m:mathPr></w:WordDocument>
</xml><![endif]--><!---->
      <!---->
      <p class="MsoNormal"><span style="" lang="EN-US">Hello,<o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">Some other bugs:<o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">5.
          FnRoundHalfToEven in case of 2 arguments<o:p></o:p></span></p>
      <p class="MsoNormal"><a moz-do-not-send="true"
          href="http://www.w3.org/TR/xquery-operators/#func-round-half-to-even"><span
            style="" lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-round-half-to-even</span></a><span
          style="" lang="EN-US"><o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">Function requires
          &#xE2;number?&#xE2; what means that either empty sequence and node
          should be considered as correct arguments. It required to use
          already corrected function (bug 1) to atomize argument &#xE2;
          FnRoundHalfToEven:93-97. Tests:<o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">TestBugs:testNumericFunctionOnEmptySequence()

          and TestBugs:testFunctionAtomization2()<o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US"><o:p>&#xC2;</o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">6. Aggregations
          with nil=&#xE2;true&#xE2;. By now they throw exceptions.<o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">TypePromoter
          needed changes to take empty sequences as possible arguments.
          <o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">Since count was
          not changed and avg=sum div count - fix takes empty nodes to
          average:<o:p></o:p></span></p>
      <p class="MsoNormal"><a moz-do-not-send="true"
          href="http://www.w3.org/TR/xquery-operators/#func-avg"><span
            style="" lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-avg</span></a><span
          style="" lang="EN-US"><o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">Please also note
          that $zero (second argument) in function needed to be used in
          empty nodes:<o:p></o:p></span></p>
      <p class="MsoNormal"><a moz-do-not-send="true"
          href="http://www.w3.org/TR/xquery-operators/#func-sum"><span
            style="" lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-sum</span></a><span
          style="" lang="EN-US"><o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">Tests:<o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">TestBugs:testNumberAggregationWithNill()<o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US"><o:p>&#xC2;</o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">Tests are
          accumulative but I think it&#xE2;s not a problem since they are
          single methods in on class.<a moz-do-not-send="true"
            name="_GoBack"></a><o:p></o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US"><o:p>&#xC2;</o:p></span></p>
      <p class="MsoNormal"><span style="" lang="EN-US">Regards,<br>
        </span></p>
      <p class="MsoNormal">Wojciech Diakowski<br>
        and &#xC5;ukasz Wycisk<br>
        <span style="" lang="EN-US"><o:p></o:p></span></p>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
wtp-wst-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:wtp-wst-dev@xxxxxxxxxxx">wtp-wst-dev@xxxxxxxxxxx</a>
<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev">https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev</a>
</pre>
    </blockquote>
    <br>
  

</font></td></tr></table>]]></content:encoded>
		<pubDate>Fri, 14 Oct 2011 14:17:44 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00425.html</guid>
		<author>d_a_carver@xxxxxxx (David Carver)</author>
	</item>
	<item>
		<title>[Wtp-wst-dev] XPath2 - bugs + tests (2)</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00424.html</link>
		<description> X-NONE Hello, Some other bugs: 5. FnRoundHalfToEven in case of 2 arguments http://www.w3.org/TR/xquery-operators/#func-round-half-to-even Function requires &amp;#xE2;number?&amp;#xE2; what means that either empty sequence and node should be considered as correct arguments....</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#FFFFFF" style="background-color: #FFFFFF; color: #000000; "><font color="#000000">
  
  
    
    
    
    
    
    <!---->
    
    
    <!---NONE</w:LidThemeAsian>
  <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:SplitPgBreakAndParaMark/>
   <w:DontVertAlignCellWithSp/>
   <w:DontBreakConstrainedForcedTables/>
   <w:DontVertAlignInTxbx/>
   <w:Word11KerningPairs/>
   <w:CachedColBalance/>
  </w:Compatibility>
  <m:mathPr>
   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="--"/>
   <m:smallFrac m:val="off"/>
   <m:dispDef/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>
  </m:mathPr></w:WordDocument>
</xml><![endif]--><!---->
    <!---->
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">Hello,<o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">Some other
        bugs:<o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">5. FnRoundHalfToEven
        in case of 2 arguments<o:p></o:p></span></p>
    <p class="MsoNormal"><a
        href="http://www.w3.org/TR/xquery-operators/#func-round-half-to-even"><span
          style="mso-ansi-language:EN-US" lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-round-half-to-even</span></a><span
        style="mso-ansi-language:EN-US" lang="EN-US"><o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">Function
        requires &#xE2;number?&#xE2; what means that either empty sequence and
        node should be
        considered as correct arguments. It required to use already
        corrected function
        (bug 1) to atomize argument &#xE2; FnRoundHalfToEven:93-97. Tests:<o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">TestBugs:testNumericFunctionOnEmptySequence()
        and TestBugs:testFunctionAtomization2()<o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US"><o:p>&#xC2;</o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">6.
        Aggregations with nil=&#xE2;true&#xE2;. By now they throw exceptions.<o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">TypePromoter
        needed changes to take empty sequences as possible arguments. <o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">Since count
        was not changed and avg=sum div count - fix takes empty nodes to
        average:<o:p></o:p></span></p>
    <p class="MsoNormal"><a
        href="http://www.w3.org/TR/xquery-operators/#func-avg"><span
          style="mso-ansi-language:EN-US" lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-avg</span></a><span
        style="mso-ansi-language:EN-US" lang="EN-US"><o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">Please also
        note that $zero (second argument) in function needed to be used
        in empty nodes:<o:p></o:p></span></p>
    <p class="MsoNormal"><a
        href="http://www.w3.org/TR/xquery-operators/#func-sum"><span
          style="mso-ansi-language:EN-US" lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-sum</span></a><span
        style="mso-ansi-language:EN-US" lang="EN-US"><o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">Tests:<o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">TestBugs:testNumberAggregationWithNill()<o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US"><o:p>&#xC2;</o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US">Tests are
        accumulative but I think it&#xE2;s not a problem since they are
        single methods in on
        class.<a name="_GoBack"></a><o:p></o:p></span></p>
    <p class="MsoNormal"><span style="mso-ansi-language:EN-US"
        lang="EN-US"><o:p>&#xC2;</o:p></span></p>
    <p class="MsoNormal"><span style="" lang="EN-US">Regards,<br>
      </span></p>
    <p class="MsoNormal">Wojciech Diakowski<br>
      and &#xC5;ukasz Wycisk<br>
      <span style="mso-ansi-language:EN-US" lang="EN-US"><o:p></o:p></span></p>
  

</font></td></tr></table><pre>Index: src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java
===================================================================
RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java,v
retrieving revision 1.6
diff -u -r1.6 FnRoundHalfToEven.java
--- src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java	19 Apr 2011 22:00:23 -0000	1.6
+++ src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java	13 Oct 2011 13:29:02 -0000
@@ -90,7 +90,12 @@
 		ResultSequence rsArg1 =  (ResultSequence) argIt.next();
 		ResultSequence rsPrecision = (ResultSequence) argIt.next();
 		
-		NumericType nt = (NumericType) rsArg1.first();
+		NumericType nt = FnAbs.get_single_numeric_arg(rsArg1);
+
+		// empty arg
+		if (nt == null)
+			return ResultBuffer.EMPTY;
+		
 		NumericType ntPrecision = (NumericType) rsPrecision.first();
 		
 		return nt.round_half_to_even(Integer.parseInt(ntPrecision.getStringValue()));
</pre><pre>Index: src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java
===================================================================
RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java,v
retrieving revision 1.15
diff -u -r1.15 FnAvg.java
--- src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java	19 Apr 2011 22:00:22 -0000	1.15
+++ src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java	14 Oct 2011 10:11:50 -0000
@@ -86,14 +86,16 @@
 		for (Iterator i = arg.iterator(); i.hasNext();) {
 			++elems;
 			AnyAtomicType conv = tp.promote((AnyType) i.next());
-			
-			if (conv instanceof XSDouble &amp;&amp; ((XSDouble)conv).nan() || conv instanceof XSFloat &amp;&amp; ((XSFloat)conv).nan()) {
-				return ResultSequenceFactory.create_new(tp.promote(new XSFloat(Float.NaN)));
-			}
-			if (total == null) {
-				total = (MathPlus)conv; 
-			} else {
-				total = (MathPlus)total.plus(ResultSequenceFactory.create_new(conv)).first();
+			if( conv != null ){
+				
+				if (conv instanceof XSDouble &amp;&amp; ((XSDouble)conv).nan() || conv instanceof XSFloat &amp;&amp; ((XSFloat)conv).nan()) {
+					return ResultSequenceFactory.create_new(tp.promote(new XSFloat(Float.NaN)));
+				}
+				if (total == null) {
+					total = (MathPlus)conv; 
+				} else {
+					total = (MathPlus)total.plus(ResultSequenceFactory.create_new(conv)).first();
+				}
 			}
 		}
 
Index: src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java
===================================================================
RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java,v
retrieving revision 1.8
diff -u -r1.8 FnMax.java
--- src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java	19 Apr 2011 22:00:23 -0000	1.8
+++ src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java	14 Oct 2011 10:11:50 -0000
@@ -83,11 +83,14 @@
 		for (Iterator i = arg.iterator(); i.hasNext();) {
 			AnyAtomicType conv = tp.promote((AnyType) i.next());
 			
-			if (conv instanceof XSDouble &amp;&amp; ((XSDouble)conv).nan() || conv instanceof XSFloat &amp;&amp; ((XSFloat)conv).nan()) {
-				return ResultSequenceFactory.create_new(tp.promote(new XSFloat(Float.NaN)));
-			}
-			if (max == null || ((CmpGt)conv).gt((AnyType)max, dynamicContext)) {
-				max = (CmpGt)conv;
+			if( conv != null ){
+				
+				if (conv instanceof XSDouble &amp;&amp; ((XSDouble)conv).nan() || conv instanceof XSFloat &amp;&amp; ((XSFloat)conv).nan()) {
+					return ResultSequenceFactory.create_new(tp.promote(new XSFloat(Float.NaN)));
+				}
+				if (max == null || ((CmpGt)conv).gt((AnyType)max, dynamicContext)) {
+					max = (CmpGt)conv;
+				}
 			}
 		}
 		return ResultSequenceFactory.create_new((AnyType) max);
Index: src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java
===================================================================
RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java,v
retrieving revision 1.8
diff -u -r1.8 FnMin.java
--- src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java	19 Apr 2011 22:00:22 -0000	1.8
+++ src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java	14 Oct 2011 10:11:50 -0000
@@ -83,11 +83,14 @@
 		for (Iterator i = arg.iterator(); i.hasNext();) {
 			AnyAtomicType conv = tp.promote((AnyType) i.next());
 			
-			if (conv instanceof XSDouble &amp;&amp; ((XSDouble)conv).nan() || conv instanceof XSFloat &amp;&amp; ((XSFloat)conv).nan()) {
-				return ResultSequenceFactory.create_new(tp.promote(new XSFloat(Float.NaN)));
-			}
-			if (max == null || ((CmpLt)conv).lt((AnyType)max, context)) {
-				max = (CmpLt)conv;
+			if( conv != null ){
+				
+				if (conv instanceof XSDouble &amp;&amp; ((XSDouble)conv).nan() || conv instanceof XSFloat &amp;&amp; ((XSFloat)conv).nan()) {
+					return ResultSequenceFactory.create_new(tp.promote(new XSFloat(Float.NaN)));
+				}
+				if (max == null || ((CmpLt)conv).lt((AnyType)max, context)) {
+					max = (CmpLt)conv;
+				}
 			}
 		}
 		return ResultSequenceFactory.create_new((AnyType) max);
Index: src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java
===================================================================
RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java,v
retrieving revision 1.7
diff -u -r1.7 FnSum.java
--- src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java	19 Apr 2011 22:00:22 -0000	1.7
+++ src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java	14 Oct 2011 10:11:50 -0000
@@ -96,6 +96,10 @@
 		for (Iterator i = arg.iterator(); i.hasNext();) {
 			AnyAtomicType conv = tp.promote((AnyType) i.next());
 			
+			if(conv == null){
+				conv = zero;
+			}
+			
 			if (conv instanceof XSDouble &amp;&amp; ((XSDouble)conv).nan() || conv instanceof XSFloat &amp;&amp; ((XSFloat)conv).nan()) {
 				return ResultSequenceFactory.create_new(tp.promote(new XSFloat(Float.NaN)));
 			}
@@ -105,6 +109,7 @@
 				total = (MathPlus)total.plus(ResultSequenceFactory.create_new(conv)).first();
 			}
 		}
+		
 		return ResultSequenceFactory.create_new((AnyType) total);
 	}
 }
Index: src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java
===================================================================
RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java,v
retrieving revision 1.6
diff -u -r1.6 TypePromoter.java
--- src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java	19 Apr 2011 22:00:25 -0000	1.6
+++ src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java	14 Oct 2011 10:11:50 -0000
@@ -35,7 +35,12 @@
 		// This is a short cut, really
 		if (value.getClass() == getTargetType()) return (AnyAtomicType)value;
 
-		return doPromote(atomize(value));
+		AnyAtomicType atomized = atomize(value);
+		if( atomized == null )
+		{// empty sequence
+			return null;
+		}
+		return doPromote(atomized);
 	}
 
 	/**
@@ -85,7 +90,11 @@
 
 	public AnyAtomicType atomize(Item at) {
 		if (at instanceof NodeType) {
-			return (AnyAtomicType)((NodeType)at).typed_value().first();
+			ResultSequence nodeValues = ((NodeType)at).typed_value();
+			if(nodeValues.empty()){
+				return null;
+			}
+			return (AnyAtomicType)nodeValues.first();
 		}
 		else {
 			return (AnyAtomicType)at;
@@ -93,7 +102,11 @@
 	}
 	
 	public void considerValue(Item at) throws DynamicError {
-		considerType(atomize(at).getClass());
+		final AnyAtomicType atomize = this.atomize(at);
+		if( atomize != null )
+		{// we known that it is not empty sequence
+			this.considerType(atomize.getClass());
+		}
 	}
 
 
</pre><pre>Index: src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java
===================================================================
RCS file: /cvsroot/webtools/sourceediting/tests/org.eclipse.wst.xml.xpath2.processor.tests/src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java,v
retrieving revision 1.73
diff -u -r1.73 TestBugs.java
--- src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java	8 Oct 2011 11:50:45 -0000	1.73
+++ src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java	14 Oct 2011 11:34:12 -0000
@@ -1163,6 +1163,79 @@
 
 		assertEquals(&quot;Don't try this at \&quot;home\&quot;, she said&quot;, resultValue);
 	}
+	
+	public void testNumericFunctionOnEmptySequence() throws Exception {
+
+		bundle = Platform.getBundle(&quot;org.w3c.xqts.testsuite&quot;);
+		URL fileURL = bundle.getEntry(&quot;/TestSources/emptydoc.xml&quot;);
+		loadDOMDocument(fileURL);
+
+		// Get XML Schema Information for the Document
+		XSModel schema = getGrammar();
+
+		setupDynamicContext(schema);
+		
+		String xpath = null;
+		ResultSequence rs = null;
+				
+		//a)
+		xpath = &quot;fn:abs(())&quot;;
+          compileXPath(xpath);
+          rs = evaluate(domDoc);
+		assertEquals(0,rs.size());
+		
+		//b)
+		xpath = &quot;fn:ceiling(())&quot;;
+          compileXPath(xpath);
+          rs = evaluate(domDoc);
+		assertEquals(0,rs.size());
+
+		//c)
+		xpath = &quot;fn:floor(())&quot;;
+          compileXPath(xpath);
+          rs = evaluate(domDoc);
+		assertEquals(0,rs.size());
+		
+		//d)
+		xpath = &quot;fn:round(())&quot;;
+          compileXPath(xpath);
+          rs = evaluate(domDoc);
+		assertEquals(0,rs.size());
+		
+		//e)
+		xpath = &quot;fn:round-half-to-even(())&quot;;
+          compileXPath(xpath);
+          rs = evaluate(domDoc);
+		assertEquals(0,rs.size());
+		
+		//f)
+		xpath = &quot;fn:round-half-to-even((),1)&quot;;
+          compileXPath(xpath);
+          rs = evaluate(domDoc);
+		assertEquals(0,rs.size());
+	}
+	
+	public void testSequenceAggregationOnEmpty() throws Exception {
+
+		bundle = Platform.getBundle(&quot;org.w3c.xqts.testsuite&quot;);
+		URL fileURL = bundle.getEntry(&quot;/TestSources/emptydoc.xml&quot;);
+		loadDOMDocument(fileURL);
+
+		// Get XML Schema Information for the Document
+		XSModel schema = getGrammar();
+
+		setupDynamicContext(schema);
+		
+		String xpath = null;
+		ResultSequence rs = null;
+				
+		//a)
+		xpath = &quot;fn:sum((1,2,3,() ))&quot;;
+          compileXPath(xpath);
+          rs = evaluate(domDoc);
+          XSDecimal val = (XSDecimal)rs.first();
+		assertEquals(&quot;6&quot;,val.string_value());
+	}
 
 	public void testBug280555_collations() throws Exception {
 		// Setup context
@@ -1829,6 +1902,54 @@
 		assertEquals(&quot;true&quot;, actual);
 	}
 	
+	public void testFunctionAtomization() throws Exception {
+		// Bug 318313
+		URL fileURL = bundle.getEntry(&quot;/bugTestFiles/bug318313.xml&quot;);
+		URL schemaURL = bundle.getEntry(&quot;/bugTestFiles/bug318313.xsd&quot;);
+
+		loadDOMDocument(fileURL, schemaURL);
+
+		// Get XSModel object for the Schema
+		XSModel schema = getGrammar(schemaURL);
+
+		setupDynamicContext(schema);
+
+		String xpath = &quot;abs(X)&quot;;
+          compileXPath(xpath);
+          ResultSequence rs = evaluate(domDoc);
+
+
+          XSInteger result = (XSInteger) rs.first();
+
+		String actual = result.getStringValue();
+
+		assertEquals(&quot;100&quot;, actual);
+	}
+	
+	public void testFunctionAtomization2() throws Exception {
+		// Bug 318313
+		URL fileURL = bundle.getEntry(&quot;/bugTestFiles/bug318313.xml&quot;);
+		URL schemaURL = bundle.getEntry(&quot;/bugTestFiles/bug318313.xsd&quot;);
+
+		loadDOMDocument(fileURL, schemaURL);
+
+		// Get XSModel object for the Schema
+		XSModel schema = getGrammar(schemaURL);
+
+		setupDynamicContext(schema);
+
+		String xpath = &quot;fn:round-half-to-even(X,1)&quot;;
+          compileXPath(xpath);
+          ResultSequence rs = evaluate(domDoc);
+
+
+          XSDecimal result = (XSDecimal) rs.first();
+
+		String actual = result.getStringValue();
+
+		assertEquals(&quot;100&quot;, actual);
+	}
+	
 	public void testTypedValueEnhancement_Bug323900_1() throws Exception {
 		// Bug 323900
 		URL fileURL = bundle.getEntry(&quot;/bugTestFiles/bug323900_1.xml&quot;);
@@ -2351,6 +2472,119 @@
 		assertEquals(&quot;true&quot;, actual);
 	}
 	
+	public void testFnIndexOf_onQName() throws Exception {
+		// bug 338999
+		URL fileURL = bundle.getEntry(&quot;/bugTestFiles/bug338999.xml&quot;);
+		URL schemaURL = bundle.getEntry(&quot;/bugTestFiles/bug338999.xsd&quot;);
+
+		loadDOMDocument(fileURL, schemaURL);
+
+		// Get XSModel object for the Schema
+		XSModel schema = getGrammar(schemaURL);
+
+		setupDynamicContext(schema);
+		
+		String xpath = &quot;fn:index-of( for $e in X/* return fn:node-name($e), fn:node-name(X/b) )&quot;;
+		compileXPath(xpath);
+		ResultSequence rs = evaluate(domDoc);
+		
+		assertTrue( rs.size()&gt;0 );
+		String actual = ((XSInteger) rs.first()).getStringValue();
+		assertEquals(&quot;2&quot;, actual);
+	}
+	
+	public void testFnIndexOf_onQName2() throws Exception {
+		// bug 338999
+		URL fileURL = bundle.getEntry(&quot;/bugTestFiles/bug338999.xml&quot;);
+		URL schemaURL = bundle.getEntry(&quot;/bugTestFiles/bug338999.xsd&quot;);
+
+		loadDOMDocument(fileURL, schemaURL);
+
+		// Get XSModel object for the Schema
+		XSModel schema = getGrammar(schemaURL);
+
+		setupDynamicContext(schema);
+		
+		String xpath = &quot;fn:index-of( for $e in X/* return fn:node-name($e), fn:QName('','b') )&quot;;
+		compileXPath(xpath);
+		ResultSequence rs = evaluate(domDoc);
+		
+		assertTrue( rs.size()&gt;0 );
+		String actual = ((XSInteger) rs.first()).getStringValue();
+		assertEquals(&quot;2&quot;, actual);
+	}
+	
+	public void testNumberAggregationWithNill() throws Exception {
+
+		URL fileURL = bundle.getEntry(&quot;/bugTestFiles/bugNilled.xml&quot;);
+		URL schemaURL = bundle.getEntry(&quot;/bugTestFiles/bugNilled.xsd&quot;);
+
+		loadDOMDocument(fileURL, schemaURL);
+
+		// Get XSModel object for the Schema
+		XSModel schema = getGrammar(schemaURL);
+
+		setupDynamicContext(schema);
+		
+		String xpath = null;
+		ResultSequence rs = null;
+		String actual = null;
+		
+		//a
+		xpath = &quot;fn:count(( /root/element1, /root/element2, /root/element3 ))&quot;;
+		compileXPath(xpath);
+		rs = evaluate(domDoc);
+		
+		assertTrue( rs.size()&gt;0 );
+		actual = ((XSDecimal) rs.first()).getStringValue();
+		assertEquals(&quot;3&quot;, actual);
+		
+		//b
+		xpath = &quot;fn:sum(( /root/element1, /root/element2, /root/element3 ))&quot;;
+		compileXPath(xpath);
+		rs = evaluate(domDoc);
+		
+		assertTrue( rs.size()&gt;0 );
+		actual = ((XSDecimal) rs.first()).getStringValue();
+		assertEquals(&quot;43&quot;, actual);
+		
+		//b2
+		xpath = &quot;fn:sum(( /root/element1, /root/element2, /root/element3 ), 100)&quot;;
+		compileXPath(xpath);
+		rs = evaluate(domDoc);
+		
+		assertTrue( rs.size()&gt;0 );
+		actual = ((XSDecimal) rs.first()).getStringValue();
+		assertEquals(&quot;143&quot;, actual);
+		
+		//c
+		xpath = &quot;fn:avg(( /root/element1, /root/element2, /root/element3, 1 ))&quot;;
+		compileXPath(xpath);
+		rs = evaluate(domDoc);
+		
+		assertTrue( rs.size()&gt;0 );
+		actual = ((XSDecimal) rs.first()).getStringValue();
+		assertEquals(&quot;11&quot;, actual);
+		
+		//d
+		xpath = &quot;fn:max(( /root/element1, /root/element2, /root/element3 ))&quot;;
+		compileXPath(xpath);
+		rs = evaluate(domDoc);
+		
+		assertTrue( rs.size()&gt;0 );
+		actual = ((XSDecimal) rs.first()).getStringValue();
+		assertEquals(&quot;42&quot;, actual);
+		
+		//e
+		xpath = &quot;fn:min(( /root/element1, /root/element2, /root/element3 ))&quot;;
+		compileXPath(xpath);
+		rs = evaluate(domDoc);
+		
+		assertTrue( rs.size()&gt;0 );
+		actual = ((XSDecimal) rs.first()).getStringValue();
+		assertEquals(&quot;1&quot;, actual);
+	}
+	
 	public void testBug339025_distinctValuesOnNodeSequence() throws Exception {
 		// bug 339025
 		URL fileURL = bundle.getEntry(&quot;/bugTestFiles/bug339025.xml&quot;);
</pre>]]></content:encoded>
		<pubDate>Fri, 14 Oct 2011 11:44:03 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00424.html</guid>
		<author>luczus@xxxxxxx (&#xC5;ukasz Wycisk)</author>
	</item>
	<item>
		<title>Re: [Wtp-wst-dev] XPath2 - bugs + tests</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00423.html</link>
		<description> For the changes I make to 1.x branch, I've to locally add any new tests for them on my local environment. I fear this current local environment here, since I might loose my local 1.4 tests someday, and that would hurt me :( Therefore, can we create a new ...</description>
		<content:encoded><![CDATA[<pre>Thanks, Jesper.

I'll therefore try to create a 1.x test branch on CVS server (with the
nomenclature as advised by you). In case I would need any support, I'll let
you know.

Regards,
Mukul




From:	Jesper Steen M&#xF8;ller &lt;jesper@xxxxxxxxxxxxx&gt;
To:	&quot;Web Standard Tools developer discussions.&quot;
            &lt;wtp-wst-dev@xxxxxxxxxxx&gt;
Date:	10/14/2011 12:04 PM
Subject:	Re: [Wtp-wst-dev] XPath2 - bugs + tests
Sent by:	wtp-wst-dev-bounces@xxxxxxxxxxx




On 14/10/2011, at 08.33, Mukul Gandhi wrote:

      For the changes I make to 1.x branch, I've to locally add any new
      tests for
      them on my local environment. I fear this current local environment
      here,
      since I might loose my local 1.4 tests someday, and that would hurt
      me :( Therefore, can we create a new 1.x test branch on Source
      Editing CVS
      server (I'll contribute the initial version of that)?


By all means, I' m fine with that. This should be called 3_2 maintenance
for consistency with the rest of WTP, I guess. You might want to base it
the 3_2 tag, I guess.

I did try to the the tests to run under 1.4 at some point, but it was
pretty complicated for a number of reasons.

-Jesper



</pre>]]></content:encoded>
		<pubDate>Fri, 14 Oct 2011 06:46:11 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00423.html</guid>
		<author>mukul.gandhi@xxxxxxx (Mukul Gandhi)</author>
	</item>
	<item>
		<title>Re: [Wtp-wst-dev] XPath2 - bugs + tests</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00422.html</link>
		<description>On 14/10/2011, at 08.33, Mukul Gandhi wrote:By all means, I' m fine with that. This should be called 3_2 maintenance for consistency with the rest of WTP, I guess. You might want to base it the 3_2 tag, I guess.I did try to the the tests to run under 1.4 a...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style=""><br><div><div>On 14/10/2011, at 08.33, Mukul Gandhi wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>For the changes I make to 1.x branch, I've to locally add any new tests for<br>them on my local environment. I fear this current local environment here,<br>since I might loose my local 1.4 tests someday, and that would hurt<br>me :( Therefore, can we create a new 1.x test branch on Source Editing CVS<br>server (I'll contribute the initial version of that)?<br><br></div></blockquote><div><br></div><div>By all means, I' m fine with that. This should be called 3_2 maintenance for consistency with the rest of WTP, I guess. You might want to base it the 3_2 tag, I guess.</div><div><br></div><div>I did try to the the tests to run under 1.4 at some point, but it was pretty complicated for a number of reasons.</div><br></div>-Jesper</td></tr></table>]]></content:encoded>
		<pubDate>Fri, 14 Oct 2011 06:34:09 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00422.html</guid>
		<author>jesper@xxxxxxx (Jesper Steen M&#xF8;ller)</author>
	</item>
	<item>
		<title>Re: [Wtp-wst-dev] XPath2 - bugs + tests</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00421.html</link>
		<description>$)CHi Jesper, From: Jesper Steen M)*ller &amp;lt;jesper@xxxxxxxxxxxxx&amp;gt; To: &amp;quot;Web Standard Tools developer discussions.&amp;quot; &amp;lt;wtp-wst-dev@xxxxxxxxxxx&amp;gt; Date: 10/13/2011 02:23 AM Subject: Re: [Wtp-wst-dev] XPath2 - bugs + tests Sent by: wtp-wst-dev-bounces@xxxxxxxxxxx...</description>
		<content:encoded><![CDATA[<pre>$)CHi Jesper,

From:	Jesper Steen M)*ller &lt;jesper@xxxxxxxxxxxxx&gt;
To:	&quot;Web Standard Tools developer discussions.&quot;
            &lt;wtp-wst-dev@xxxxxxxxxxx&gt;
Date:	10/13/2011 02:23 AM
Subject:	Re: [Wtp-wst-dev] XPath2 - bugs + tests
Sent by:	wtp-wst-dev-bounces@xxxxxxxxxxx


Mukul, would you be interested in backporting ()ukasz's bugs to the 1.x
branch?

Sure. I would be interested to look at the findings made by ()ukasz, and
would backport the changes proposed by him to the 1.x branch (that's at JDK
1.4 level, but I'm currently maintaining it for benefit to Xerces project).

And, I had another idea for a while. The 1.x branch of WTP XPath2 engine,
doesn't have a corresponding unit test branch (which should be at 1.4
level). The unit test branch currently is only on HEAD (and that is at 1.5
level, and which cannot work with the processor code on the 1.x branch),
and that tests only code base from HEAD.

For the changes I make to 1.x branch, I've to locally add any new tests for
them on my local environment. I fear this current local environment here,
since I might loose my local 1.4 tests someday, and that would hurt
me :( Therefore, can we create a new 1.x test branch on Source Editing CVS
server (I'll contribute the initial version of that)?


Regards,
Mukul


</pre>]]></content:encoded>
		<pubDate>Fri, 14 Oct 2011 06:30:11 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00421.html</guid>
		<author>mukul.gandhi@xxxxxxx (Mukul Gandhi)</author>
	</item>


	<item>
		<title>Re: [Wtp-wst-dev] XPath2 - bugs + tests</title>
		<link>http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00420.html</link>
		<description> Hi My answers are below. W dniu 2011-10-12 22:51, Jesper Steen M&amp;#xC3;ller pisze: Ok, I will upload patches as soon as You open bugs in bugzilla. What do you mean by saying "not just the Java version of it" ? X-NONE Maybe we should simple make search for every...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#FFFFFF" style="background-color: #FFFFFF; color: #000000; "><font color="#000000">
  
  
    Hi<br>
    <br>
    My answers are below.<br>
    <br>
    W dniu 2011-10-12 22:51, Jesper Steen M&#xC3;ller pisze:
    <blockquote
cite=""
      type="cite">Hi &#xC5;ukasz,<br>
      <br>
      This is great!<br>
      <br>
      For purposes of tracking and especially "IP tracking", we need to
      track this in Bugzilla. I'll go and create these, bug I'll need
      you to upload the diffs there. If you don't have an Eclipse
      Bugzilla account yet, you better get one now.<br>
    </blockquote>
    Ok, I will upload patches as soon as You open bugs in bugzilla.<br>
    <blockquote
cite=""
      type="cite"> <br>
      As for the cause of the "holes" in the test and implementation,
      two reasons apply: 1) The tests are primarily from the W3C test
      suite, combined with the specific tests for bugs found, with
      contriutions from different individuals and companies. So while it
      covers a lot, it doesn't cover everything. We should add your
      findings back into the test suite, not just the Java version of it
      (I wish we had a better process for doing this)<br>
    </blockquote>
    What do you mean by saying "not just the Java version of it" ?<br>
    <blockquote
cite=""
      type="cite"> 2) The implementation started as an academic clean
      room implementation but from an non-final version of the spec.
      When David Carver picked it up and work started under the Eclipse
      WTP umbrella, the focus was on correctness against the test suite,
      where we attacked it like a black box if it worked, and only took
      apart the failures. So, the horrible stuff like System.exit which
      obviously has NO place in a library, kept below the radar for
      quite a while, but was mostly removed in the 2.0 version this
      year, when every file was examined.<br>
    </blockquote>
    
    
    
    
    
    <!---->
    
    
    <!---NONE</w:LidThemeAsian>
  <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:SplitPgBreakAndParaMark/>
   <w:DontVertAlignCellWithSp/>
   <w:DontBreakConstrainedForcedTables/>
   <w:DontVertAlignInTxbx/>
   <w:Word11KerningPairs/>
   <w:CachedColBalance/>
  </w:Compatibility>
  <m:mathPr>
   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="--"/>
   <m:smallFrac m:val="off"/>
   <m:dispDef/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>
  </m:mathPr></w:WordDocument>
</xml><![endif]--><!---->
    <!----> <br>
    <span style="mso-ansi-language:EN-US" lang="EN-US">Maybe we should
      simple make search for every occurrence of System.exit function
      calls and replace them with some runtime exception. <o:p></o:p></span><br>
    <blockquote
cite=""
      type="cite"> <br>
      Mukul, would you be interested in backporting &#xC5;ukasz's bugs to the
      1.x branch?<br>
      <br>
      It is great to see community input to this project, and I'd love
      to hear about how you use the library (unless that's
      confidential...)<br>
    </blockquote>
    <br>
    No, it is not confidential :). We created XBRL Formula Validator
    based on yours library. The whole specification (<a
      class="moz-txt-link-freetext"
href="http://www.xbrl.org/Specification/formula/REC-2009-06-22/index.htm">http://www.xbrl.org/Specification/formula/REC-2009-06-22/index.htm</a>
    ) is based on XPath2.0. Currently we are moving to new API.<br>
    After finishing this process, we probably have to have some battle
    with performance of evaluating XPath expressions. Main thing, which
    distinguish our solution from other venders is that we are
    implemented runtime(online) validation of XBRL Formula. We have some
    taxonomies, which includes many XBRL Formulas and after changing
    single value in XBRL document we have to evaluate sometime thousands
    of XPath expressions. <br>
    <br>
    Thanks,<br>
    <br>
    Wojtek Diakowski<br>
    and <br>
    &#xC5;ukasz Wycisk<br>
    <br>
    <blockquote
cite=""
      type="cite">-Jesper<br>
      <br>
      <div class="gmail_quote">2011/10/12 &#xC5;ukasz Wycisk <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:luczus@xxxxxxxxx">luczus@xxxxxxxxx</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex;">
          <div bgcolor="#FFFFFF" text="#000000">
            <p class="MsoNormal"><span lang="EN-US">Hello,</span></p>
            <p class="MsoNormal"><span lang="EN-US">We have compared CVS
                newest version with our local changes. Some of bugs has
                similar fixes, however there are still some which have
                not been fixed yet. Proposed fixes are in attached
                diffs. We tried to test our fixes using existing files
                in test case by adding methods to TestBugs.java.</span></p>
            <p class="MsoNormal"><span lang="EN-US">1. FnAbs: </span><a
                moz-do-not-send="true"
                href="http://www.w3.org/TR/xquery-operators/#func-abs"
                target="_blank"><span lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-abs</span></a><span
                lang="EN-US"></span></p>
            <p class="MsoNormal"><span lang="EN-US">According to </span><a
                moz-do-not-send="true"
                href="http://www.w3.org/TR/xpath20/#id-function-calls"
                target="_blank"><span lang="EN-US">http://www.w3.org/TR/xpath20/#id-function-calls</span></a><span
                lang="EN-US">if sequence is expected (indicator *, +, or
                ?) the atomization of arguments should be applied. Now
                in case of node passed to method type error occur.
                However there is some support for atomization -
                FnDistinctValues was fixed lately. Test case:</span></p>
            <p class="MsoNormal"><span lang="EN-US">TestBugs:testFunctionAtomization()</span></p>
            <p class="MsoNormal"><span lang="EN-US">We think that in
                other numeric function similar errors can occur, suppose
                other tests should be added. Surprisingly there are no
                tests for that sort of situation in conformance suit (at
                least we haven&#xE2;t found any).</span></p>
            <p class="MsoNormal"><span lang="EN-US">&#xC2;</span></p>
            <p class="MsoNormal"><span lang="EN-US">2. FnIndexOf: </span><a
                moz-do-not-send="true"
                href="http://www.w3.org/TR/xquery-operators/#func-index-of"
                target="_blank"><span lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-index-of</span></a><span
                lang="EN-US"></span></p>
            <p class="MsoNormal"><span lang="EN-US">Function should
                support any atomic values. It seems that there is no
                support for QNames.</span></p>
            <p class="MsoNormal"><span lang="EN-US">TestBugs:testFnIndexOf_onQName(),TestBugs:testFnIndexOf_onQName2()</span></p>
            <p class="MsoNormal"><span lang="EN-US">Second test function
                leads to third problem.</span></p>
            <p class="MsoNormal"><span lang="EN-US">&#xC2;</span></p>
            <p class="MsoNormal"><span lang="EN-US">3. QName._expanded
                which is boolean value saying if namespace was set (also
                null if default). When qname is created by function with
                empty first argument:</span></p>
            <p class="MsoNormal"><a moz-do-not-send="true"
                href="http://www.w3.org/TR/xquery-operators/#func-QName"
                target="_blank"><span lang="EN-US">http://www.w3.org/TR/xquery-operators/#func-QName</span></a><span
                lang="EN-US"></span></p>
            <p class="MsoNormal"><span lang="EN-US">then ._expanded is
                &#xE2;true&#xE2;(we think it&#xE2;s correct)</span></p>
            <p class="MsoNormal"><span lang="EN-US">but to compare it
                with qname from element will always return &#xE2;false&#xE2; since
                Element.node_name() sets ._expanded to &#xE2;false&#xE2; in case
                of null namespace (<a moz-do-not-send="true"
                  href="http://w3c.org" target="_blank">w3c.org</a>
                representation of no-namespace situation is null).</span></p>
            <p class="MsoNormal"><span lang="EN-US">Removing if
                statement in constructor (QName:45) seems to solve the
                problem and do not affected other tests. However we are
                not sure about correct ._expanded parameter state. What
                is Your opinion?</span></p>
            <p class="MsoNormal"><span lang="EN-US">&#xC2;</span></p>
            <p class="MsoNormal"><span lang="EN-US">4. FnPlus used to
                have System.exit() line which caused us some trouble to
                trace. It was fixed but still there are plenty
                System.out statements for some unusual errors. Why just
                simply throw an exception?</span></p>
            <p class="MsoNormal"><span lang="EN-US">We are still
                investigating other differences trying to run our
                application on new library version. We will get back to
                You with any other fixes. In the meantime please let us
                know what do You think about those.</span></p>
            <p class="MsoNormal"><span lang="EN-US">Regards,</span></p>
            <p class="MsoNormal"><span lang="EN-US">Wojciech Diakowski</span></p>
            <p class="MsoNormal"><span lang="EN-US">and</span></p>
            <p class="MsoNormal"><span lang="EN-US">&#xC5;ukasz Wycisk<br>
              </span></p>
            <p class="MsoNormal"><span lang="EN-US">&#xC2;</span></p>
          </div>
          <br>
          _______________________________________________<br>
          wtp-wst-dev mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:wtp-wst-dev@xxxxxxxxxxx">wtp-wst-dev@xxxxxxxxxxx</a><br>
          <a moz-do-not-send="true"
            href="https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev"
            target="_blank">https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
wtp-wst-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:wtp-wst-dev@xxxxxxxxxxx">wtp-wst-dev@xxxxxxxxxxx</a>
<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev">https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev</a>
</pre>
    </blockquote>
    <br>
    <br>
  

</font></td></tr></table>]]></content:encoded>
		<pubDate>Thu, 13 Oct 2011 08:49:45 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/wtp-wst-dev/msg00420.html</guid>
		<author>luczus@xxxxxxx (&#xC5;ukasz Wycisk)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
