Note that there are some explanatory texts on larger screens.

plurals
  1. POConverting dynamic values list from XML to XSLT
    primarykey
    data
    text
    <p>IN XMl multiple dynamic values i need to display in XSLT XML FOrmat:</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt; - &lt;TreatySeries&gt; - &lt;AnnexTitle Number="A"&gt; &lt;EngAnnexNumber /&gt; &lt;FrAnnexNumber /&gt; &lt;Footer&gt;Volume 150&lt;/Footer&gt; &lt;Topofpage /&gt; &lt;/AnnexTitle&gt; - &lt;AnnexEntry&gt; - &lt;Footnote&gt; &lt;EngFootNote&gt;United Nations, Treaty Series, vol. 123, I-1654.&lt;/EngFootNote&gt; &lt;FrnFootNote&gt;Nations Unies, Recueil des Traités, vol. 123, I-1654.&lt;/FrnFootNote&gt; &lt;/Footnote&gt; - &lt;AnnexEntryHeader&gt; - &lt;EngAnnexHeader&gt; &lt;TreatyNumber&gt;1654&lt;/TreatyNumber&gt; - &lt;Participants&gt; &lt;Participant&gt;Advisory Centre on WTO Law&lt;/Participant&gt; &lt;Participant&gt;Afghanistan&lt;/Participant&gt; &lt;Participant&gt;Agency for the Safety of Air Navigation in Africa and Madagascar&lt;/Participant&gt; &lt;Participant&gt;Finland&lt;/Participant&gt; &lt;/Participants&gt; </code></pre> <p>IN XML multiple i need to display those dynamic participants in XSLT. in this format &lt;......> kindly in XSLT how to display dynamic multiple values in a specified format </p> <pre><code>No. 1654. &lt;participant1&gt;&lt;participant2&gt;&lt;participant3&gt;&lt;participant4&gt;&lt;......&gt;No. 1654. Centre consultatif sur la législation de l'OMC CONVENTION BETWEEN THE KINGDOM OF BELGIUM, THE GRAND DUCHY OF LUXEMBOURG AND THE KINGDOM OF THE NETHERLANDS RELATING TO THE UNIFICATION OF EXCISE DUTIES AND OF FEES FOR THE WARRANTY OF ARTICLES OF PRECIOUS METALS. THE HAGUE, 18 FEBRUARY 1950 [United Nations, Treaty Series, vol. 123, I-1654.] </code></pre> <p>XSLT CODE:</p> <pre><code>&lt;xsl:value-of select="$AnnexEntry/AnnexEntryHeader/EngAnnexHeader/Participants/Participant[1]"/&gt; &lt;/w:t&gt; &lt;xsl:if test="count($AnnexEntry/AnnexEntryHeader/EngAnnexHeader/Participants/Participant) = 2"&gt; &lt;xsl:variable name="participant2Eng" select="$AnnexEntry/AnnexEntryHeader/EngAnnexHeader/Participants/Participant[2]"/&gt; &lt;w:t&gt;&lt;xsl:value-of select="concat('',$stringAndEng,' ',$participant2Eng)"/&gt;&lt;/w:t&gt; &lt;/xsl:if&gt; </code></pre> <p>but i need to display dynamic values.</p>
    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.
 

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