[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: struck with space handling
>" < 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|