<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 static//en"> <html> <head> <title>Test results for Solaris x86</title> <style type="text/css" media="all"> @import url("../../style/base_UTF-32BE.css"); @import url("../../style/theme_UTF-32BE.css"); </style> <link rel="stylesheet" href="../../style/print_UTF-32BE.css" type="text/css" media="print"></link> <meta http-equiv="Content-Type" content="text/html; charset=UTF-32BE"></meta> <meta name="Author" content="Arthur Gouros"> </head> <body class="composite"> <a name="top"></a> <div id="banner"> <a href="http://xmlfy.sourceforge.net/" id="projectLogo"><img alt="xmlfy" src="../../images/xmlfy_logo.jpg"></img></a> <div class="clear"><hr></hr></div> </div> <div id="breadcrumbs"> <div class="xleft"></div> <div class="xright"> <a href="http://sourceforge.net/projects/xmlfy" class="externalLink" title="External Link">SourceForge.net Project Page</a> <span class="separator">|</span> <a href="http://sourceforge.net" class="externalLink" title="External Link">Hosted by SourceForge</a> </div> <div class="clear"><hr></hr></div> </div> <div id="leftColumn"><div id="navcolumn"> <div id="menuSections"><h5>Test Sections</h5><ul> <li class="none"><a href="index.html#section1">1. Environment</a></li> <li class="none"><a href="index.html#section2">2. Summary</a></li> <li class="none"><a href="index.html#section3">3. Test cases</a></li> </ul></div> </div></div> <div id="bodyColumn"><div class="contentBox"><div class="section"> <a name="test"></a> <p><table class="bar"><tr><td class="bar_left"></td><td class="bar_middle"> <h2 class="bar">Test results for Solaris x86</h2> </td><td class="bar_right"></td></tr></table> <a name="test_001083_option_columns_UTF-32BE"></a> <h3>test_001083_option_columns_UTF-32BE</h3> <p><b>NOTE: This web page is encoded in UTF-32BE format.</b> <br>Some web browsers may have difficulty displaying this page. <h4>Test description</h4> <pre> Test for column generated elements from a wide-UTF encoded input stream. The first element should contain the complete input record. The second element should only contain the 5th character of the input record if it exists and use the name specified in the column option. The third element should contain the 9th character and above of the input record if they exist and use the name specified in the quoted column option. </pre> <h4>Test status</h4> <p><img src="../../images/tick.gif" align="top">&nbsp;Pass <h4>Run command</h4> <pre class="boxed"> cat _INPUT_DATA_ &brvbar; xmlfy -X UTF-32BE -C 1-$ -C 5-5:third -C &apos;9-$:fiveplus&apos; -T1 number </pre> <h4>Input data</h4> <pre class="boxed"> 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9 </pre> <h4>Output result</h4> <pre class="boxed"> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-32BE&quot;?&gt; &lt;!DOCTYPE xmlfy SYSTEM &quot;xmlfy.dtd&quot;&gt; &lt;xmlfy&gt; &lt;line1&gt; &lt;field&gt;1&lt;/field&gt; &lt;third&gt;&lt;/third&gt; &lt;fiveplus&gt;&lt;/fiveplus&gt; &lt;/line1&gt; &lt;line2&gt; &lt;field&gt;1 2&lt;/field&gt; &lt;third&gt;&lt;/third&gt; &lt;fiveplus&gt;&lt;/fiveplus&gt; &lt;/line2&gt; &lt;line3&gt; &lt;field&gt;1 2 3&lt;/field&gt; &lt;third&gt;3&lt;/third&gt; &lt;fiveplus&gt;&lt;/fiveplus&gt; &lt;/line3&gt; &lt;line4&gt; &lt;field&gt;1 2 3 4&lt;/field&gt; &lt;third&gt;3&lt;/third&gt; &lt;fiveplus&gt;&lt;/fiveplus&gt; &lt;/line4&gt; &lt;line5&gt; &lt;field&gt;1 2 3 4 5&lt;/field&gt; &lt;third&gt;3&lt;/third&gt; &lt;fiveplus&gt;5&lt;/fiveplus&gt; &lt;/line5&gt; &lt;line6&gt; &lt;field&gt;1 2 3 4 5 6&lt;/field&gt; &lt;third&gt;3&lt;/third&gt; &lt;fiveplus&gt;5 6&lt;/fiveplus&gt; &lt;/line6&gt; &lt;line7&gt; &lt;field&gt;1 2 3 4 5 6 7&lt;/field&gt; &lt;third&gt;3&lt;/third&gt; &lt;fiveplus&gt;5 6 7&lt;/fiveplus&gt; &lt;/line7&gt; &lt;line8&gt; &lt;field&gt;1 2 3 4 5 6 7 8&lt;/field&gt; &lt;third&gt;3&lt;/third&gt; &lt;fiveplus&gt;5 6 7 8&lt;/fiveplus&gt; &lt;/line8&gt; &lt;line9&gt; &lt;field&gt;1 2 3 4 5 6 7 8 9&lt;/field&gt; &lt;third&gt;3&lt;/third&gt; &lt;fiveplus&gt;5 6 7 8 9&lt;/fiveplus&gt; &lt;/line9&gt; &lt;/xmlfy&gt; </pre> <br><small><small>Goto: &nbsp;&nbsp;<a href="#top">Top of page.</a> &nbsp;&nbsp;<a href="index.html#section1">Section "Environment".</a> &nbsp;&nbsp;<a href="index.html#section2">Section "Summary".</a> &nbsp;&nbsp;<a href="index.html#section3">Section "Test cases".</a> </small></small> </div></div></div> <div class="clear"><hr></hr></div> <div id="footer"><div class="xright">&copy; 2008-2013, Arthur Gouros</div> <div class="clear"><hr></hr></div></div> </body> </html>