mode="text" does not return text element

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: java_xml_pack
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: