[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Formatting a value-of-select attribute

Subject: RE: Formatting a value-of-select attribute
From: cknell@xxxxxxxxxx
Date: Fri, 24 Aug 2007 11:52:15 -0400
RE:  Formatting a value-of-select attribute
<xsl:value-of select="substring(idstatus/dmaddres/issno/@issno,3,1)"/>
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Maxine Pensyl-Johnson <Maxine.Pensyl-Johnson@xxxxxxx>
Sent:     Fri, 24 Aug 2007 08:47:02 -0700
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:   Formatting a value-of-select attribute

Greetings All,

I'm working on a FO right now and have a situation where the authors
have entered a triple digit and I need to display only a single digit.

Here is the tag entered in XML.

            <issno issno="000" inwork="02" type="status"/>

Here's what my output states.
<xsl:value-of select="idstatus/dmaddres/issno/@issno"/>

This gives me "000" as it should, but is there a way to force it to only
give me the third digit?

Thanks, Max


Maxine Pensyl-Johnson
Technical Writer 
General Atomics ASI
16761 Via Del Campo Court
San Diego, CA. 92127-1713
(858) 525-6362 Office

maxine.pensyl-johnson@xxxxxxx

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.