Skip to content

Instantly share code, notes, and snippets.

@nhart
Last active August 29, 2015 14:02
Show Gist options
  • Save nhart/413defa2698e9959efc2 to your computer and use it in GitHub Desktop.
Save nhart/413defa2698e9959efc2 to your computer and use it in GitHub Desktop.
<xsl:if test="not(concat($prefix, local-name()) = $this_prefix)">
<xsl:if test="not(normalize-space($textValue)='')">
<field>
<xsl:attribute name="name">
<xsl:value-of select="concat($prefix, local-name(), '_mdt')"/>
</xsl:attribute>
<xsl:value-of select="$textValue"/>
</field>
</xsl:if>
<xsl:if test="not(normalize-space($rawTextValue)='')">
<field>
<xsl:attribute name="name">
<xsl:value-of select="concat($prefix, local-name(), '_ms')"/>
</xsl:attribute>
<xsl:value-of select="$rawTextValue"/>
</field>
</xsl:if>
</xsl:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment