Retaining Document URI after transformation
I have some code that uses XSLT under the covers to transform EE deployment descriptors from DTD based documents to their Schema-based counterparts.
This works 99% of the time until I hit an issue where we need to build a URL relative to the location of the source document. Before the transform, we have a valid Document URI, but after the transform that information is lost.
I'm wondering if there is a directive I can embed within the stylesheet itself to cause this information to be propagated to the transform result?
My current workaround is to manually copy the URI from the source to the result. Is there a better way?