|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: $string + 'string' in one line
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








