xsl-list
[Top] [All Lists]

Re: [xsl] Need help with XSLT: adding new node btw existing elements

2006-08-17 14:02:49
At 2006-08-17 13:56 -0700, Nishi Bhonsle wrote:
On 8/17/06, Nishi Bhonsle <nishiandprafull(_at_)gmail(_dot_)com> wrote:
On 8/17/06, Florent Georges <darkman_spam(_at_)yahoo(_dot_)fr> 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.

I hope this helps.

. . . . . . . . . Ken

--
UBL/XML/XSLT/XSL-FO training:         Vårø, Denmark 06-09-25/10-06
World-wide corporate, govt. & user group UBL, XSL, & XML training.
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>