Re: [MarkLogic Dev General] Schema Validation problem

2013-10-10 Thread George Cristian Bina
Hi Andres,

Just a clarification related to oXygen and XML Schema version. We 
support both XML Schema 1.0 and 1.1 and you can control what version is 
used from:
Options-Preferences -- XML / XML Parser / XML Schema
by setting the Default XML Schema version property to 1.0 or 1.1.

Best Regards,
George
--
George Cristian Bina
oXygen/ XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 10/4/13 11:05 PM, Andres Felipe Restrepo Pino wrote:
 Good day,

 I'm trying to validate an XML file using an XSD made in Oxygen Editor
 version 14, At the editor the xsd seems to work according to the
 requirement, but when I use the validate strict{$node} sentence, this
 is what i got:

 1. I validate the schema against to a valid XML, everything its ok in
 both cases, Oxygen and Marklogic.
 2. If I validate against to an invalid XML file using the oxygen editor
 the error is showed in the console, but doing the same validation in the
 marklogic console the XML seems to be valid.
 3. I try again but this time I modify the XML in the initial node (which
 is restricted in the xsd) the results seems to be invaled in both consoles.

 My xsd file is created with groups, complexTypes, sequences and choices
 elements.

 According to this, the problem seems to be with the XSD proccessor,
 searching on internet i found that Marklogic only have support for
 schema 1.0 and Oxygen is working with Schema 1.1, I'm not sure if the
 problem is because of the schema version.

 So, Does Marklogic have problems with this kind of xsd files?, how can I
 create or is there a Editor to create xsd that Marklogic can manage?

 Thanks for the attention,

 I attached the xsd and xml files.


 ___
 General mailing list
 General@developer.marklogic.com
 http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Schema Validation problem

2013-10-04 Thread Andres Felipe Restrepo Pino
Good day,

I'm trying to validate an XML file using an XSD made in Oxygen Editor
version 14, At the editor the xsd seems to work according to the
requirement, but when I use the validate strict{$node} sentence, this is
what i got:

1. I validate the schema against to a valid XML, everything its ok in both
cases, Oxygen and Marklogic.
2. If I validate against to an invalid XML file using the oxygen editor the
error is showed in the console, but doing the same validation in the
marklogic console the XML seems to be valid.
3. I try again but this time I modify the XML in the initial node (which is
restricted in the xsd) the results seems to be invaled in both consoles.

My xsd file is created with groups, complexTypes, sequences and choices
elements.

According to this, the problem seems to be with the XSD proccessor,
searching on internet i found that Marklogic only have support for schema
1.0 and Oxygen is working with Schema 1.1, I'm not sure if the problem is
because of the schema version.

So, Does Marklogic have problems with this kind of xsd files?, how can I
create or is there a Editor to create xsd that Marklogic can manage?

Thanks for the attention,

I attached the xsd and xml files.
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Schema Validation problem

2013-10-04 Thread Danny Sokolsky
Hi Andres,

I don't see any schema or xml files attached, so it is hard to comment on it.

Also, what version of MarkLogic are you using (xdmp:version() )?

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Andres Felipe 
Restrepo Pino
Sent: Friday, October 04, 2013 1:06 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Schema Validation problem

Good day,

I'm trying to validate an XML file using an XSD made in Oxygen Editor version 
14, At the editor the xsd seems to work according to the requirement, but when 
I use the validate strict{$node} sentence, this is what i got:

1. I validate the schema against to a valid XML, everything its ok in both 
cases, Oxygen and Marklogic.
2. If I validate against to an invalid XML file using the oxygen editor the 
error is showed in the console, but doing the same validation in the marklogic 
console the XML seems to be valid.
3. I try again but this time I modify the XML in the initial node (which is 
restricted in the xsd) the results seems to be invaled in both consoles.

My xsd file is created with groups, complexTypes, sequences and choices 
elements.

According to this, the problem seems to be with the XSD proccessor, searching 
on internet i found that Marklogic only have support for schema 1.0 and Oxygen 
is working with Schema 1.1, I'm not sure if the problem is because of the 
schema version.

So, Does Marklogic have problems with this kind of xsd files?, how can I create 
or is there a Editor to create xsd that Marklogic can manage?

Thanks for the attention,

I attached the xsd and xml files.
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Schema Validation problem

2013-10-04 Thread Mary Holstege
=0
 maxOccurs=unbounded/

   xs:element name=Shortened_Version type=text_elements
 minOccurs=0 maxOccurs=unbounded

   /

 /xs:choice

   /xs:group

   !--**--

   xs:group name=text_elements

 xs:choice

   xs:element name=i type=xs:string minOccurs=0
 maxOccurs=unbounded/

   xs:element name=br type=xs:string minOccurs=0
 maxOccurs=unbounded/

   xs:element name=p type=xs:string minOccurs=0
 maxOccurs=unbounded/

   xs:element name=u type=xs:string minOccurs=0
 maxOccurs=unbounded/

   xs:element name=b type=xs:string minOccurs=0
 maxOccurs=unbounded/

   xs:element name=ul type=xs:string minOccurs=0
 maxOccurs=unbounded/

   xs:element name=li type=xs:string minOccurs=0
 maxOccurs=unbounded/

 /xs:choice

   /xs:group

   !--end groups--

 /xs:schema



 Here is TLele.xsd:

 ?xml version=1.0 encoding=UTF-8?

 xs:schema attributeFormDefault=unqualified
 elementFormDefault=unqualified xmlns:xs=
 http://www.w3.org/2001/XMLSchema;

   xs:include schemaLocation=childs_declaration.xsd/

   !--elements--

   xs:element name=TLela

 xs:complexType

   xs:choice minOccurs=0 maxOccurs=unbounded

 xs:element ref=TermInfo/

 xs:element ref=TermList/

   /xs:choice

 /xs:complexType

   /xs:element

 /xs:schema



 And here is TLela.xml:



 ?xml version=1.0 encoding=UTF-8?

 TLela

 TermInfo

 TEnglish Language Arts/T

 StatusAccepted/Status

 QCY/QC

 NN1/NN

 IDela-737/ID

 TermList

 TermInfo


 TAlphabet/T


 RTAlphabetical order/RT


 StatusAccepted/Status

 QCY/QC


 NN1.2.1/NN


 IDela-426/ID

 TermList


 TermInfo


 TConsonants/T


 StatusAccepted/Status


 QCY/QC


 NN1.2.1.1/NN


 IDela-655/ID


 /TermInfo


 TermInfo


 TLetters/T


 StatusAccepted/Status


 QCY/QC


 NN1.2.1.2/NN


 IDela-4121/ID


 /TermInfo


 TermInfo


 TVowels/T


 StatusAccepted/Status


 QCY/QC


 NN1.2.1.3/NN


 IDela-4834/ID


 /TermInfo

 /TermList

 /TermInfo

 /TermList

 /TermInfo

 /TLela



 -Danny







 *From:* general-boun...@developer.marklogic.com [mailto:
 general-boun...@developer.marklogic.com] *On Behalf Of *Danny Sokolsky
 *Sent:* Friday, October 04, 2013 1:48 PM
 *To:* MarkLogic Developer Discussion
 *Subject:* Re: [MarkLogic Dev General] Schema Validation problem



 Hi Andres,



 I don’t see any schema or xml files attached, so it is hard to comment  
 on
 it.



 Also, what version of MarkLogic are you using (xdmp:version() )?



 -Danny



 *From:* general-boun...@developer.marklogic.com [mailto:
 general-boun...@developer.marklogic.com] *On Behalf Of *Andres Felipe
 Restrepo Pino
 *Sent:* Friday, October 04, 2013 1:06 PM
 *To:* general@developer.marklogic.com
 *Subject:* [MarkLogic Dev General] Schema Validation problem



 Good day,



 I'm trying to validate an XML file using an XSD made in Oxygen Editor
 version 14, At the editor the xsd seems to work according to the
 requirement, but when I use the validate strict{$node} sentence, this  
 is
 what i got:



 1. I validate the schema against to a valid XML, everything its ok in  
 both
 cases, Oxygen and Marklogic.

 2. If I validate against to an invalid XML file using the oxygen editor
 the error is showed in the console, but doing the same validation in the
 marklogic console the XML seems to be valid.

 3. I try again but this time I modify the XML in the initial node (which
 is restricted in the xsd) the results seems to be invaled in both  
 consoles.



 My xsd file is created with groups, complexTypes, sequences and choices
 elements.



 According to this, the problem seems to be with the XSD proccessor,
 searching on internet i found that Marklogic only have support for  
 schema
 1.0 and Oxygen is working with Schema 1.1, I'm not sure if the problem  
 is
 because of the schema version.



 So, Does Marklogic have problems with this kind of xsd files?, how can I
 create or is there a Editor to create xsd that Marklogic can manage?



 Thanks for the attention,



 I attached the xsd and xml files.

 ___
 General mailing list
 General@developer.marklogic.com
 http://developer.marklogic.com/mailman/listinfo/general




-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Schema Validation problem

2013-10-04 Thread Shunichi KIMURO
やさは

—
Sent from Mailbox for iPhone

On Sat, Oct 5, 2013 at 5:06 AM, Andres Felipe Restrepo Pino
andresfelipe.restr...@yuxipacific.com wrote:

 Good day,
 I'm trying to validate an XML file using an XSD made in Oxygen Editor
 version 14, At the editor the xsd seems to work according to the
 requirement, but when I use the validate strict{$node} sentence, this is
 what i got:
 1. I validate the schema against to a valid XML, everything its ok in both
 cases, Oxygen and Marklogic.
 2. If I validate against to an invalid XML file using the oxygen editor the
 error is showed in the console, but doing the same validation in the
 marklogic console the XML seems to be valid.
 3. I try again but this time I modify the XML in the initial node (which is
 restricted in the xsd) the results seems to be invaled in both consoles.
 My xsd file is created with groups, complexTypes, sequences and choices
 elements.
 According to this, the problem seems to be with the XSD proccessor,
 searching on internet i found that Marklogic only have support for schema
 1.0 and Oxygen is working with Schema 1.1, I'm not sure if the problem is
 because of the schema version.
 So, Does Marklogic have problems with this kind of xsd files?, how can I
 create or is there a Editor to create xsd that Marklogic can manage?
 Thanks for the attention,
 I attached the xsd and xml files.___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general