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

RE: Appended text = to a string?

Subject: RE: Appended text = to a string?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 13 Aug 2004 23:55:06 +0100
check if text is string
This is a case where you do need the construct

<xsl:variable name="x">
  <xsl:apply-templates/>
</xsl:variable>
<xsl:if test="$x=abcd">

Michael Kay 

> -----Original Message-----
> From: Lincoln Mitchell [mailto:lincoln@xxxxxxxxxxx] 
> Sent: 13 August 2004 23:49
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Appended text = to a string?
> 
> How do I check if a set of nodes appended together is equal 
> to a string?
> 
> I know the following is wrong but it illustrates what I am 
> trying to do:
> <xsl:variable name="String1" select="<xsl:apply-templates 
> select='text'/>"/>
> <xsl:if test="$String1=$String2">
> 	Do something...
> </xsl:if>
> 
> TIA
> Linc

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.