Subject: Re: [xsl] Whitespace between nodes From: Nicholas Shanks <contact@xxxxxxxxxxxxxx> Date: Thu, 13 May 2004 15:45:21 +0100 |
Would you agree that, in this case, it should be: <q> <a href="...">...</a> </q>
Assuming that the output method is HTML, the output should be <q><a href="...">...</a></q> whether or not indent="yes" has been set.
However, as far as I can see the responses to the original question have
been very confused. I don't think it has been clearly established whether
the unwanted whitespace came (a) from whitespace-only text nodes in the
source (in which case it should be removed using xsl:strip-space), (b) from
significant whitespace in the source (in which case it should be removed
using normalize-space()), or (c) as a result of output indentation. The
remedies in the three cases are quite different.
So yes, there is a tag (and function) that do what you need but theyre not really magic.
Im telling you these things because as I read through your email thread I was seeing a lot of frustration and contention with those trying to help.
And a quick trip to Michaels Kay's reference...
or Dave Pawson's FAQ would have presented a dozen examples using an element and function that
pretty much state in plain English just what it is they do.
I've found that when there feels like there should be a simple solution
there usually is and it just takes a bit of research to find the answer.
And if after doing the research you still cant find the answer your
going to find a lot of people in here who will help you with exactly the
things you need but who will also avoid you if they feel like your not
doing anything to research it yourself and your getting frustrated with
people because theyre not giving you exactly what you want when you want
it.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Re: [xsl] Whitespace between no, cknell | Thread | Re: [xsl] Whitespace between nodes, Wendell Piez |
RE: [xsl] RE: [saxon] OASIS-Open/CA, Andrew Welch | Date | [xsl] RE: [saxon] OASIS-Open/CALS *, Michael Müller-Hille |
Month |