JiBX
  1. JiBX
  2. JIBX-230

Would be useful to be able to add XML processing instructions in binding files

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      My app needs to add stylesheet processing instructions to some of my XML outputs of the form:

      <?xml-stylesheet href="/splod.xsl" type="text/xsl"?>

      It is possible to do this programatically by getting the hold of the IXMLWriter from the IMarshallingContext, but if you need to specify diferent processing instructions for different types of marshalled objects it gets ugly.

      It would be extremely useful if processing instructions could specified declaritively in the binding files.

        Activity

        Hide
        Dennis Sosnoski added a comment -

        This is too specialized to support directly. If the processing instructions are intended to go inside the object representation you should be able to get much the same effect by using a custom marshaller class which just looks up the appropriate processing instruction and writes it to the output. You could then invoke this custom marshaller from each <mapping>.

        Show
        Dennis Sosnoski added a comment - This is too specialized to support directly. If the processing instructions are intended to go inside the object representation you should be able to get much the same effect by using a custom marshaller class which just looks up the appropriate processing instruction and writes it to the output. You could then invoke this custom marshaller from each <mapping>.
        Dennis Sosnoski made changes -
        Field Original Value New Value
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Dennis Sosnoski [ dsosnoski ]
        Dennis Sosnoski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Paul Runyan
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: