Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xsl text manipulation

Reply
Thread Tools

xsl text manipulation

 
 
samkaya samkaya is offline
Junior Member
Join Date: Apr 2010
Posts: 1
 
      04-21-2010
I'm using xsl to format and display xml data. In my xsl i'm displaying different statusses:

01Ready
02Planned
03Cancelled
04Progress
05Delivered

I want to delete the numbers before the statusses, so i want to transform the statusses to:

Ready
Planned
Cancelled
Progress
Delivered

I already started with this:

Code:
 Status <xsl:value-of
select="Status"/>
        <xsl:choose>
          <xsl:when test ="status='01Ready'">
            ..??? don't know how to set my own text??? status='Ready'
          </xsl:when>
        </xsl:choose>
So basically i need to transform some labels, could somebody help me with the syntax and the right functions? And where in my xsl can i put this transformation?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
tomcal/xsl - problems with xsl:include Klaus Friese Java 0 11-22-2004 10:17 AM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 1 09-13-2004 02:28 PM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 0 09-08-2004 02:11 PM
use xsl:element to output an "<xsl:template match=...> ? Ray Tayek XML 3 11-30-2003 10:14 AM



Advertisments