Renaud Richardet wrote:
Doug Chestnut wrote:
you could change it there, or better yet
{yourpub}/lenya/modules/xhtml/resources/schemas/xhtml.rng (copy file from file you specified)
Yes, copy lenya-1.4.x/build/lenya/webapp/lenya/modules/xhtml/resources/schemas/xhtml.rng
to {yourpub}/lenya/modules/xhtml/resources/schemas/xhtml.rng
and uncomment the necessary lines (strict and transitional are already there, commented out)

-- Renaud

Thanks to both of you, that worked.

Doug, I did have to change another part of the XSLT you posted earlier and I added one of my own. We have had it where images are off of the body, and from what I've seen, that isn't legal. For completeness sake, here are the additions to clean-xhtml.xsl.


<!-- remove invalid <br /> elements -->
<xsl:template match="xhtml:body/xhtml:br" />

<!-- remove that nasty @align that shows up in the table -->
<xsl:template match="xhtml:[EMAIL PROTECTED]" >
 <xsl:copy>
   <xsl:apply-templates select="@*[name()!='align'][name()!='style']" />
<xsl:attribute name="style">align:<xsl:value-of select="@align"/>;<xsl:value
-of select="@style" /></xsl:attribute>
<xsl:apply-templates />
</xsl:copy>

</xsl:template>

<!-- wrap free images in paragraphs -->
<xsl:template match="xhtml:body/xhtml:img" >
 <xhtml:p>
   <xsl:copy>
     <xsl:apply-templates select="@*" />
   </xsl:copy>
 </xhtml:p>
</xsl:template>




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

Reply via email to