Re: [xsl] converting XML to XML problem

Subject: Re: [xsl] converting XML to XML problem
From: Abhijit Junnare <mavlaabhi@xxxxxxxxx>
Date: Tue, 11 Nov 2003 13:32:39 -0800 (PST)
Hi Wendell,
Yes now I get what you were saying. But the white
space is before  
"&amp;" and not as "&   amp;" so I do not see any
reason why 

<xsl:text> &amp;</xsl:text> should not work the same
way as 
<xsl:text>&amp;</xsl:text>. 
The only thing that may happen is that there will be
an extra space in the output xml if I am correct.
Help me understand if you think I did not catch what
you are trying to say.
Thanks,
Abhi

--- Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> wrote:
> Abhi,
> 
> If you compare the two examples, you will see that
> one has whitespace 
> around the "&_amp;" character.
> 
> "&_foo;" (without the _) is an entity reference
> (assuming, of course, it's 
> been declared as such). But
> 
> "&
>       foo;"
> 
> is not.
> 
> The xsl:text instruction copies its data content to
> the output -- data 
> content including whitespace. Whitespace is not
> stripped inside xsl:text; 
> this is a feature. You need to mind that it doesn't
> create a bug.
> 
> Cheers,
> Wendell
> 

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread