[Schematron] Schematron validation using several xml files

Luis Costa luis.costa at alert.pt
Fri Dec 19 06:40:48 EST 2008


Hi all,

I've a XML 1) and I need to test for instance if all ContentInfo/@type are contained in XML 2) ContentInfo/@type

And if so all 

ContentInfo/@type="music" have also composer="J.S. Bach"

ContentInfo/@type=" movie" have also composer=" Stanley Kubrick "

...

 

Can anyone help me giving me a clue of what kind rules do I heve to implement to validate data contained in different xml files?

Or giving me a link or examples of similar rules implementations.

 

 

 

XML 1)

<MediaDB>

  <DVD label="DVD One">

      <ContentInfo type="music" composer="J.S. Bach"/>

  </DVD>  

  <DVD label="DVD Two">

      <ContentInfo type="movie director="Stanley Kubrick"/>

  </DVD>

</MediaDB>

 

 

 

XML 2)

<rules>

   <ContentInfo type="music" composer="J.S. Bach"/>

   <ContentInfo type="movie" director="Stanley Kubrick"/>

</rules>

 

 

 

 

 

Thank you for your attention and best regards,

 

Luís Costa

Software Developer

 

luis.costa at alert.pt <mailto:luis.costa at alert.pt> 

 

www.alert-online.pt <http://www.alert-online.pt/> 

 

 

ALERT Life Sciences Computing, S.A.

Edifício Lake Towers - pisos 7, 8 e 9

Rua Daciano Baptista Marques, n.º 245

4400-617 Vila Nova de Gaia

Portugal

Tel.: +351 22 832 89 80

Fax.: +351 22 832 89 82

info at alert.pt <mailto:info at alert.pt> 

 

This e-mail is privileged, confidential and contains private information. Any reading, retention, distribution or copying of this communication by any person other than its intended recipient is prohibited.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eccnet.com/pipermail/schematron/attachments/20081219/a3dd4412/attachment.html 


More information about the Schematron mailing list