Issue Details (XML | Word | Printable)

Key: MPXDOC-37
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Paul Strack
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x XDoc Plugin

Too much whitespace in site.jsl script

Created: 16/Oct/03 09:32 AM   Updated: 01/Dec/03 09:32 AM   Resolved: 17/Oct/03 12:56 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Any


 Description  « Hide

There is too much whitespace in the site.jsl Jelly script that converts xdocs to HTML. This results in some ugly HTML option (especially when the original xdoc source document has a lot of HTML markup).

There is an easy fix: simply remove the whitespace from the last few Jelly templates in the stylesheet:

<!-- copy any other elements through -->
<jsl:template match="*" trim="false"><jsl:copy trim="false"><jsl:applyTemplates trim="false"/></jsl:copy></jsl:template>

<!-- element values don't pass through as text -->
<jsl:template match="@*"/>

<!-- CDATA and text nodes pass-thru -->
<jsl:template match="text()"><x:expr select="."/></jsl:template>

</jsl:stylesheet>



dion gillard added a comment - 17/Oct/03 12:56 AM

Applied in xdoc 1.5-SNAPSHOT.
Not too much of a gain though