Subject: [xsl] method='text' ... whitespace problems From: DPawson@xxxxxxxxxxx Date: Mon, 18 Nov 2002 16:05:27 -0000 |
I'm having fun and games generating some plain text output. Requirement is to produce something akin to [begin label: ] content content etc [end label] I.e. each 'block' is seperated by one newline from its predecessor, and has one newline between the block start ([ .... ] ) and block end [end ....] I really don't know if the user wants to process on *nix or win32, hence I have <!DOCTYPE xsl:stylesheet [ <!ENTITY nl "<xsl:text> </xsl:text>"> <!ENTITY indent "<xsl:text> </xsl:text>"> ]> The indent is not giving any problems, but the newline certainly is. I'm beginning to suspect its the viewer I'm using (as with encoding issues). Typically I'm using <xsl:template match="element"> &nl;[begin thisLabel: ] <xsl:apply-templates/> [end thisLabel] </xsl:template> which is not producing what I expect. I'm looking for an explanation of what happens with output='text', within a template, and for suggestions as to a definition of the nl entity which might suit either/both win32 + *nix environs. TIA, DaveP **** snip here ***** - NOTICE: The information contained in this email and any attachments is confidential and may be legally privileged. If you are not the intended recipient you are hereby notified that you must not use, disclose, distribute, copy, print or rely on this email's content. If you are not the intended recipient, please notify the sender immediately and then delete the email and any attachments from your system. RNIB has made strenuous efforts to ensure that emails and any attachments generated by its staff are free from viruses. However, it cannot accept any responsibility for any viruses which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] variable declaration, Stuart Brown | Thread | Re: [xsl] method='text' ... whitesp, David Carlisle |
[xsl] variable declaration, Laura Jenkins | Date | RE: [xsl] variable declaration, Stuart Brown |
Month |