In this step you will add the instructions that create the story priority to the priority GN4 attribute.

 <xsl:variable name="urgency" select="NewsItem/NewsManagement/Urgency/@FormalName"/>

 <xsl:attribute name="priority">

   <xsl:choose>

     <xsl:when test="$urgency &lt; 4">

       <xsl:text>high</xsl:text>

     </xsl:when>

     <xsl:when test="$urgency &gt; 4">

       <xsl:text>low</xsl:text>

     </xsl:when>

     <xsl:otherwise>

       <xsl:text>medium</xsl:text>

     </xsl:otherwise>

   </xsl:choose>

 </xsl:attribute>