cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <j...@socialchange.net.au>
Subject Re: Schema-validated XSP? (was: Re: C1 <xsp:element> useless?)
Date Wed, 21 Mar 2001 02:17:22 GMT
On Tue, Mar 20, 2001 at 07:56:42PM -0500, Matthew Cordes wrote:
> Hi all, 
> 
> Is this already implemented?  If I simply designate a validating 
> parser in cocoon.properties wouldn't/couldn't it do something like this?

What would it validate against? I don't think there's an XML Schema for XSP
(there's a DTD though). The only taglib I know of with an XML Schema is esql.
AFAIK, there's no standard way of associating an XML doc with it's schema. RDDL
looks like the current best bet.

--Jeff

> Either way, I completely agree with your idea.  It would make debugging 
> a bit easier. I'd just want to be able to turn it off after development
> is done, i'm sure the performance hit is quite big.
> 
> -matt
> 
> On Wed, Mar 21, 2001 at 11:49:09AM +1100, Jeff Turner wrote:
> > On Wed, Mar 21, 2001 at 10:32:39AM +1100, peter@clickdocs.com.au wrote:
> > > G'day
> > > 
> > > I'm using <xsp:element> for building URLs, which can be tricky with multiple
> > > parameters.
> > 
> > Ahh.. the number of times I've inadvertently mixed up <xsp:element> and
> > <xsl:element> like this... ;) 
> > 
> > 
> > Raises the question: why not take advantage of the XSP's XML syntax and do
> > schema validation at each point in an XSP's transition to Java code? Eg, after
> > each taglib is applied, validation could be done against that taglib's schema.
> > 
> > This could be a *huge* advantage over non-XML languages like JSP. A schema
> > could prevent (at compile-time) all sorts of problems, enforcing the syntax
> > *and* semantics of used taglibs.
> > 
> > --Jeff
> > 
> > 
> > [snip]
> > > >
> > > > Regards,
> > > >
> > > > Peter
> > > >
> > 
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message