Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Number of attachments :
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
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 ] |
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>.