> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] > ----- Original Message ----- > From: "Torsten Curdt" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; "Ivelin Ivanov" > <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]