cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject RE: Dynamic Schematron validation works!
Date Mon, 18 Mar 2002 10:24:27 GMT
> From: Ivelin Ivanov [mailto:ivelin@iname.com] 
> ----- Original Message -----
> From: "Torsten Curdt" <tcurdt@dff.st>
> To: <cocoon-dev@xml.apache.org>; "Ivelin Ivanov" 
> <ivelin@sbcglobal.net>
> Sent: Sunday, March 17, 2002 9:11 AM
> Subject: Re: Dynamic Schematron validation works!
> 
> 
> > > 2) How about a XPath selector, whose when attribute will 
> be a valid
> XPath
> > > test expression executed against the SAX stream?
> > > then you can possible do something like:
> > >
> > > <transformer src="validating-schematron-report.xsl">
> > > <selector type="xpath">
> > >   <selector when="/validatingResult/pattern">
> > >     ... go back to the same page
> > >   <selector otherwise>
> > >     ... move on with life
> > >
> > >
> > > So which one of the two (if any) is better ?
> >
> > AFAIK this is not possible without creating a DOM.... we have had a
> > discussion on this topic lately...
> 
> What if we implement only the subset of XPath which satisfies 
> 90% of the
> needs and can work with a SAX stream.
> Many times the test would be like:
> 1) Does element A exist, or
> 2) Does element A have value b, or
> 3) Does element A appear n times, or
> 4) similar tests against attributes

5) Combinations of all the above methods, e.g.: does element A exits, then
check if element B has value b.

Regards,
	Konstantin

> 
> All of the above can work with SAX stream without the need to 
> remember the
> whole document.

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

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


Mime
View raw message