This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: struck with space handling
- From: subbu at boltblue dot com
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 11 Jul 2002 12:59:45 +0100
- Subject: Re: [xsl] struck with space handling
- References: <9723092BA4DBD111816D0000F6B093610C27E9E5@imsuklndsx1.lnd.uk.imshealth.com> <00ba01c21dc1$c4e01a70$1802893e@ROSEBUD> <1026384816.3d2d63b0c4d75@www.boltblue.com> <200207111137.MAA31515@penguin.nag.co.uk>
- Reply-to: xsl-list at lists dot mulberrytech dot com
cheers Dave !! That Rocks
Quoting David Carlisle <davidc@nag.co.uk>:
>
> >"
> <
>
> That text node is not all white space because of the " so the
> whole lot gets put in the output.
>
> The rules for white space in XSLT are really very simple, and you have
> full control over which spaces get output. All characters in a template
> get copied to the output unless they are in a text node that consists
> of just white space, in which case extra rules apply, but by default
> they do not get copied unless they are a child of xsl:text.
>
> If you want to use white space to indent your stylesheet without
> affecting the output just always make sure all characters to be output
> are inside <xsl:text>.
>
>
> > <!DOCTYPE xsl:stylesheet SYSTEM
> "D:\xsl-exp\characterEntities\entityref.dtd">
> It is rarely worthwhile declaring entities in the stylesheet.
> If you do, then note that teh above is not strictly legal although some
> parsers may silently correct it for you. the SYSTEM ID should be a URI.
> You have a URI in the unknown URI scheme D: what you probably want is
> file:///D/xsl-exp/characterEntities/entityref.dtd
>
> David
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service. For further
> information visit http://www.star.net.uk/stats.asp or alternatively call
> Star Internet for details on the Virus Scanning Service.
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
--------------------------------------------------------------
Sent with "Me-Mail", Boltblue's FREE mobile messaging service.
http://www.boltblue.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list