{"id":9,"date":"2003-08-15T21:15:00","date_gmt":"2003-08-15T21:15:00","guid":{"rendered":"http:\/\/jclark.org\/weblog\/XML\/XSLT\/Tools\/xalanjquotes.html"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T04:00:00","slug":"xalanjquotes","status":"publish","type":"post","link":"https:\/\/jclark.org\/weblog\/2003\/08\/15\/xalanjquotes\/","title":{"rendered":"Just because <em>they<\/em> don&#8217;t support it&#8230;"},"content":{"rendered":"<p>According to the <a href=\"http:\/\/xml.apache.org\/xalan-j\/index.html\">Xalan-j homepage<\/a>, Xalan-J 1 is no longer supported.  Unfortunately, I&#8217;m still using it, at least for the time being.  These two realities colided a couple days ago when I ran into a problem with the following (filenames have been changed to protect the innocent):<\/p>\n<p><code>\njava org.apache.xalan.xslt.Process -IN \/path\/datafile.xml -XSL \/path\/template.xslt -OUT \/path\/output.xml -PARAM base_currency_iso &#039;EUR&#039;\n<\/code><\/p>\n<p>Despite the deceptive simplicity of the above, the output indicated a problem with the parameter value.  Adding a  element to the key template proved the point:<\/p>\n<pre><code>\n$ISO=EUR, $base_currency_iso=\n$ISO=CHF, $base_currency_iso=\n$ISO=DKK, $base_currency_iso=\n$ISO=EUR, $base_currency_iso=\n(snip...)\n<\/code><\/pre>\n<p>My parameter value was not making it into the process.  Making the &#8216;no longer supported&#8217; issue even more fun is the fact that Xalan-j 2 no longer requires the single quotes around string values.  I tried with single quotes, without; I googled and groups.googled; I kept coming up dry.<\/p>\n<p>Of course, those of you in the audience whose Unix skills are better than mine have already seen the issue&#8230; the shell was handling the single-quotes.  The answer was stunningly simple:<\/p>\n<p><code>\njava org.apache.xalan.xslt.Process -IN \/path\/datafile.xml -XSL \/path\/template.xslt -OUT \/path\/output.xml -PARAM base_currency_iso &quot;&#039;EUR&#039;&quot;\n<\/code><\/p>\n<p>The funny thing is, I never saw any example that showed the extra double quotes.  An hour wasted, but not a true waste&#8230; I&#8217;ll bet that in the future I&#8217;ll be more quote-savvy in when working in Unix.  And now I&#8217;ve documented it, so at least for a brief moment, Xalan-j 1 is once again supported&#8230; just not by Apache.<\/p>","protected":false},"excerpt":{"rendered":"<p>According to the Xalan-j homepage, Xalan-J 1 is no longer supported. Unfortunately, I&#8217;m still using it, at least for the time being. These two realities colided a couple days ago when I ran into a problem with the following (filenames have been changed to protect the innocent): java org.apache.xalan.xslt.Process -IN \/path\/datafile.xml -XSL \/path\/template.xslt -OUT \/path\/output.xml [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-tools"],"_links":{"self":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":0,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"wp:attachment":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}