cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Park, Paul" <PP...@eBuilt.com>
Subject RE: question regarding namespaces and xsp
Date Mon, 05 Feb 2001 22:09:21 GMT
instead of looking for a specific namespace prefix, couldn't you match
against the uri?

match="xsp:page/*[namespace-uri(.)!='http://apache.org/xsp']">

This assumes that in your esql logicsheet, you have defined the namespace
for xsp using the 'xsp' prefix.  However, as you are processing other
people's xsp pages, you are not assuming that they mapped the xsp uri to
'xsp' prefix.

Paul Park

-----Original Message-----
From: Donald Ball [mailto:balld@webslingerZ.com]
Sent: Monday, February 05, 2001 1:18 PM
To: cocoon-dev@xml.apache.org
Subject: Re: question regarding namespaces and xsp


On Mon, 5 Feb 2001, Berin Loritsch wrote:

> Donald Ball wrote:
> >
> > hiya. in my latest esql logicsheet, i've got a match like this:
> >
> > <xsl:template match="xsp:page/*[not(starts-with(name(.),'xsp:'))]">
> >
> > is this correct though? i'm imagining that someone writes a silly but
> > valid xsp page:
> >
> > <myxsp:page
> >   xmlns:myxsp="http://www.apache.org/1999/XSP/Core"
> >   xmlns:esql="http://apache.org/cocoon/SQL/v2"
> >   language="java"
> > >
> >
> > <myxsp:structure>
> >   <myxsp:include>com.example.Foo</myxsp:include>
> > </myxsp:structure>
> >
> > <page/>
> >
> > </myxsp:page>
>
> At this point, the only prefix that will work for XSP is xsp:

well, that sucks, we should fix that. but based on your knowledge of XSLT,
is my match value valid?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message