I had a problem very similar to this.  I found that my problem was with
strip_namespaces.xsl.  It seems to strip out comments as well as
namespaces.  Therefore I overwrote the original strip_namespaces.xsl
file by creating one at <publication>/lenya/xslt/util

Here is the file I made:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns="http://www.w3.org/1999/xhtml";>

  <xsl:import
href="template-fallback://lenya/xslt/util/strip_namespaces.xsl"/>

<!-- Added to maintain comments -->
  <xsl:template match="comment()">
    <xsl:copy/>
  </xsl:template>

</xsl:stylesheet>


Hopefully this will help,

Phillip

>>> "Gav...." <[EMAIL PROTECTED]> 7/2/2007 8:52 AM
>>>


> -----Original Message-----
> From: Jürgen Ragaller [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 2 July 2007 5:56 PM
> To: user@lenya.apache.org 
> Subject: [1.4] - using xsl:comment (for conditional comments)
> 
> Hi there!
> 
> 
> To make Internet Explorer happy I'd like to use conditional comments
> (for ie css).
> (http://msdn2.microsoft.com/en-us/library/ms537512.aspx)
> 
> To insert a comment in the xsl I use:
> <xsl:comment>Conditional comment here</xsl:comment>
> 
> This was working a while ago - but with the current svn version the
> comment is not present in the output - so the question boils down to
> «how do I insert a html-Comment»?
> I switched the pretty printing step off in our sitemap.xmap.

I've not tried it on Lenya, nor know it well enough to know if a
better
solution exists, but ..

Have you tried wrapping the HTML Comments in a CDATA block ....

<xsl:comment><![CDATA[Conditional comment here ]]></xsl:comment>

might work (might not)

Gav...

> 
> 
> Help is very appreciated!
> 
> 
> Jürgen Ragaller
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to