|
Here's what I did to fix it.. XsltComponent: private boolean copyProperties; public boolean isCopyProperties() { return copyProperties; } public void setCopyProperties(boolean
copyProperties) { this.copyProperties =
copyProperties; } protected boolean
transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage
out) throws MessagingException { try { Transformer transformer =
createTransformer(exchange, in); ... out.setContent(new
StringSource(xml)); if (copyProperties) { for (Iterator iter =
in.getPropertyNames().iterator(); iter.hasNext();) { String name = (String)
iter.next(); Object value =
in.getProperty(name); out.setProperty(name,
value); } } ... } From: Schweter, Ryan When one transforms an xml message, the
inbound properties are not copied over to the outbound message. If
it’s the intent to not do so by default, I think there should be an
option to allow for it. Thoughts? _____________________________________________________ |
- [servicemix-user] XSLT Transforms "Strip" Propert... Schweter, Ryan
- RE: [servicemix-user] XSLT Transforms "Strip"... Schweter, Ryan
- Re: [servicemix-user] XSLT Transforms "Strip&... James Strachan
