<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/xsltforms/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/xsltforms/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 02 Feb 2012 22:31:31 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xsltforms/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>&lt;xf:alert&gt; does not show for xforms-invalid event</title><link>https://sourceforge.net/p/xsltforms/bugs/45/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The alert icon does not show (display:none) for any expression of required or constraint attributes in the bind.&lt;br /&gt;
This used to work in pre-beta versions.&lt;/p&gt;
&lt;p&gt;&amp;lt;xforms:bind id="fname_bind" nodeset="/person-name/first-name" required="true()" constraint="string-length(.) &amp;gt;0"/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;xforms:input ref="/person-name/first-name"&amp;gt;&lt;br /&gt;
    &amp;lt;xforms:label&amp;gt;First Name:&amp;lt;/xforms:label&amp;gt;&lt;br /&gt;
    &amp;lt;xforms:alert&amp;gt;required!!!&amp;lt;/xforms:alert&amp;gt;&lt;br /&gt;
&amp;lt;/xforms:input&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cristian Valentin Ganta</dc:creator><pubDate>Thu, 02 Feb 2012 22:31:31 -0000</pubDate><guid>https://sourceforge.netd923cddc90df61784ba9ad96982f75eab7b45ec7</guid></item><item><title>switch/case/toggle fails in nested repeat</title><link>https://sourceforge.net/p/xsltforms/bugs/44/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In repeat/repeat/switch/case/toggle, sometimes the wrong item gets toggled and then fails to toggle back.&lt;/p&gt;
&lt;p&gt;See attached test case for xsltforms-dataisland-461.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leigh L. Klotz, Jr.</dc:creator><pubDate>Fri, 08 Oct 2010 23:43:04 -0000</pubDate><guid>https://sourceforge.netfff0537110be42b6b022363b0560cfd09c6d4c57</guid></item><item><title>Improper handling of quotes</title><link>https://sourceforge.net/p/xsltforms/bugs/43/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The code&lt;/p&gt;
&lt;p&gt;&amp;lt;xf:setvalue ref="instance('data')/error" value="substring-before(substring-after(event('response-body'),'s:Text xml:lang=&amp;amp;quot;ru-RU&amp;amp;quot;&amp;amp;gt;'),'&amp;amp;lt;/s:Text')"/&amp;gt; &lt;/p&gt;
&lt;p&gt;translates into &lt;/p&gt;
&lt;p&gt;XPath.create("substring-before(substring-after(event('response-body'),'s:Text xml:lang="ru-RU"&amp;amp;gt;'),'&amp;amp;lt;/s:Text')",new FunctionCallExpr('&lt;a href="http://www.w3.org/2005/xpath-functions" rel="nofollow"&gt;http://www.w3.org/2005/xpath-functions&lt;/a&gt; substring-before',new FunctionCallExpr('&lt;a href="http://www.w3.org/2005/xpath-functions" rel="nofollow"&gt;http://www.w3.org/2005/xpath-functions&lt;/a&gt; substring-after',new FunctionCallExpr('&lt;a href="http://www.w3.org/2002/xforms" rel="nofollow"&gt;http://www.w3.org/2002/xforms&lt;/a&gt; event',new CteExpr('response-body')),new CteExpr('s:Text xml:lang="ru-RU"&amp;amp;gt;')),new CteExpr('&amp;amp;lt;/s:Text'))); &lt;/p&gt;
&lt;p&gt;Note that "ru-RU" is not escaped. This causes &lt;br /&gt;
XSLTForms Exception -------------------------- Incorrect Javascript code generation&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 16 Sep 2010 06:06:25 -0000</pubDate><guid>https://sourceforge.net279d2e17a501fd21d054d170a917a3072b29cc31</guid></item><item><title>cannot delete attribute in dataisland </title><link>https://sourceforge.net/p/xsltforms/bugs/42/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&amp;lt;delete nodeset="/path/to/@att" /&amp;gt; fails.&lt;/p&gt;
&lt;p&gt;Same cause as other attribute bugs.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leigh L. Klotz, Jr.</dc:creator><pubDate>Tue, 14 Sep 2010 22:23:02 -0000</pubDate><guid>https://sourceforge.netfbba74d811274548394a7eee1349990f60da8916</guid></item><item><title>hexBinary and xsd:hexBinary and lowercase</title><link>https://sourceforge.net/p/xsltforms/bugs/41/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;XML Schema Part 2 allows lowercase for hexBinary, but specifies that uppercase be used in the canonical lexical representation.&lt;br /&gt;
&lt;a href="http://www.w3.org/TR/xmlschema-2/" rel="nofollow"&gt;http://www.w3.org/TR/xmlschema-2/&lt;/a&gt;#hexBinary-lexical-representation&lt;/p&gt;
&lt;p&gt;I think two things should happen:&lt;br /&gt;
1. I think the patterns for both hexBinary should change to allow lowercase.  That's because incoming XML with lowercase is correct.&lt;br /&gt;
2. I think the lexical conversion for controls bound to hexBinary should uppercase input when writing to the instance, to canonicalize it.&lt;/p&gt;
&lt;p&gt;#1 is more important, and easier.&lt;br /&gt;
xsltforms.js:&lt;br /&gt;
    "hexBinary" : {&lt;br /&gt;
        "nsuri" : "&lt;a href="http://www.w3.org/2002/xforms" rel="nofollow"&gt;http://www.w3.org/2002/xforms&lt;/a&gt;",&lt;br /&gt;
        "patterns" : [ "^[0-9A-Fa-f]*$" ]&lt;br /&gt;
    },&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&amp;quot;&lt;span class="n"&gt;hexBinary&lt;/span&gt;&amp;quot; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &amp;quot;&lt;span class="n"&gt;nsuri&lt;/span&gt;&amp;quot; &lt;span class="p"&gt;:&lt;/span&gt; &amp;quot;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;www&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;2001&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;XMLSchema&lt;/span&gt;&amp;quot;&lt;span class="p"&gt;,&lt;/span&gt;
    &amp;quot;&lt;span class="n"&gt;patterns&lt;/span&gt;&amp;quot; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt; &amp;quot;^&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;0&lt;span class="o"&gt;-&lt;/span&gt;9&lt;span class="n"&gt;A&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Fa&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;$&amp;quot; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leigh L. Klotz, Jr.</dc:creator><pubDate>Fri, 03 Sep 2010 18:02:46 -0000</pubDate><guid>https://sourceforge.net83f9ec3c8fe4ec041c6577f3f19e6d66faa379c0</guid></item><item><title>Accept header not set</title><link>https://sourceforge.net/p/xsltforms/bugs/40/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In submission replace='instance' the accept header is not set except in certain conditions:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &amp;quot;&lt;span class="n"&gt;get&lt;/span&gt;&amp;quot; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &amp;quot;&lt;span class="n"&gt;delete&lt;/span&gt;&amp;quot;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;media&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;XFSubmission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;SOAP&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;setRequestHeader&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&amp;quot;&lt;span class="n"&gt;Accept&lt;/span&gt;&amp;quot;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mt&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

                &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;send&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;null&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;setRequestHeader&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&amp;quot;&lt;span class="n"&gt;Content&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Type&lt;/span&gt;&amp;quot;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mt&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;media&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;XFSubmission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;SOAP&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;setRequestHeader&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&amp;quot;&lt;span class="n"&gt;SOAPAction&lt;/span&gt;&amp;quot;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;soapAction&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;send&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Core&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;saveXML&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;node&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;So it looks like the submission/mediatype is used to set the accept header in SOAP GET and DELETE requests, defaulting to application/xml, but it's not set at all in POST or PUT.&lt;/p&gt;
&lt;p&gt;I propose that at least if subm.replace=="instance" that GET, PUT, and POST have Accept default to application/xml.  It can be overridden using the XForms 1.1 headers element.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leigh L. Klotz, Jr.</dc:creator><pubDate>Tue, 17 Aug 2010 20:27:56 -0000</pubDate><guid>https://sourceforge.netd45212eddc8d392809f16df7569eafa3789144ea</guid></item><item><title>Date type</title><link>https://sourceforge.net/p/xsltforms/bugs/39/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;XSLTForms Build 444&lt;/p&gt;
&lt;p&gt;Entering incorrect dates do not fire type error.&lt;br /&gt;
For example a/b/c is accepted as a date (implicit conversion seems to be set to now() as seen in associated calendar table)&lt;/p&gt;
&lt;p&gt;The dates whose year is less than 1000 are not supported.&lt;br /&gt;
For example 25/12/496 is converted to 25/01/1927.&lt;/p&gt;
&lt;p&gt;The overflow values (days in the month and months number) are processed with some logic arithmetic, but this is not quite compliant.to ISO 8601&lt;br /&gt;
For example, 52/14/2010 becomes 24/03/2011&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dominique Rabeuf</dc:creator><pubDate>Tue, 17 Aug 2010 15:27:35 -0000</pubDate><guid>https://sourceforge.netbfd896f1d561a304113c4c3d38b13dd8999406b0</guid></item><item><title>ancestor axis fails on attributes</title><link>https://sourceforge.net/p/xsltforms/bugs/38/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Related to 3042659&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leigh L. Klotz, Jr.</dc:creator><pubDate>Wed, 11 Aug 2010 23:22:57 -0000</pubDate><guid>https://sourceforge.net41811617b10c1d9133b86fab03196673a283da43</guid></item><item><title>cannot change attribute values</title><link>https://sourceforge.net/p/xsltforms/bugs/37/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Possibly related to 3039052.&lt;/p&gt;
&lt;p&gt;In dataisland branch r445, setvalue (and as a result for controls) cannot set attribute values.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leigh L. Klotz, Jr.</dc:creator><pubDate>Tue, 10 Aug 2010 18:01:41 -0000</pubDate><guid>https://sourceforge.net16717872dee10f8dad6e28f851d3dae549942d19</guid></item><item><title>setvalue, instance/@src, bind/@readonly</title><link>https://sourceforge.net/p/xsltforms/bugs/36/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;As reported in email &lt;/p&gt;
&lt;p&gt;Also, it seems that binds at levels other than the root node fail as well, but not all of them.&lt;/p&gt;
&lt;p&gt;The following combination fails in the dataisland branch, tested with r443 and r445:&lt;/p&gt;
&lt;p&gt;&amp;lt;instance id="main" src="foo.xml" /&amp;gt;&lt;br /&gt;
&amp;lt;instance id="controls"&amp;gt;&amp;lt;data xmlns=""&amp;gt;&amp;lt;locked&amp;gt;false&amp;lt;/locked&amp;lt;/data&amp;gt;&amp;lt;/instance&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;bind nodeset="instance('main')" readonly="instance('controls')/locked='true'" /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;trigger&amp;gt;&lt;br /&gt;
&amp;lt;label&amp;gt;Edit&amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;setvalue ev:event="DOMActivate" ref="instance('controls')/locked"&amp;gt;false&amp;lt;/setvalue&amp;gt;&lt;br /&gt;
&amp;lt;/trigger&amp;gt;&lt;/p&gt;
&lt;p&gt;The setvalue event happens, but the value of locked never changes, and the readonly MIP does not change.&lt;/p&gt;
&lt;p&gt;The setvalue and MIP work OK when loading instance id="main" from inline content, but not from @src.&lt;br /&gt;
The setvalue works when the bind/@readonly is removed.&lt;br /&gt;
The setvalue and MIP work OK when the bind nodeset="instance('main')/BufferSize", but not when it's inherited from root.&lt;/p&gt;
&lt;p&gt;Since XSLTForms has the non-standard restriction on one bind per node, it's important that the MIP inheritance and binding to instance root element work.&lt;/p&gt;
&lt;p&gt;See the attached files showing the above examples complete.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leigh L. Klotz, Jr.</dc:creator><pubDate>Tue, 03 Aug 2010 22:19:01 -0000</pubDate><guid>https://sourceforge.netb840be1b03c510956a3d57209d1105f4f12aa164</guid></item></channel></rss>