cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: [Q] Returning XSP errors on incorrect use of a logicsheet...
Date Sat, 20 Jul 2002 03:09:47 GMT
> From: Per Kreipke [mailto:per@onclave.com]
> 
> > If I introduce a logicsheet that has an internal ordering of tags
> > (e.g. some
> > may not be used outside another), how can I cause the XSLT processor
to
> > raise an error during recompilation instead of at run time?
> >
> > Example:
> >
> > <foo:build>
> >    <foo:add />
> >    <foo:add />
> >    <foo:finalize />
> > </foo:build>
> >
> > Let's say that <foo:finalize> may only be 1) inside <foo:build> and
2) in
> > the last position with _no_ following-sibling:: elements.
> >
> > That's easy enough to verify using XPath node tests but I don't
> > know how to make the compilation fail.

>From xsp.xsl:

    <xsl:message terminate="yes"><xsl:value-of
select="$message"/></xsl:message>


Vadim

> >
> > I can raise a runtime exception but blech.
> 
> Let me be more specific about that: the problem hthere is that if
anyone
> surrounds the offending block with a try-catch handler, it's
foobar'ed, the
> broken tags 'work'.
> 
> Per


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


Mime
View raw message