xsl-list
[Top] [All Lists]

Re: Space after <a> tag in text output

2004-12-15 10:11:19
Hi,

I think we need to see some more of the XSL to come to a conclusion. It could be that you have indentation set to yes (which is the default of some XSL parsers), but I can't tell for sure. What processor are you using?

Cheers,
Geert

Vivek Shinde wrote:

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


--~------------------------------------------------------------------
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>
--~--




--
Geert(_dot_)Josten(_at_)Daidalos(_dot_)nl
IT-consultant at Daidalos BV, Zoetermeer (NL)

http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464

GPG: 1024D/12DEBB50

--~------------------------------------------------------------------
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>
--~--