Hi can anyone help with this problem? I have xml file which occasionally has data missing from it like this Post Code example:
<Street>20 Any Street</Street>
<City>London</City>
<Post Code></Post Code>
This data is then formatted using an XSL file. What I'd like to know is if there's any way I can set post code to be a default value in the XSL file if its NULL in the XML file? The XSL file formats like so:
<xsl:value-of select="Street"/>
<xsl:value-of select="City"/>
<xsl:value-of select="Post Code"/>
Thanks, I'm new to XML/XSL and I'm sure this is an easy one for some of you guys.
Thanks,
Ian
<Street>20 Any Street</Street>
<City>London</City>
<Post Code></Post Code>
This data is then formatted using an XSL file. What I'd like to know is if there's any way I can set post code to be a default value in the XSL file if its NULL in the XML file? The XSL file formats like so:
<xsl:value-of select="Street"/>
<xsl:value-of select="City"/>
<xsl:value-of select="Post Code"/>
Thanks, I'm new to XML/XSL and I'm sure this is an easy one for some of you guys.
Thanks,
Ian