xsl-list
[Top] [All Lists]

Re: [xsl] Insert space after the closing element

2010-01-22 11:10:15
On Fri, Jan 22, 2010 at 9:35 PM, Selvaganesh 
<selvaganesh1985(_at_)gmail(_dot_)com> wrote:
<hov:if test="not(matches(following-sibling::text()[1], 
"^[-,:;;]"))"><hov:text> </hov:text></hov:if>

You have a double quoted string inside, another double quoted string,
which makes your stylesheet a non-wellformed (XML) document.

You may make the inner quotes as single quotes, as follows:
test="not(matches(following-sibling::text()[1], '^[-,:;;]'))"

and that should work. Or you may make the outer ones as single, and
inner ones as double, and that should also work.

btw, I have a comment about your choice of stylesheet URI prefix (an
unusual one, hov:). The most common convention is to use the prefix,
xsl:


-- 
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--