XSL:  you can also use   to force spaces....

Placing JavaScript inside XSLT should *not* cause any 
problems - use the <![CDATA notation - see:

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg09863.html

I had no problems with the formatting of the Javascript
being altered when I did this...

Derek

>>> [EMAIL PROTECTED] 26/03/2002 12:52:11 >>>
I had the same problem.  Adding
<xsl:output indent="no" />
<xsl:strip-space elements="*" />
right under the root node solved the problem.  Every image sticks
correctly 
to the previous one in the browser.  All the tags follow one another. 
It's 
also a very good way to compress the HTML output.  There's one drawback

though: all the leading spaces are stripped too.  So if you are relying
on 
a space to separate text from an image you have to add a space using
the 
xsl:text element.
Make sure you don't have any JavaScript in your page or the lines from
your 
code will be placed on 1 line too.  Use external javascript files and 
everything is solved.
Bert


At 01:49 26/03/2002 -0800, you wrote:
>Rookie cocoon user. Asked this question about a week ago and got no
>answer, trying to rephrase it.
>
>I have very simple XML documents. I'm using a simple XSL to insert
>content (from the XML) into an XHTML skin. Works well except the
>resulting HTML is modified which breaks browser display compatibility
>(menu layout spacing is drastically, and incorrectly, changed).
Example:
>
>Input:
>     <tr><td><a href="somwhere.htm"><DEFANGED_IMG
src="image.gif"></a></td></tr>
>
>
>Output:
><tr>
><td>
><a href="somwhere.htm">
><DEFANGED_IMG src="image.gif"/>
></a>
></td>
></tr>
>
>
>Is there some way to keep the XHTML that is embedded in my XSL from
>being reformatted this way. I've tried messing with a variety of XML
and
>XSL whitespace control techniques, but none with the desired result.
>
>Any help would be appreciated.
>
>Corey
>
>
>---------------------------------------------------------------------
>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: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to