We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,913 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

2
Contributors
1
Reply
44 Minutes
Discussion Span
6 Months Ago
Last Updated
2
Views
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

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0580 seconds using 2.67MB