RE: [xsl] adding a namespace to a stylesheet automatically

Subject: RE: [xsl] adding a namespace to a stylesheet automatically
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Thu, 30 Oct 2003 12:47:48 -0600
> > 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


Current Thread