httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/docs/manual/style/xsl common.xsl
Date Sun, 11 Jan 2004 22:43:31 GMT
nd          2004/01/11 14:43:31

  Modified:    docs/manual/style/xsl common.xsl
  Log:
  better explicit than implicit. This time it fixes namespace problems
  when using another processor than xalan-j. In fact, I'm not sure
  if it's a bug in xalan-j to not have these problems:
  
  <copy>'d elements got xmlns="" attribute, which even seems right to me.
  
  Revision  Changes    Path
  1.40      +28 -1     httpd-2.0/docs/manual/style/xsl/common.xsl
  
  Index: common.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/common.xsl,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -u -r1.39 -r1.40
  --- common.xsl	1 Jan 2004 13:20:08 -0000	1.39
  +++ common.xsl	11 Jan 2004 22:43:30 -0000	1.40
  @@ -916,11 +916,38 @@
   <!-- ==================================================================== -->
   <!-- Process everything else by just passing it through                   -->
   <!-- ==================================================================== -->
  -<xsl:template match="*|@*">
  +<xsl:template match="*">
  +<xsl:message terminate="yes">
  +    <xsl:text>Unknown element: </xsl:text>
  +    <xsl:value-of select="local-name()" />&lf;
  +    <xsl:text>Please fix style/xsl/common.xsl!</xsl:text>
  +</xsl:message>
  +</xsl:template>
  +<xsl:template match="@*">
   <xsl:copy>
       <xsl:apply-templates select="*|@*|text()" />
   </xsl:copy>
   </xsl:template>
  +<xsl:template match="br"><br /></xsl:template>
  +<xsl:template match="tr"><tr><xsl:apply-templates select="*|@*|text()" /></tr></xsl:template>
  +<xsl:template match="th"><th><xsl:apply-templates select="*|@*|text()" /></th></xsl:template>
  +<xsl:template match="td"><td><xsl:apply-templates select="*|@*|text()" /></td></xsl:template>
  +<xsl:template match="p"><p><xsl:apply-templates select="*|@*|text()" /></p></xsl:template>
  +<xsl:template match="ul"><ul><xsl:apply-templates select="*|@*|text()" /></ul></xsl:template>
  +<xsl:template match="li"><li><xsl:apply-templates select="*|@*|text()" /></li></xsl:template>
  +<xsl:template match="dl"><dl><xsl:apply-templates select="*|@*|text()" /></dl></xsl:template>
  +<xsl:template match="dt"><dt><xsl:apply-templates select="*|@*|text()" /></dt></xsl:template>
  +<xsl:template match="dd"><dd><xsl:apply-templates select="*|@*|text()" /></dd></xsl:template>
  +<xsl:template match="em"><em><xsl:apply-templates select="*|@*|text()" /></em></xsl:template>
  +<xsl:template match="strong"><strong><xsl:apply-templates select="*|@*|text()"
/></strong></xsl:template>
  +<xsl:template match="pre"><pre><xsl:apply-templates select="*|@*|text()"
/></pre></xsl:template>
  +<xsl:template match="code"><code><xsl:apply-templates select="*|@*|text()"
/></code></xsl:template>
  +<xsl:template match="var"><var><xsl:apply-templates select="*|@*|text()"
/></var></xsl:template>
  +<xsl:template match="dfn"><dfn><xsl:apply-templates select="*|@*|text()"
/></dfn></xsl:template>
  +<xsl:template match="blockquote"><blockquote><xsl:apply-templates select="*|@*|text()"
/></blockquote></xsl:template>
  +<xsl:template match="q"><q><xsl:apply-templates select="*|@*|text()" /></q></xsl:template>
  +<xsl:template match="cite"><cite><xsl:apply-templates select="*|@*|text()"
/></cite></xsl:template>
  +<xsl:template match="img"><img><xsl:apply-templates select="*|@*|text()"
/></img></xsl:template>
   <!-- /pass through -->
   
   
  
  
  

Mime
View raw message