Subject: Re: [xsl] Whitespace question From: "Christopher R. Maden" <crism@xxxxxxxxx> Date: Tue, 18 Sep 2001 05:29:08 -0700 |
Christopher R. Madsen wrote:
(What you need to do is insert the space unless there's a text node already there, which means that there was something other than just space.)
How do you check wether there is a textnode allready? I am not very good at figuring things out at the moment, sorry.
I am in the situation where I have lots of different kinds of parrent nodes before the <code1> node, so I can't use the <xsl:perseve-space="code"/> unless I wish to write this line sixty times with different elements.
I need the program to add a space if there is a new node right after, only if there is a space between them:
(I): <One>bla</One> <Two>bla</Two> should keep the space, but
(II): <One>bla</One><Two>bla</Two> should not, and
HTH, Chris -- Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc. DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training <URL: http://www.hmmci.com/ > <URL: http://crism.maden.org/consulting/ > PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Whitespace question, Ragulf Pickaxe | Thread | Re: [xsl] Whitespace question, David Carlisle |
RE: [xsl] forcing a carriage return, Michael Kay | Date | RE: [xsl] getting the context out o, Michael Kay |
Month |