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

Problems with IncrementalSAXSource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.2.x
    • None
    • DTM
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 3881

    Description

      Hi,
      I have a problem with a Stylesheet adding some attributes to a XML document.
      I get the following exception:
      org.apache.xml.dtm.ref.IncrementalSAXSource_Filter$StopException
      at org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.co_yield(Increment
      alSAXSource_Filter.java:586)
      at org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endDocument(Increm
      entalSAXSource_Filter.java:267)
      at org.dom4j.io.SAXWriter.endDocument(SAXWriter.java:498)
      at org.dom4j.io.SAXWriter.write(SAXWriter.java:128)
      at org.dom4j.io.SAXWriter.parse(SAXWriter.java:387)
      at org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.run(IncrementalSAX
      Source_Filter.java:647)
      at java.lang.Thread.run(Thread.java:484)

      I use this code fragment with the early access implementation of JAXM:
      soapWriter = processor.newTransformer(new StreamSource
      ("file:///e:/Literatur/ebxml/xsd/schema.xslt"));
      soapWriter.transform(soapMessage.getSOAPPart().getContent(), new
      StreamResult("file:///e:/Literatur/ebxml/xsd/" + test + ".xml"));

      I have attached the XSLT and the result, which I get with Saxon, and the input
      as XML.

      Best regards

      Thomas

      PS. Because I am on vacation next week donĀ“t worry if you get no answer to
      further questions before 08.10.01. But try, may be I am able to answer before.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--schema.xslt
          0.9 kB
          thomas2.maesing
        2. ASF.LICENSE.NOT.GRANTED--output_by_saxon.xml
          1 kB
          thomas2.maesing
        3. ASF.LICENSE.NOT.GRANTED--input.xml
          1 kB
          thomas2.maesing

        Activity

          People

            Unassigned Unassigned
            thomas2.maesing@bgs-ag.de thomas2.maesing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: