[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: unwanted xmlns and shape attributes

Subject: Re: unwanted xmlns and shape attributes
From: Manfred Staudinger <manfred.staudinger@xxxxxxxxx>
Date: Fri, 9 Sep 2005 16:36:25 +0200
remove unwanted xmlns
Hi David,

> > a. The inserted anchor shows xmlns="" as an attribute,
> >    but how do I to get rid of it?
>you can put the namespace declaration on the literal result
> element <a> in the stylesheet.
Yes, thats what I wanted, problem solved, thanks.

> > b. The second anchor shows a shape="rect" attribute,
> >    which is not in the source and again the question
> >    is how do I to get rid of it?
>
> It is in the source tree as seen by xslt: it is defaulted by the dtd so
> added by the xml parser while building the input tree before xslt starts.
>
> You either need to stop the dtd being read by either removing teh
> <!DOCTYPE or using an entity resolver that ignores it, or change your
> styleshet not to copy but instead traverse down the tree and omit this
> attribute. Note that if you remove the dtd you may need to explictly add
> an xmlns="http://www.w3.org/1999/xhtml" to your source (as it is
> defaulted by the dtd, and otherwise teh elements will be in no-namespace
> if you remove the dtd)
I suspected the doc() or copy-of, but didn't
think on the dtd. I'll have to think about and to check whether this
"shape" does create any problems with browsers.

Thanks again for your answers, Manfred
I have to think about that.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.