Note that there are some explanatory texts on larger screens.

plurals
  1. POConvert string variable (in xml format) as part of the final xml
    text
    copied!<p>I'm having in a xsl file a variable (<code>varXml</code>) which actually retains an xml -like this: <code>&lt;apps&gt;&lt;det id="aaaa"&gt;&lt;det key="name"&gt;&lt;det id="12"/&gt;&lt;tur key="34" id="00x"/&gt;&lt;/det&gt;&lt;/det&gt;&lt;/apps&gt;</code>.</p> <p>The format of the xsl file looks like this:</p> <pre><code>&lt;xsl:element name="opersApps"&gt; &lt;xsl:attribute name="sts"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:value-of select="$varXml"/&gt; &lt;/xsl:element&gt; </code></pre> <p>And the result is:</p> <pre><code>&lt;opersApps sts="1"&gt; </code></pre> <p><em><code>&lt;apps&gt;&lt;det id="aaaa"&gt;&lt;det key="name"&gt;&lt;det id="12"/&gt;&lt;tur key="34" id="00x"/&gt;&lt;/det&gt;&lt;/det&gt;&lt;/apps&gt;</code></em></p> <pre><code>&lt;/opersApps&gt; </code></pre> <p>Now looks like <a href="http://lh4.ggpht.com/_gaTNvavlLC4/TT3Hu52rlnI/AAAAAAAACmg/VHGw-AJKcuA/s800/xml.jpg" rel="nofollow">here</a>.</p> <p>The middle part (variable varXml) not look at an xml. How can it be integrated to be part of the xml? I want to look like this:</p> <pre><code>&lt;opersApps sts="1"&gt; &lt;apps&gt; &lt;det id="aaaa"&gt; &lt;det key="name"&gt; &lt;det id="12"/&gt; &lt;tur key="34" id="00x"/&gt; &lt;/det&gt; &lt;/det&gt; &lt;/apps&gt; &lt;/opersApps&gt; </code></pre> <p>Thanks.</p> <p>Later edit: varXml looks like this:</p> <pre><code> String varXml ="&lt;det id=\"aaaa\"&gt;\n" + " &lt;det key=\"name\"&gt;\n" + " &lt;det id=\"12\"/&gt;\n" + " &lt;tur key=\"34\" id=\"00x\"/&gt;\n" + " &lt;/det&gt;\n" + "&lt;/det&gt; "; </code></pre>
 

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