cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helma van der Linden (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-1058) [PATCH] optional removal of XSP-introduced extra whitespace
Date Tue, 25 Oct 2005 14:06:59 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1058?page=all ]
     
Helma van der Linden closed COCOON-1058:
----------------------------------------

    Resolution: Fixed

> [PATCH] optional removal of XSP-introduced extra whitespace
> -----------------------------------------------------------
>
>          Key: COCOON-1058
>          URL: http://issues.apache.org/jira/browse/COCOON-1058
>      Project: Cocoon
>         Type: Improvement
>   Components: * Cocoon Core
>     Versions: 2.1.8-dev (Current SVN)
>  Environment: Operating System: All
> Platform: All
>     Reporter: Guillaume Déflache
>     Assignee: Cocoon Developers Team
>     Priority: Minor
>  Attachments: xsp.xsl.diff, xsp.xsl.diff
>
> With this patch, extra whitespace introduced between tags in XSPs will not
> propagate into the resulting XML document: that is _no_ SAX "characters"
> function calls that create _only_ whitespace will be created (see #6789 for
> details on this problem) and other whitespace will be trimmed.
> This behaviour is switched on by adding a "space" attribute on the xsp:page root
> element with the value "strip". Anything other will keep the default behaviour,
> so compatibility is OK I think.
> Basically it works the same as the default whitespace-stripping in XSLT.
> There may be a need for an equivalent of <xsl:text/> but this is not provided by
> this patch. It seems <xsp:text/> tags can already used inside <xsp:attribute/>:
> perhaps it has the wanted semantics, then that would be a good candidate for the
> name.
> Note that this patch does _not_ affect the source formatting of your Java class,
> so the same principle could be applied to whitespace-sensitive languages like
> Python...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message