xslt - Removing xsi:nil="true" from payload from outbound messages in Maximo -
i new xslt , remove "xsi:nil="true"" attributes created tag in payload generated maximo.
<routestopid xsi:nil="true" /> <schedfinish xsi:nil="true" /> <schedstart xsi:nil="true" />
could please suggest how achieve using xslt.
thanks in advance.
remove "xsi:nil="true"" attributes created tag
if that's all styleheet supposed do, make it:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/> <xsl:strip-space elements="*"/> <!-- identity transform --> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="@xsi:nil[.='true']"/> </xsl:stylesheet>
Comments
Post a Comment