This is probably easy but I’m new at this.
So I’m mapping Schema A to Schema B. Schema A has an optional element with a required attribute. I’m trying to map that attribute to an optional element in Schema B. My problem is that the element in Schema B shows up even if the element in Schema A is not present.
In the output xsl I’m getting
<ns0:BNode><xsl:value-of select=”s0:Root/s0:ANode/@att“ /> </ns0:BNode>
I want
<xsl:if test=”s0:Root/s0:ANode”><ns0:BNode><xsl:value-of select=”s0:Root/s0:ANode/@att“ /> </ns0:BNode></xsl:if>
Anyone know the best way to do this?