xsl-list
[Top] [All Lists]

RE: Strip space in Sablotron (Non-Problem : fixed ;-)

2003-04-08 07:52:02
Thanks Avula - basic mistake !

Tried it, it worked :--)) Marrow on the MS newsgroup pointed out quite rightly the processor is applying the default rules for any elements without templates (and of course these don't have strip-space LOL)

So - Thanks for the pointers Avula & all, I think I'm having one of those days :-p

One interesting thing I may need to do : Transform one or more of my elements to quoted-printable encoding. What this means is : substitute carriage returns in the original source -element- with the string =0D=0A=

I looked briefly at translate() function, but that only translates one character into another, where I need to translate one character into a string.

Now, will I run into problems with the default processing of XML where line endings are normalised, I *think* to a newline (if correct ?) That is, my XSL never gets to see the carriage return characters ? If so, I need to do some pre-processing in PHP before passing to my stylesheet.

Suggestions / URLs gratefully received

Cheers,
Neil Smith.

At 14:40 07/04/2003 -0400, you wrote:
Date: Mon, 7 Apr 2003 11:06:27 -0700
From: "Avula, Raj" <ravula(_at_)firstam(_dot_)com>
Subject: RE: [xsl] Strip space in Sablotron keeps unwanted (source XML) li ne breaks :-(

If you start your xsl with the root level element it should solve the
problem.

<xsl:template match="/iCalendar">
        <xsl:apply-templates select="vcalendar/vevent" />
</xsl:template>

<xsl:template match="vevent".............


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>