www.webdeveloper.com
Results 1 to 2 of 2

Thread: Xml & xslt

Hybrid View

  1. #1
    Join Date
    Jun 2012
    Posts
    18

    Xml & xslt

    Here are the XML elements

    Code:
    <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

    Code:
     <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>

    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"/>
    Last edited by sirsaula; 10-25-2012 at 04:23 PM.

  2. #2
    Join Date
    Jun 2012
    Posts
    18
    Delete thread figured it out

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles