Re: Schematron within Cocoon

2003-06-17 Thread Joerg Heinicke
Hello Robert, there exists a bug with patch: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19104 Joerg Jeroen Cranendonk wrote: (sorry, posted last mail with wrong subject :) Hi, I have a question about the usage of schematron languages within Cocoon/XMLForms. I have an AddresBean which

Schematron within Cocoon

2003-06-17 Thread Jeroen Cranendonk
(sorry, posted last mail with wrong subject :) Hi, I have a question about the usage of schematron languages within Cocoon/XMLForms. I have an AddresBean which I use as the XMLForm model. It containts 2 variables: - street (also getter and setter) - housenumber (also getter and setter) I want

RE: XMLForm Schematron question

2003-03-27 Thread Delis, Christopher E.
icke '; '[EMAIL PROTECTED] ' Sent: 3/27/03 4:50 AM Subject: RE: XMLForm Schematron question thanks for inspiring me to continue... following-sibling and preceding-sibling didn't work but the following did: Passwords do not match! i thought they were siblings, but... -Original

RE: XMLForm Schematron question

2003-03-27 Thread Delis, Christopher E.
LForm Schematron question Siblings? Try the following: > > > Passwords do not match. > > If you know password2 is always after password, you can remove preceding-sibling::password2. It's only a further suggestion from the XML point of view ;-) Joerg De

Re: XMLForm Schematron question

2003-03-27 Thread Joerg Heinicke
lation has an attribute of ref='' instead of ref='/password'. cheers, chris -Original Message- From: Ugo Cei To: [EMAIL PROTECTED] Sent: 3/27/03 1:51 AM Subject: Re: XMLForm Schematron question Delis, Christopher E. wrote: i take it back! it still doesn't work =-( i

RE: XMLForm Schematron question

2003-03-27 Thread Delis, Christopher E.
lation has an attribute of ref='' instead of ref='/password'. cheers, chris -Original Message- From: Ugo Cei To: [EMAIL PROTECTED] Sent: 3/27/03 1:51 AM Subject: Re: XMLForm Schematron question Delis, Christopher E. wrote: > i take it back! it still doesn't w

Re: XMLForm Schematron question

2003-03-26 Thread Ugo Cei
Delis, Christopher E. wrote: i take it back! it still doesn't work =-( i keep getting "Passwords do not match!" errors... I'm currently using the following: Passwords do not match. -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia

Re: XMLForm Schematron question

2003-03-26 Thread Joerg Heinicke
pshot (xml-cocoon-2.1-20030210233231.tar.gz). TIA, chris -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Hello Christopher, I mentioned it already before: I guess the error are "/password" and "/password2" as the values of the context attribu

RE: XMLForm Schematron question

2003-03-26 Thread Delis, Christopher E.
cke [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 1:51 PM > To: [EMAIL PROTECTED] > Subject: Re: XMLForm Schematron question > > > Hello Christopher, > > I mentioned it already before: I guess the error are "/password" and > "/password2"

Re: XMLForm Schematron question

2003-03-26 Thread Joerg Heinicke
Hello Christopher, I mentioned it already before: I guess the error are "/password" and "/password2" as the values of the context attributes of the rule element. I have never been using Schematron in Cocoon, but as I used it offline a stylesheet was created from this schema

RE: XMLForm Schematron question

2003-03-26 Thread Delis, Christopher E.
i take it back! it still doesn't work =-( i keep getting "Passwords do not match!" errors... > -Original Message- > From: Delis, Christopher E. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 11:20 AM > To: '[EMAIL PROTECTED]' >

RE: XMLForm Schematron question

2003-03-26 Thread Delis, Christopher E.
sheesh! turned out to be a stupid error on my part (i should've posted the whole xml file and you probably would've found it right away). thanks for helping! here's what works: http://xml.apache.cocoon/xmlform"; xmlns="http://www.ascc.net/xml/schematron&

Re: XMLForm Schematron question

2003-03-26 Thread Joerg Heinicke
Hi Delis, for an XML like mypassword mypassword I would use the following schematron: must be > 5 must be < 60 password != password2 I didn't test it, but the above looks logical to me ;-) Everything is pure XSLT. But what you tried (../password2), should work also (if

RE: XMLForm Schematron question

2003-03-26 Thread Delis, Christopher E.
7;t seem to work.] > -Original Message- > From: Rob Johnston [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 10:35 AM > To: [EMAIL PROTECTED] > Subject: Re: XMLForm Schematron question > > > On Wed, 26 Mar 2003, Joerg Heinicke wrote: > > > Hello

Re: XMLForm Schematron question

2003-03-26 Thread Rob Johnston
iour simply processor dependent or specified > anywhere?) If you change the test to "number() = number()" you are on the > safe side, because "NaN = NaN" returns always false. > > Regards, > > Joerg > > Rob Johnston wrote: > >Hello -- I have a quick S

Re: XMLForm Schematron question

2003-03-26 Thread Joerg Heinicke
lo -- I have a quick Schematron/XMLForm question. Let's say I have the following XPath: /data/selectedwhich can be either "text" or "number" /data/number a valid number I want to write a validation pattern that will assert iff /data/selected is 'number' and /d

XMLForm Schematron question

2003-03-26 Thread Rob Johnston
Hello -- I have a quick Schematron/XMLForm question. Let's say I have the following XPath: /data/selectedwhich can be either "text" or "number" /data/number a valid number I want to write a validation pattern that will assert iff /data/selected is 'numb

Re: Schematron transform in a Cocoon pipeline

2003-01-22 Thread jtacaoio
are some verifications which can't be done with the schema, so for them I use the Schematron which is embedded in the W3C Schema. Now, as Jeff Turner suggested in http://marc.theaimsgroup.com/?

Re: Schematron transform in a Cocoon pipeline

2003-01-22 Thread Jeremy Quinn
On Tuesday, Jan 21, 2003, at 20:58 Europe/London, John R. Callahan wrote: This seems too simple, but I wanted to see if I could use Schematron generated XSLT to validate some XML in a Cocoon pipeline. This might be used for validating uploaded XML files for example. You might find the

Re: Schematron transform in a Cocoon pipeline

2003-01-22 Thread Oskar Casquero
, for them, there is a second validation step, in which I use the Schematron which is embedded in the W3C Schema. Now, as Jeff Turner suggested (http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=1043065120

Re: Schematron transform in a Cocoon pipeline

2003-01-22 Thread jcallahan
Oskar, Excellent suggestion. The XPATH of the error would be very useful for debugging. What applications of Schematron have you done within Cocoon? So far, I'm using it to validate uploaded documents. -- jack > > Hi Jack, > > I have done the same to validate an XML

Re: Schematron transform in a Cocoon pipeline

2003-01-21 Thread Oskar Casquero
Hi Jack, I have done the same to validate an XML document with an schematron. I think that it would be also useful to get the XPATH path of the errors in the XML output. The template which does this is done in skeleton1-5 (); so you have to call it from the assert template: Markup

Schematron transform in a Cocoon pipeline

2003-01-21 Thread John R. Callahan
This seems too simple, but I wanted to see if I could use Schematron generated XSLT to validate some XML in a Cocoon pipeline. This might be used for validating uploaded XML files for example. I downloaded the latest Schematron skeleton (1.5), then generated some XSLT from a set of assertions

Re: schematron

2002-12-17 Thread Ivelin Ivanov
Joerg's response is correct, although a technical detail is that Schematron is based on XPath, not XSTL (which uses XPath itself). - Original Message - From: "Joerg Heinicke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 1:27

Re: schematron

2002-12-17 Thread Joerg Heinicke
jtbamcai wrote: > Hi! > how can I validate a date like this "-mm-dd" with schematron? > thanks in advance. > iker. Hello, Schematron is XSLT, so you can use normal expressions. Example: But XSLT has no date-specific functionality, it knows nothing about dates.

schematron

2002-12-17 Thread jtbamcai
Hi! how can I validate a date like this "-mm-dd" with schematron? thanks in advance. iker. - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.o

Re: internalisation with schematron (XML-Form)

2002-10-31 Thread Ivelin Ivanov
Thank you Dianna for handling the patch. - Original Message - From: "Ivelin Ivanov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 11:25 PM Subject: Re: internalisation with schematron (XML-Form) Many thanks ! I will review and appl

Re: internalisation with schematron (XML-Form)

2002-10-28 Thread Ivelin Ivanov
tober 28, 2002 7:35 PM Subject: Re: internalisation with schematron (XML-Form) Hallo Ivelin, I already wrote a How To Document for this and uploaded it using Bugzilla . I hope it will be clear and easy to follow. and its Bug#14015. Thanx in advance Mohamed El-Refaey Ivelin Ivanov wrote:

Re: internalisation with schematron (XML-Form)

2002-10-28 Thread Mohamed El-Refaey
bugzilla. The question about i18n with XMLForm is popping constantly. Ivelin - Original Message - From: "Mohamed El-Refaey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 27, 2002 4:08 PM Subject: Re: internalisation with schematron (XML-Form) Hi

Re: internalisation with schematron (XML-Form)

2002-10-27 Thread Ivelin Ivanov
tober 27, 2002 4:08 PM Subject: Re: internalisation with schematron (XML-Form) Hi Michael , I faced the same problem and here is what I did when I read the mailing list regarding the i18n with Schematron validation error : 1- the XMLForm file is : Password

Re: internalisation with schematron (XML-Form)

2002-10-27 Thread Mohamed El-Refaey
Hi Michael , I faced the same problem and here is what I did when I read the mailing list regarding the i18n with Schematron validation error : 1- the XMLForm file is : Password 2- the Schematron file : The Password Should be @ least 8 character

internalisation with schematron (XML-Form)

2002-10-24 Thread Michael Bald
Title: internalisation with schematron (XML-Form) Hi! I have a problem to translate the error-massages of the schematrons. I hope someone can give me a hint to solve my problem. I want to translate the Error Message of my pattern in the Schematron file. But I donĀ“t know exactly how. I tried

[SUMMARY] Re: Schematron question

2002-09-24 Thread Ivelin Ivanov
Glad it worked for you. - Original Message - From: "Mohamed El-Refaey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 2:10 PM Subject: Re: Schematron question > Hallo Ivelin , > Thank u very much The

Re: Schematron question

2002-09-24 Thread Mohamed El-Refaey
me as before. > > > > > >- Original Message - >From: "Mohamed El-Refaey" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, September 23, 2002 6:42 PM >Subject: Schematron question > > > > >>Hi a

Re: Schematron question

2002-09-23 Thread Ivelin Ivanov
least 8 character. The Password Should be the same as before. - Original Message - From: "Mohamed El-Refaey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 6:42 PM Subject:

Schematron question

2002-09-23 Thread Mohamed El-Refaey
Hi all I have a question related to Schematron validation : How I can validate a 2 Text box in XMLForm values that they are identical for example (a password should be entered twice by the user and it must be identical in both field) I tried to write the Rule in the schematron validation file

Re: Schematron Validation 2

2002-07-24 Thread Ivelin Ivanov
Your assert can be test="string-length(input) = 0 or (more rules)" - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 2:33 AM Subject: Schematron Validation 2 > Another question: > >I also

Re: Schematron validation

2002-07-24 Thread Ivelin Ivanov
You should be able to do what you describe. Sounds like a bug in the SchamatronValidator implementation, not in Schematron itself. Willing to hunt it down? Ivelin - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 1:5

Schematron Validation 2

2002-07-24 Thread michael_hampel
Another question: I also have non mandatory fields - but if the user gives an input I want to validate the input. So, is there a way in Schematron to say if(input is not empty) assert Can I do something like nested asserts? Thanx again for any help

Schematron validation

2002-07-23 Thread michael_hampel
Hello, please advise if the I can do the following with Schematron: I want to use Schematron validation with my XML-Forms. eg.: The user has to input a Login Name. For this field I have several error messages: LoginName must not be null, Login Name has to have

Re: Schematron

2002-07-17 Thread Ivelin Ivanov
Schematron's rules are XPath expressions. XPath 1.0 does not support regex, but the upcoming v2.0 will. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 11:44 AM Subject: Schematron > Hello, > >is

Re: Using Schematron for XML request validation

2002-07-17 Thread Ivelin Ivanov
XMLForm will populate JavaBeans, DOM nodes or mixed. Schematron is simple to use and powerful in what it does. I wouldn't put extra burden on it. My suggestions is to either use plain Java code to populate your fields or write a specialized transformer. Ivelin - Original Me

Re: Schematron

2002-07-16 Thread Alexander Smirnoff
I'm not a big pro in Schematron. It uses mainly XPath for referencing nodes, in Cocoon scratchpad it implemented with JXPath, where you could use extension mechanics to add your own functions to XPath. I did not do that but if you really want to have regexps in XPath, I think this i

Schematron

2002-07-16 Thread michael_hampel
Hello, is there a way to use regular expressions with Schematron? (like with an descriptor xml match-regex) thanks for any help, miHam - Please check that your question has not already been answered in the FAQ

Using Schematron for XML request validation

2002-07-16 Thread Alexander Smirnoff
o use schema for populating some report object in the case the validation succeeds. Probably it should be a different procedure, but does it looks more natural to have it there? http://www.ascc.net/xml/schematron"; > Test No username and passwor