<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/practicalxml/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/practicalxml/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 23 Jun 2017 11:05:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/practicalxml/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>#8 Core functions</title><link>https://sourceforge.net/p/practicalxml/feature-requests/8/?limit=25#d893</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; wont-fix&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith D Gregory</dc:creator><pubDate>Fri, 23 Jun 2017 11:05:32 -0000</pubDate><guid>https://sourceforge.nete0c781f35151580c23354c4f915682d46d79425b</guid></item><item><title>#8 Core functions</title><link>https://sourceforge.net/p/practicalxml/feature-requests/8/?limit=25#b804</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is actually a limitation of the JDK, and perhaps of the XPath 1.0 expression syntax (although I've been looking at the BNF to determine just how a &lt;a class="" href="https://www.w3.org/TR/1999/REC-xpath-19991116/#NT-LocationPath" rel="nofollow"&gt;LocationPath&lt;/a&gt; is a special case of an &lt;a class="" href="https://www.w3.org/TR/1999/REC-xpath-19991116/#NT-Expr" rel="nofollow"&gt;Expr&lt;/a&gt;, and am not finding anything clear -- I would have expected a &lt;code&gt;LocationPath&lt;/code&gt; to be one of the &lt;code&gt;PrimaryExpr&lt;/code&gt; forms, but it isn't).&lt;/p&gt;
&lt;p&gt;Regardless, it isn't an issue with binding. Here are some examples of using &lt;code&gt;name()&lt;/code&gt;:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    Document dom = ParseUtil.parse("&lt;span class="nt"&gt;&amp;lt;root&amp;gt;&lt;/span&gt;"
                                 + "  &lt;span class="nt"&gt;&amp;lt;child&amp;gt;&lt;/span&gt;"
                                 + "    &lt;span class="nt"&gt;&amp;lt;grandchild&amp;gt;&lt;/span&gt;text&lt;span class="nt"&gt;&amp;lt;/grandchild&amp;gt;&lt;/span&gt;"
                                 + "  &lt;span class="nt"&gt;&amp;lt;/child&amp;gt;&lt;/span&gt;"
                                 + "&lt;span class="nt"&gt;&amp;lt;/root&amp;gt;&lt;/span&gt;");

    XPathWrapper wrapper1 = new XPathWrapper("name(/root/child)");
    System.out.println(wrapper1.evaluateAsString(dom));

    // note that this second example selects only text, including whitespace
    XPathWrapper wrapper2 = new XPathWrapper("/root/*[name()='child']");
    System.out.println(wrapper2.evaluateAsString(dom));
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith D Gregory</dc:creator><pubDate>Fri, 23 Jun 2017 11:04:19 -0000</pubDate><guid>https://sourceforge.net9c9b55d90d5b49ba7158e3919a2eac2c3e051b63</guid></item><item><title>Core functions</title><link>https://sourceforge.net/p/practicalxml/feature-requests/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I am testing the XPathWraper and have a problem by using core functions.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;private&lt;/span&gt; &lt;span class="nt"&gt;XPathWrapperFactory&lt;/span&gt; &lt;span class="nt"&gt;wrapperFactory&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;new&lt;/span&gt; &lt;span class="nt"&gt;XPathWrapperFactory&lt;/span&gt;&lt;span class="o"&gt;()&lt;/span&gt;
            &lt;span class="nc"&gt;.bindNamespace&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"bpmn"&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"http://www.omg.org/spec/BPMN/20100524/MODEL"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
            &lt;span class="nc"&gt;.bindNamespace&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"form"&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"http://www.bpsim.org/schemas/1.0"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

     &lt;span class="nt"&gt;Document&lt;/span&gt; &lt;span class="nt"&gt;dom&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;ParseUtil&lt;/span&gt;&lt;span class="nc"&gt;.parse&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;new&lt;/span&gt; &lt;span class="nt"&gt;File&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Model/Test3.bpmn"&lt;/span&gt;&lt;span class="o"&gt;));&lt;/span&gt;

      &lt;span class="nt"&gt;XPathWrapper&lt;/span&gt; &lt;span class="nt"&gt;xpw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;wrapperFactory&lt;/span&gt;&lt;span class="nc"&gt;.newXPath&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"../../../../../../../name()"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
      &lt;span class="nt"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;xpw&lt;/span&gt;&lt;span class="nc"&gt;.evaluateAsString&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;dom&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and I get:&lt;br/&gt;
Exception in thread "main" net.sf.practicalxml.XmlException: unable to compile: ../../../../../../../name()&lt;/p&gt;
&lt;p&gt;What is wrong? must I bind the core functions?&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Mueller</dc:creator><pubDate>Tue, 20 Jun 2017 19:02:33 -0000</pubDate><guid>https://sourceforge.net83b41ee9bb26371c991c72e76475376f586c7a14</guid></item><item><title>Core functions</title><link>https://sourceforge.net/p/practicalxml/feature-requests/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 8 has been modified: Core functions&lt;br/&gt;
Edited By: Keith D Gregory (kdgregory)&lt;br/&gt;
Status updated: u'open' =&amp;gt; u'wont-fix'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Mueller</dc:creator><pubDate>Tue, 20 Jun 2017 19:02:33 -0000</pubDate><guid>https://sourceforge.net264613e341e7e0d2bc325b0c72f83aa554bbfa92</guid></item><item><title>Bean conversion: support XSD binary encoding types for byte[]</title><link>https://sourceforge.net/p/practicalxml/feature-requests/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Current transformation of a byte[] is as a series of separate elements, each containing one byte. This is extremely inefficient.&lt;/p&gt;
&lt;p&gt;XSD specifies two encodings for arbitrary binary data, and both should be supported via options. See &lt;a href="http://www.w3.org/TR/xmlschema-2/#base64Binary" rel="nofollow"&gt;http://www.w3.org/TR/xmlschema-2/#base64Binary&lt;/a&gt; and &lt;a href="http://www.w3.org/TR/xmlschema-2/#hexBinary" rel="nofollow"&gt;http://www.w3.org/TR/xmlschema-2/#hexBinary&lt;/a&gt; for details.&lt;/p&gt;
&lt;p&gt;Open issue: should one of these be the default encoding for byte[]? My thought is yes: I think it's unlikely that existing code would be broken by making the current nested-element format be an option.&lt;/p&gt;
&lt;p&gt;I lean toward the hex-encoded version being default, as it provides the most benefit as a text format (ie, there are likely to be applications that can use the encoded value directly, without the need to translate back to byte[]; base-64 requires decoding to be useful).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith D Gregory</dc:creator><pubDate>Tue, 08 Oct 2013 20:08:36 -0000</pubDate><guid>https://sourceforge.neta225c6f434de39757bb66d2e97f1528e0291e30d</guid></item><item><title>Support indented output on Xalan</title><link>https://sourceforge.net/p/practicalxml/feature-requests/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Xalan does not accept the indentation config in OutputUtil, will throw.&lt;/p&gt;
&lt;p&gt;Solution will be to look at transformer implementation class, choose alternative mechanism or ignore.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith D Gregory</dc:creator><pubDate>Fri, 30 Aug 2013 12:54:16 -0000</pubDate><guid>https://sourceforge.net95387819b7379f0ce9f97d6a7e6ca82340b6816e</guid></item><item><title>#5 Handle dates better</title><link>https://sourceforge.net/p/practicalxml/feature-requests/5/?limit=25#d761</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;java.util.Calendar support improved in 1.1.14 or 1.1.15 (wasn't a separate commit)&lt;/p&gt;
&lt;p&gt;subclasses of java.util.Date supported in 1.1.16&lt;/p&gt;
&lt;p&gt;XmlGregorianCalendar still outstanding, because it's not really a Date.&lt;/p&gt;
&lt;p&gt;Should also support JODA.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith D Gregory</dc:creator><pubDate>Fri, 30 Aug 2013 12:52:55 -0000</pubDate><guid>https://sourceforge.net8521b4891fd8828ab0aeaf469553006335178ea8</guid></item><item><title>#4 Add option to defer exceptions</title><link>https://sourceforge.net/p/practicalxml/feature-requests/4/?limit=25#7432</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith D Gregory</dc:creator><pubDate>Fri, 30 Aug 2013 12:50:27 -0000</pubDate><guid>https://sourceforge.net36b8d38437b0ca34d44732a7d88ae66e81755a08</guid></item><item><title>Handle dates better</title><link>https://sourceforge.net/p/practicalxml/feature-requests/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Current bean-&amp;gt;xml formatting rules for a java.util.Date will either write using toString() or in XSD format; for a java.util.Calendar, a subset of fields get written (including dates in whatever format is active), and XmlGregorianCalendar gets written as all fields. Consistency would be nice.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith D Gregory</dc:creator><pubDate>Tue, 18 Jun 2013 01:50:32 -0000</pubDate><guid>https://sourceforge.net70c9c77a5da589e6ed0dd5076eb3daebdd079762</guid></item><item><title>Add option to defer exceptions</title><link>https://sourceforge.net/p/practicalxml/feature-requests/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Rather than throw an exception as soon as the converter is unable to process a node, provide an option to record the exception and skip the node.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith D Gregory</dc:creator><pubDate>Tue, 18 Jun 2013 01:46:40 -0000</pubDate><guid>https://sourceforge.net6af8e7dafff37c1a9fa50cbaa8b4f97597de4481</guid></item></channel></rss>