title: Dynamically position layout box by XPath in Altova StyleVision
body: <p>Similarly to this question: <a href="https://stackoverflow.com/questions/12028195/fixed-positioning-with-altova-stylevision/12493924">Fixed positioning with Altova Stylevision</a></p>
  
  <p>But I want to position dynamically with XPath expression. Which should be possible but I can't get it working.  </p>
  
  <p>I have this XML sample:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;strings&gt;
      &lt;p lp="200"&gt;first string&lt;/p&gt;
      &lt;p lp="300"&gt;second string&lt;/p&gt;
  &lt;/strings&gt;
  </code></pre>
  
  <p>I added content from user defined template <code>/strings/p</code> in my Design, now I want it positioned by the "lp" attribute.</p>
  
  <p>For that task I add XPath expression <code>/strings/p/@ld</code> as value to left attribute in common subgroup for layout box pointing to added template. But result is that layout box is positioned to left edge, suggesting that StyleVision considers it as 0 (zero)</p>
  
  <p>I also tried this expression <code>/strings/p/concat(@lp,'px')</code> so that it evaluates to number appended by 'px', as Design is set in pixel units, but I get same result - XPath expression is evaluated to 0.<br>
  Small screenshot: <a href="https://i.imgur.com/yPzzz.png" rel="nofollow noreferrer">http://i.imgur.com/yPzzz.png</a></p>
  
  <p>Can anyone assist how to position template in StyleVision by using XPath?</p>