[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Question regarding namespaces
On Apr 8, 2008, at 1:57 AM, Michael Kay wrote:
I have a stylesheet which I use to normalize various versions of aa That's essentially what my "normalizer" does. The stylesheet in question is a preprocessor which restructures the older documents - adds the namespace, addresses DTD differences between versions, etc. - and makes them valid against the current DTD prior to the main processing in a different stylesheet which is linked to the normalizer via JAXP. The template that processes older document roots directs processing of the older child nodes by using templates with modes, while newer documents are passed through essentially unchanged. I did it this way so that I could run the normalizer against any document regardless of its age, since determining the vintage up front requires opening the document in some mode (unparsed text or XML) anyway. Cheers Chris
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|