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

RE: XSLT/XPath 2.0 (was "Identifying two tags...")

Subject: RE: XSLT/XPath 2.0 (was "Identifying two tags...")
From: "bryan" <bry@xxxxxxxxxx>
Date: Tue, 14 May 2002 19:41:31 +0200
RE:  XSLT/XPath 2.0 (was "Identifying two tags...")
 I wrote
>
> <xsl:template match="Customers">
> <xsl:variable name="checkV" select="getValidator(Customer/@CustID)"/>
> <xsl:variable name="checkI">
> <xsl:choose>
> <xsl:when test="Customer/@CustID + 1 ='NaN'">
> Not a Number 
> </xsl:when>
> <xsl:when test=" Customer/@CustID = ' '">
> blank
> </xsl:when>
> </xsl:variable>
> <xsl:if test="valid() = 'NotValid'">
> <xsl:text>your entry for Customer ID was non-valid, according to our
> records you entered <xsl:value-of select="Customer/@CustID"/> a value
> that was <xsl:value-of select="$check1"/>
> please retry your entry again and enter a value of type <xsl:value-of
> select="$checkV/xsd:attribute/@type"/>
> </xsl:text>
>
> </xsl:if>
> <xsl:apply-templates/>
>
> </xsl:template>

with the xsl:text made bad error, memory was telling me that one could
have further processing inside of xsl:text in xslt 2.0? I could swear I
read something about that in first draft on spec, but just now in
looking over spec for other stuff saw it did not apply.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.