Ugo,
thanks for that ;-)

Peter
On 2 Apr 2004, at 15:54, Ugo Cei wrote:

beyaNet Consultancy wrote:
Hi,
In my site pages I am having an issue whereby when you view source on a page you can still see some of the xslt tags embedded in some of the html tags, for instance:
<form xmlns:xsp="http://apache.org/xsp"; xmlns:util="http://apache.org/xsp/util/2.0"; xmlns:xsp-session="http://apache.org/xsp/session/2.0"; xmlns:xsp-request="http://apache.org/xsp/request/2.0"; action="login" method="post">
How do I prevent this from happening, so that the tag just reads as?:
<form action="" method="">
All my pages need to be serialized as serverpages.
                
  <!--
     - Namespace removing templates
     - from http://outerthought.net/wiki/Wiki.jsp?page=RemoveNamespaces
  -->
  <xsl:template match="*" priority="-1" mode="copy">
    <xsl:element name="{local-name()}">
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates mode="copy"/>
    </xsl:element>
  </xsl:template>

  <xsl:template match="text()" mode="copy">
    <xsl:value-of select="."/>
  </xsl:template>



Ugo


--------------------------------------------------------------------- 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