xsl-list
[Top] [All Lists]

RE: adding a namespace to a stylesheet automatically

2003-10-30 11:47:48
What I'm looking for is a way to avoid the tedious and error-prone
work of going through
the stylesheet and inserting a namespace prefix

One way that is simple (so perhaps less error prone) if not
particularly efficient is do a first pass on your input with a
stylesheet that just renames every element in your new target 
namespace
to the same local name in no-namespace, then run your 
unchanged original
stylesheet.

David

I hadn't thought of that. It would certainly do the job...

However it would somewhat defeat my purpose for adding a namespace
to the XML document in the first place, i.e. to ensure a clean
distinction between different categories of data (corresponding to
different namespaces).

Lars


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list