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

RE: $string + 'string' in one line

Subject: RE: $string + 'string' in one line
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 23 May 2001 16:01:25 +0100
awk string concat
Simplest solution is to change
	<xsl:copy-of select="$root_dir"/>/styles

to
<xsl:copy-of select="$root_dir"/><xsl:text>/styles</xsl:text>

(the newline and spaces following "/styles" are part of the same text node,
so they aren't stripped from the stylesheet)

but I'd write it as
<xsl:variable name="styles_dir" select="concat($root_dir, '/styles')"/>

Mike Kay
Software AG

> <xsl:variable name="root_dir" select="'/cocoon/awk'"/>
> <xsl:variable name="styles_dir">
>     <xsl:copy-of select="$root_dir"/>/styles
> </xsl:variable>
>
> <xsl:template match="body">
> <link rel="stylesheet" type="text/css"
> href="{$styles_dir}/{@style}.css"/>
> </xsl:template>
>
> produces:
>    <link rel="stylesheet" type="text/css" href="/cocoon/awk
>    /styles/simple.css"/>
>
> but i want to have it in one line. how should i do it?
>
> i hope it's not stupid question again. i still have no good
> manual and short deadline to prepare some schematic pages (maybe
> it's my fault i tried it with xslt, which i've never used), so
> please forgive me ;-)
>
> --
> Daniel `bonkey' Bauke; http://www.oho.pl/~bonkey/;
> {happiness=bike&&unix;}
>
>  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.