|
Subject: RE: [xsl] $string + 'string' in one line From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Wed, 23 May 2001 16:01:25 +0100 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] $string + 'string' in one, Francis Norton | Thread | [xsl] call-template in MSXML3, Jason Macki |
| Re: [xsl] $string + 'string' in one, Francis Norton | Date | RE: [xsl] Problem with attributes, Michael Kay |
| Month |