Index: JaxbRepresentation.java
===================================================================
--- JaxbRepresentation.java	(revision 2923)
+++ JaxbRepresentation.java	(revision 2925)
@@ -50,6 +50,8 @@
 import org.restlet.representation.WriterRepresentation;
 import org.xml.sax.InputSource;
 
+import com.sun.xml.bind.marshaller.NamespacePrefixMapper;
+
 /**
  * An XML representation based on JAXB that provides easy translation between
  * XML and JAXB element class trees.
@@ -125,6 +127,9 @@
 
     /** The source XML representation. */
     private volatile Representation xmlRepresentation;
+    
+    /** The source NamespacePrefixMapper. */
+    private volatile NamespacePrefixMapper namespacePrefixMapper;
 
     /**
      * Creates a JAXB representation from an existing JAXB content tree.
@@ -347,6 +352,10 @@
         return noNamespaceSchemaLocation;
     }
 
+    public NamespacePrefixMapper getNamespacePrefixMapper() {
+        return namespacePrefixMapper;
+    }
+    
     /**
      * Returns the wrapped Java object.
      * 
@@ -480,6 +489,10 @@
         this.noNamespaceSchemaLocation = noNamespaceSchemaLocation;
     }
 
+    public void setNamespacePrefixMapper( NamespacePrefixMapper namespacePrefixMapper ) {
+      this.namespacePrefixMapper = namespacePrefixMapper;
+    }
+    
     /**
      * Sets the wrapped Java object.
      * 
Index: internal/Marshaller.java
===================================================================
--- internal/Marshaller.java	(revision 2923)
+++ internal/Marshaller.java	(revision 2925)
@@ -86,6 +86,12 @@
                                     .getCharacterSet().getName());
                 }
 
+                if (getJaxbRepresentation().getNamespacePrefixMapper() != null) {
+                  m.setProperty("com.sun.xml.bind.namespacePrefixMapper",
+                          getJaxbRepresentation()
+                                  .getNamespacePrefixMapper());
+              }
+                
                 m.setProperty("jaxb.fragment", getJaxbRepresentation()
                         .isFragment());
             } catch (Exception e) {
