Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xsl.XslCompiledTransform problem with string
Message
From
01/04/2007 09:41:20
 
 
To
All
General information
Forum:
ASP.NET
Category:
XML
Title:
Xsl.XslCompiledTransform problem with string
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01210952
Message ID:
01210952
Views:
74
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
Next
Reply
Map
View

Click here to load this message in the networking platform