You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Andrew Welch <AW...@piper-group.com> on 2003/04/30 13:01:50 UTC
use custom content handler for transform
Hi,
Apologies once again if this is a faq, I've been searching for ages now and simply can't work this out in my head.
All I want to do is add an attribute to every element on its way into a transform. I have a class called AddElementIdToXML() that extends DefaultHandler() which adds the attribute, and I have a transfomer which passes several parameters into the transform but I cant figure out how to set the ContentHandler of the tranform to my custom one...
All elightenment welcomed.
cheers
andrew
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.470 / Virus Database: 268 - Release Date: 08/04/2003