Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is my guess:</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" exclude-result-prefixes="z rs"&gt; &lt;xsl:output omit-xml-declaration="yes" indent="yes"/&gt; &lt;xsl:strip-space elements="*"/&gt; &lt;xsl:template match="/*"&gt; &lt;DF&gt; &lt;Cage Revision="" RevisionDate="" CPType="Authored" Ext_Identifier=""&gt; &lt;Entities&gt; &lt;xsl:apply-templates select="rs:data"/&gt; &lt;/Entities&gt; &lt;/Cage&gt; &lt;/DF&gt; &lt;/xsl:template&gt; &lt;xsl:template match="rs:data"&gt; &lt;StdDTCs&gt; &lt;xsl:apply-templates select="z:row"/&gt; &lt;/StdDTCs&gt; &lt;/xsl:template&gt; &lt;xsl:template match="z:row"&gt; &lt;StdDTC action="Insert"&gt; &lt;xsl:copy-of select="@*"/&gt; &lt;/StdDTC&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>The result tree is:</p> <pre><code>&lt;DF&gt; &lt;Cage Revision="" RevisionDate="" CPType="Authored" Ext_Identifier=""&gt; &lt;Entities&gt; &lt;StdDTCs&gt; &lt;StdDTC action="Insert" ID="1" CK="B0011" Description="VSC" DTC="B0000" Variant="" AN="Y" Notes="" GCategory="M1" System="VOS" Ownership="EEP" /&gt; &lt;StdDTC action="Insert" ID="2" CK="B0012" Description="VSC_1" DTC="B0011" Variant="" AN="Y" Notes="" GCategory="M3" System="VOS" Ownership="EEP" /&gt; &lt;StdDTC action="Insert" ID="3" CK="B0013" Description="VSC_2" DTC="B0012" Variant="" AN="Y" Notes="" GCategory="M54" System="VOS" Ownership="EEP" /&gt; &lt;StdDTC action="Insert" ID="4" CK="B0014" Description="VSC_3" DTC="B0013" Variant="" AN="Y" Notes="" GCategory="M1" System="VOS" Ownership="EEP" /&gt; &lt;StdDTC action="Insert" ID="5" CK="B0015" Description="VSC_4" DTC="B0014" Variant="" AN="Y" Notes="" GCategory="M3" System="VOS" Ownership="EEP" /&gt; &lt;/StdDTCs&gt; &lt;/Entities&gt; &lt;/Cage&gt; &lt;/DF&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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. 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