cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Watson" <c.wat...@zen.co.uk>
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:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0"
>
<xsl:output indent="no" />
<xsl:strip-space elements="*" />
<xsl:template match="/myelement">
  <html>
    <head>
      <title>My Page</title>
    </head>
<body>
...

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. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message