Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2131

no xhtml or rdf parsing?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 2.6
    • 2.7
    • parse-or-compile
    • None
    • Windows NT, java 1.5.0_02-b09

    Description

      i'm currently learning xsl with xalan-j. Besides working quite well there are two strange exceptions where xalan-j seems not to work at all.

      When the root element of the source xml file is rdf:RDF or html (for an xhtml 1.0 file), the template for the "/" element matches, but no template for "html", "/html", "rdf:RFD" or "/rdf:RDF" matches. When i change the root elements to "xyz" in both files, the xml source file and the xsl stylesheet, then i get the template working. Changing it back to html resp. rdf:RDF stops the template working.

      strange enough, but in a construct like:
      <xsl:template match="/">
      <xsl:for-each select="*">
      <xsl:value-of select="name(.)"/>
      </xsl:for-each>
      </xsl:template>

      prints out the root element name, be it rdf:RDF or html. But:

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

      does not call the appropriate template, neither the first call nor the second. The same for rdf:RDF. Any other root element i tested up to now works.

      Attachments

        Activity

          People

            Unassigned Unassigned
            siegfried Siegfried Gipp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: