Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>SUP expects the XML in a very specific format so I had to traverse through the multi-refs in the response using the for-each construct:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:template match="//ns1:getProjectsNoSchemesResponse"&gt; &lt;data&gt; &lt;Record&gt; &lt;Field op_label="id" op_position="1" op_datatype="STRING" op_nullable="true"&gt;id&lt;/Field&gt; &lt;Field op_label="name" op_position="2" op_datatype="STRING" op_nullable="true"&gt;name&lt;/Field&gt; &lt;Field op_label="description" op_position="3" op_datatype="STRING" op_nullable="true"&gt;description&lt;/Field&gt; &lt;/Record&gt; &lt;xsl:for-each select="//ns1:getProjectsNoSchemesResponse/getProjectsNoSchemesReturn/href*"&gt; &lt;Record&gt; &lt;Field&gt; &lt;xsl:attribute name="op_label"&gt;id&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_position"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_datatype"&gt;STRING&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_nullable"&gt;true&lt;/xsl:attribute&gt; &lt;xsl:value-of select="getProjectNoSchemesReturn/id" /&gt; &lt;/Field&gt; &lt;Field&gt; &lt;xsl:attribute name="op_label"&gt;name&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_position"&gt;2&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_datatype"&gt;STRING&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_nullable"&gt;true&lt;/xsl:attribute&gt; &lt;xsl:value-of select="getProjectNoSchemesReturn/name" /&gt; &lt;/Field&gt; &lt;Field&gt; &lt;xsl:attribute name="op_label"&gt;description&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_position"&gt;3&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_datatype"&gt;STRING&lt;/xsl:attribute&gt; &lt;xsl:attribute name="op_nullable"&gt;true&lt;/xsl:attribute&gt; &lt;xsl:value-of select="getProjectNoSchemesReturn/name" /&gt; &lt;/Field&gt; &lt;/Record&gt; &lt;/xsl:for-each&gt; &lt;/data&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre>
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      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