Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xsl.XslCompiledTransform problem with string
Message
De
01/04/2007 09:41:20
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Xsl.XslCompiledTransform problem with string
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01210952
Message ID:
01210952
Vues:
75
I am using Xsl.XslCompiledTransform to create an Excel XML file. In the Xsl stylesheet, I have something like this:
<xsl:when test="//xs:element[ @name = local-name(current()) ]/@type = 'xs:decimal'">
   <Data ss:Type="Number">
      <xsl:value-of select="." /> 
   </Data>
</xsl:when>
<xsl:when test="//xs:element[ @name = local-name(current()) ]/@type = 'xs:string'">
   <Data ss:Type="String">
      <xsl:value-of select="." /> 
   </Data>
</xsl:when>
However, while this works for decimal, datetime and integer types, this does not work for string type. I have found that the condition for string type is never executed. The only way I can print my string field is by having an Otherwise clause later down the Xsl stylesheet.

Does someone know why the xs:string doesn't work?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform