You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2004/02/21 18:31:37 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/xslt/authoring/edit copy-mixed-content.xsl

michi       2004/02/21 09:31:37

  Modified:    src/webapp/lenya/xslt/authoring/edit copy-mixed-content.xsl
  Log:
  escaping of special characters of attributes
  
  Revision  Changes    Path
  1.5       +2 -1      cocoon-lenya/src/webapp/lenya/xslt/authoring/edit/copy-mixed-content.xsl
  
  Index: copy-mixed-content.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/authoring/edit/copy-mixed-content.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- copy-mixed-content.xsl	4 Feb 2004 10:50:20 -0000	1.4
  +++ copy-mixed-content.xsl	21 Feb 2004 17:31:37 -0000	1.5
  @@ -74,10 +74,11 @@
   </xsl:choose>
   </xsl:template>
   
  +<!-- Attributes -->
   <xsl:template match="@*" mode="mixedcontent">
   <xsl:variable name="prefix"><xsl:if test="contains(name(),':')">:<xsl:value-of select="substring-before(name(),':')"/></xsl:if></xsl:variable>
   
  -<xsl:text> </xsl:text><xsl:value-of select="name()"/>="<xsl:value-of select="."/>"<xsl:if test="namespace-uri()"><xsl:text> </xsl:text>xmlns<xsl:value-of select="$prefix"/>="<xsl:value-of select="namespace-uri()"/>"</xsl:if></xsl:template>
  +<xsl:text> </xsl:text><xsl:value-of select="name()"/>="<xsl:call-template name="search-and-replace"><xsl:with-param name="string" select="."/></xsl:call-template>"<xsl:if test="namespace-uri()"><xsl:text> </xsl:text>xmlns<xsl:value-of select="$prefix"/>="<xsl:value-of select="namespace-uri()"/>"</xsl:if></xsl:template>
   
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org