Note that there are some explanatory texts on larger screens.

plurals
  1. PORetrieve data from a different fields, where a landmark is a symbol
    primarykey
    data
    text
    <p>i have data, which looks like:</p> <pre><code>&lt;line id="1"&gt; &lt;field id="1"&gt;324&lt;/field id="1"&gt; &lt;field id="2"&gt;abc&lt;/field id="2"&gt; ................................. ................................. ................................. &lt;field id="11"&gt;324321&lt;/field id="11"&gt; &lt;field id="12" &gt;&lt;![CDATA[6256812+0000140000000990000000000009900000000004058002C]]&gt;&lt;/field&gt; &lt;/line id="1"&gt; &lt;line id="2"&gt; &lt;field id="1"&gt;324&lt;/field id="1"&gt; &lt;field id="2"&gt;abc&lt;/field id="2"&gt; ................................. ................................. ................................. &lt;field id="8"&gt;324321&lt;/field id="11"&gt; &lt;field id="9" &gt;&lt;![CDATA[6256813+0000040000000890000000000008900000000003648002C]]&gt;&lt;/field&gt; &lt;/line id="2"&gt; &lt;line id="3"&gt; &lt;field id="1"&gt;324fsf&lt;/field id="1"&gt; &lt;field id="2"&gt;abcdf&lt;/field id="2"&gt; ................................. ................................. ................................. &lt;field id="12"&gt;32432s1&lt;/field id="11"&gt; &lt;field id="13" &gt;&lt;![CDATA[6256812+0000060000000750000000000007500000000003074002C]]&gt;&lt;/field&gt; &lt;/line id="3"&gt; &lt;line id="4"&gt; &lt;field id="1"&gt;3fsfa24&lt;/field id="1"&gt; &lt;field id="2"&gt;abasc&lt;/field id="2"&gt; ................................. ................................. ................................. &lt;field id="18"&gt;32fasf4321&lt;/field id="11"&gt; &lt;field id="19" &gt;&lt;![CDATA[6256837+0000010000000650000000000006500000000002664003C]]&gt;&lt;/field&gt; &lt;/line id="5"&gt; </code></pre> <p>I need to take number before landmark '+'. </p> <pre><code>&lt;xsl:choose&gt; &lt;xsl:when test="string(field[@id='9'])"&gt; &lt;xsl:value-of select="number(substring(field[@id='10'], 1,7))"/&gt; &lt;/xsl:when&gt; &lt;xsl:when test="string(field[@id='11'])"&gt; &lt;xsl:value-of select="number(substring(field[@id='12'], 1,7))"/&gt; &lt;/xsl:when&gt; &lt;xsl:when test="string(field[@id='17'])"&gt; &lt;xsl:value-of select="number(substring(field[@id='17'], 1,7))"/&gt; &lt;/xsl:when&gt; &lt;/xsl:choose&gt; </code></pre> <p>maybe there is more right decision?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload