Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding empty dates from the Xsl transformation
Message
From
02/05/2006 13:39:19
 
 
To
02/05/2006 10:48:54
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
01118421
Message ID:
01118481
Views:
11
I adjusted my when condition to this:
<xsl:when test="//xs:element[ @name = local-name(current()) ]/@type = 'xs:dateTime'">
  <xsl:choose>
    <xsl:when test=". = '1899-12-30T00:00:00-04:00'">
      <Data ss:Type="String">
      </Data>
    </xsl:when>
    <xsl:otherwise>
      <Data ss:Type="String">
        <xsl:value-of select="."/>
      </Data>
    </xsl:otherwise>
  </xsl:choose>
</xsl:when>
This resolves this issue. If there is something better, don't hesitate to let me know.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform