Not sure if someone replied to this or not.
What JSTL library are you using? The XTags library, I think, does not have this type of functionality. There is are some libraries out there, outside of Sun, like XJTL that lets you output a parsed XML file. But I don't believe that the JSTL tags from sun let you.