Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding empty dates from the Xsl transformation
Message
De
02/05/2006 13:39:19
 
 
À
02/05/2006 10:48:54
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
01118421
Message ID:
01118481
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform