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

RE: In Tears... (learning XPath)

Subject: RE: In Tears... (learning XPath)
From: prasadm@xxxxxxx
Date: Fri, 14 Jul 2000 12:56:21 -0500
xpath concat expression
Try using 

<xsl:value-of select="concat('sect1', $sect1num, '.htm')"/>

This should work.

- Prasad

> -----Original Message-----
> From:	Buss, Jason A [SMTP:jabuss@xxxxxxxxxxxxxxxxxx]
> Sent:	Friday, July 14, 2000 11:46 AM
> To:	xsl-list@xxxxxxxxxxxxxxxx
> Subject:	In Tears... (learning XPath)
> 
> Hi everyone...
> 
> I am having quite a bit of trouble with XPath expressions.
> 
> I am building <xsl:value-of select=" "/> where the select value is text
> "sect", a value taken from <xsl:variable name='sect1num'
> select='./title[@id]'/>, and the ".htm" file extension.  (I am building an
> href for an anchor in HTML).
> 
> someone suggested I use <xsl:attribute name='href'>(the value-of element
> with concat expression)</xsl:attribute>
> 
> I cannot, for the life of me, get the expression syntax correct.
> 
> concat(sect1,$sect1num,.htm)... failed.
> concat("sect1",$sect1num,".htm")... failed.
> concat("sect1"$sect1num".htm")... failed.
> concat(sect1{,$sect1num,.htm}*)... failed.
> concat(sect1,$sect1num,.htm*)... failed.
> 
> I know this is a newbie question, but I am stuck here.  
> The XPath spec uses concat(expression1,expression2,expression3*) as the
> example...
> The SAXON documentation shows concat(expression1{,expression2}*)...
> 
> I can't get either to work.
> 
> I am using SAXON with XP.  This is being used with <saxon:output>
> 
> Thanks in advance...
> 
> Jason A. Buss
> Single Engine Technical Publications
> Cessna Aircraft Company
> jabuss@xxxxxxxxxxxxxxxxxx
> 
> In 1992 the Web was a garden of personal home pages blooming with
> thoughts,
> opinions, and life experiences. People were learning how to build their
> own
> sites, experimenting with design, and sharing their voice with the world
> while the business world scrambled for ways to "monetize" the internet and
> capitalize on its fertility.
> Then they paved it all and built a mall.               -Biz Stone       
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.