Subject: Re: [xsl] Need help with XSLT: adding new node btw existing elements From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 17 Aug 2006 17:02:31 -0400 |
On 8/17/06, Nishi Bhonsle <nishiandprafull@xxxxxxxxx> wrote:On 8/17/06, Florent Georges <darkman_spam@xxxxxxxx> wrote: > Nishi Bhonsle wrote: > > > So, is there no way using xslt to avoid the addition of xmlns=" " ? > > Apparently I cant use anything external like perl to remove this > > string later from the output xml file. > > You didn't answer the only interesting question here: what do you > want to achive? Do you want the elements where xmlns="" appears to be > in the null namespace? Or in a specific namespace?Can you tell me how to generate the elements in no namespace ie, I donot want xmlns="" to appear in the element definition in the output xml file.
If you already have a default namespace and you generate elements in no namespace then you are obliged to have xmlns="" in the document or your unprefixed elements will continue to be in the default namespace.
If you do not have a default namespace and you generate elements in no namespace then XSLT will not include xmlns="" in the document.
-- UBL/XML/XSLT/XSL-FO training: Verx, Denmark 06-09-25/10-06 World-wide corporate, govt. & user group UBL, XSL, & XML training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Need help with XSLT: addi, Nishi Bhonsle | Thread | Re: [xsl] Need help with XSLT: addi, Florent Georges |
Re: [xsl] Need help with XSLT: addi, Nishi Bhonsle | Date | RE: [xsl] How do I build a nodeset , Zaleski, Matthew \(M |
Month |