Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-632

@use-attribute-sets attribute has to have no effect on xsl:copy when the context item is a documen node.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • CurrentCVS
    • CurrentCVS
    • XalanC
    • None
    • Tested on Win32

    Description

      The testcase :
      <?xml version="1.0"?>
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:my="http://www.examples.com/my" xmlns:your="http://www.examples.com/my"
      exclude-result-prefixes="my your"
      version="1.0">

      <xsl:template match="/">
      <out>
      <xsl:copy use-attribute-sets="my:set"/>
      </out>
      </xsl:template>

      <xsl:attribute-set name="my:set">
      <xsl:attribute name="att1">
      <xsl:value-of select="'A1'"/>
      </xsl:attribute>
      </xsl:attribute-set>

      </xsl:stylesheet>

      Attachments

        1. patch.diff
          2 kB
          David N Bertoni

        Activity

          People

            dbertoni David N Bertoni
            dmitryh Dmitry Hayes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: