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

Re: Extension elements and namespace prefixes

Subject: Re: Extension elements and namespace prefixes
From: Denys Duchier <Denys.Duchier@xxxxxxxxxxxx>
Date: 16 Aug 1999 09:34:21 +0200
Re: Extension elements and namespace prefixes
James Clark <jjc@xxxxxxxxxx> writes:

> Even for output handlers, there is a bit of the problem here.  An output
> handler should not be stripping of namespace prefixes; rather if it
> needs to recognize specific elements, it should be recognizing the
> expanded name (the namespace URI/local name pair) not the qualified
> name. At the moment do to this properly, it would have to process
> namespace declarations, which is not very convenient (and a waste since
> XT uses the expanded names internally, as any XSLT processor must).

It seems to me that the simplest fix would be to define
OutputDocumentHandler to support both

        startElement(String name,AttributeList atts)
and     startElement(Name   name,AttributeList atts)

the latter can always be given the default definition:

        public void startElement(Name name,AttributeList atts)
        {
          startElement(name.getPrefix()+":"+getLocalPart(),atts);
        }

or something like this.

-- 
Dr. Denys Duchier			Denys.Duchier@xxxxxxxxxxxx
Forschungsbereich Programmiersysteme	(Programming Systems Lab)
Universitaet des Saarlandes, Geb. 45	http://www.ps.uni-sb.de/~duchier
Postfach 15 11 50			Phone: +49 681 302 5618
66041 Saarbruecken, Germany		Fax:   +49 681 302 5615


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


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.