DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18333>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18333

namespaces in template match

           Summary: namespaces in template match
           Product: XalanJ2
           Version: 2.5Dx
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This code doesn't work well:

XML_________________

<?xml version='1.0' encoding='ISO-8859-1'?>
  <nmspc:root xmlns:nmspc='http://www.namespaces.org' version='1.0'>
   <nmspc:hour>12:00</nmspc:hour>
   <nmspc:hour>13:40</nmspc:hour> 
   ...

XSL_________________

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

  <xsl:template match="/">
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="nmspc:hour">
    <!-- XALAN NEVER CALL THIS TEMPLATE (SAXON WORKS FINE)-->
    ...
  </xsl:template>

  ...

A solution_________________

sustitute:
  <xsl:template match="nmspc:hour">
by:
  <xsl:template match="*[local-name()='hour']">

It is one solution that not solves the problem...

Reply via email to