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

Re: Insert space after the closing element

Subject: Re: Insert space after the closing element
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Fri, 22 Jan 2010 22:39:18 +0530
Re:  Insert space after the closing element
On Fri, Jan 22, 2010 at 9:35 PM, Selvaganesh <selvaganesh1985@xxxxxxxxx> 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

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.