cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Watson" <>
Subject Does xsl:strip-space work ?
Date Thu, 25 Apr 2002 19:26:16 GMT
Hi, can anyone help
I want to rid my html of whitespace.

According to the XSLT spec, if a text node contains just whitespace - tab,
space, CR, LF
it will be stripped,

Also I'm trying belt abd braces, but still I'm getting the whitespace from
my XML throuhg into the HTML,
using a stylesheet like this ...

<?xml version="1.0"?>

<xsl:output indent="no" />
<xsl:strip-space elements="*" />
<xsl:template match="/myelement">
      <title>My Page</title>

The <xsl:strip-space elements="*" /> makes no difference

Anything else I need to do?
Do I somehow need to persuade xalan to take notice?
Does it take notice?

Christopher Watson

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message