cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Muench" <smue...@us.oracle.com>
Subject Re: Different Processors
Date Wed, 15 Dec 1999 20:28:53 GMT
You should be able to search for
all elements whose:

  namespace-uri()='your-uri'

to get what you want, without regard
for what prefix the user has chosen.
As an XPath, this would be:

  //*[namespace-uri()='urn:donald-ball']

_________________________________________________________
Steve Muench, Consulting Product Manager & XML Evangelist
Business Components for Java Development Team
http://technet.oracle.com/tech/java
http://technet.oracle.com/tech/xml
----- Original Message -----
From: "Donald Ball" <balld@webslingerZ.com>
To: <cocoon-dev@xml.apache.org>
Sent: Wednesday, December 15, 1999 8:19 PM
Subject: Re: Different Processors


| On Wed, 15 Dec 1999, Steve Muench wrote:
|
| > The thing that would matter would be
| > the namespace *URI* you pick, not the
| > namespace prefix. Similar to the "xsl"
| > namespace prefix, the three letters
| > "xsl" are the conventional prefix but
| > it will work just fine if you do:
| >
| >   <html xmlns:foobar="http://www.w3.org/1999/XSL/Transform">
| >     <foobar:for-each select="ROWSET/ROW">
| >       :
| >     </foobar:for-each>
| >   </html>
| >
| > if someone's already using "sql" as a prefix
| > they can just use any other convenient prefix
| > as long as they get your namespace URI right...
|
| Sure, I get that, I was just trying to figure out how SQLProcessor is
| going to figure out which namespace it's going to be using. I guess it can
| look for the xmlns:foo pseudoattribute of the top-level document tag and
| see which value matches itself. That would be nice to build into
| an AbstractProcessor class to make sure everyone does this properly.
|
| - donald
|
|


Mime
View raw message