Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4978353

mode="text" does not return text element

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • java_xml_pack
    • xml

      Given the following XML document:

        <b>transform one text</b>

      And the following XSLT stylesheet:

        <?xml version="1.0"?>
        <xsl:stylesheet
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
        <xsl:output method="text"/>
        <xsl:template match="text()">
          <a><xsl:value-of select="."/></a>
        </xsl:template>
        </xsl:stylesheet>

      The transformation yields a DOMResult with no nodes at all.

      Shouldn't a text element be in the DOMResult?
      Agree this won't be a valid XML document, but still, one
      would expect the text element 'transform one text' to
      be included in the DOMResult.

      ###@###.### 2004-01-14
      ###@###.### 2004-01-15

            ayadavsunw Arun Yadav (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: