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

Re: Space after <a> tag in text output

Subject: Re: Space after <a> tag in text output
From: António Mota <xptm@xxxxxxx>
Date: Wed, 15 Dec 2004 17:01:22 +0000
space after a
Can?t imagine why you're writing to a temp file, but...

Did you look at normalize-space?

Quoting Vivek Shinde <Vivek.Shinde@xxxxxxx>:

> Hi,
>
> I am processing a XML file to generate 'text' output. Here's a sample code:
> Original XML file has
> <articledescription>
>    <p>Vivek is a <a href="http://www.sas.com/">SAS</a> employee.</p>
> </articledescription>
>
> To process this I am writing the content of <articledescription> into a
> temporary XML file using
> <redirect:write select="$xmlfile">
>
> Then I read the temp XML file and apply template by:
> <xsl:apply-templates select="document($xmlfile)" mode="proc-txt"/>
>
> While I do that all of my tags are being processed OK. But when I come
across
> <a> tag, the space between </a> and the next word appears as a first
> character on the next line. So it looks like
>
> Vivek is a SAS
> http://www.sas.com
>  employee.
>
> Since I do not have control on the space before word 'employee', I am not
> able to eliminate it. Any suggestion?
>
> Appreciate your help.
>
> Thanks
> Vivek
>
>





O SAPO ja esta livre de vmrus com a Panda Software, fique vocj tambim!
Clique em: http://antivirus.sapo.pt

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.