XML & XSLT
Hope my explanation is clear..
Here are the XML elements
<element name="LastTimeBuyDate" type="dateTime" nillable="true"/>
<element name="LastTimeDeliveryDate" type="dateTime" nillable="true"/>
What I am trying to do in XSLT is state that when the lasttimebuydate is empty to add the "nillable="true"" to the xml output... same thing for lasttimedeliovery date
<cim:LastTimeBuyDate><xsl:value-of select="ecim:LAST_TIME_BUY_DATE"/></cim:LastTimeBuyDate>
<cim:LastTimeDeliveryDate><xsl:value-of select="ecim:LAST_TIME_DELIVERY_DATE"/></cim:LastTimeDeliveryDate>
Anyhelp would be great
44 Minutes
Discussion Span
Related Article: Concatenate xml files using xslt
is a XML, XSLT and XPATH discussion thread by mohit.bhayana.142 that has 5 replies, was last updated 7 months ago and has been tagged with the keywords: merge, xml, xslt.
smoothe19
Junior Poster in Training
81 posts since Dec 2009
Reputation Points: 9
Solved Threads: 0
Skill Endorsements: 0
basically I want the xsl to add an xsi:nil="true" to the xsl value of select so output could be something like
<LAST_TIME_BUY_DATE xsi:nil="true"/>
smoothe19
Junior Poster in Training
81 posts since Dec 2009
Reputation Points: 9
Solved Threads: 0
Skill Endorsements: 0