Re: [xslt] string literal with single-quote inside won't parse
- From: "Martin (gzlist)" <gzlist googlemail com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] string literal with single-quote inside won't parse
- Date: Mon, 14 Sep 2009 16:52:21 +0100
2009/9/11 Viktor Štujber <theultramage gmail com>:
> Hello. I noticed that libxslt errors out if I try to use a
> single-quoted string literal with a single-qoute (') or ' inside
> it. I know it can be worked around using a temporary variable to store
> the literal, however I'm curious whether this issue will be resolved
> someday, or whether it is 'a feature'.
Your attached example is an error by the spec, you can instead write it like:
<xsl:value-of select=""Hello, I'm a literal with an apostrophe
inside.""/>
or:
<xsl:value-of select='"Hello, I'm a literal with an apostrophe inside."'/>
Martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]