RE: A couple of questions about using Schematron.
"Boyle Owen" <[email protected]> Mon, 15 Dec 2003 10:06:02 +0100
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Message-ID | <FAB6A3A2CC5BDB448DADFA1C8C0752965F73CB@SOMEXEVS001.ex.ordersx.org> |
> -----Original Message----- > From: Chad Williamson [mailto:[email protected]] >=20 > Good Day All. I'm hoping this list still exists, as I=20 > noticed there is no > archive for 2003. I joined this list a few months ago and yours is about the second posting I've seen on it so it's not exactly humming... About your question 2), I always used the skeleton inside schematron-basic.xsl (it is included) rather than trying to process against it directly... Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored.=20 >=20 > I've just starting playing with Schematron, and really like=20 > it. However, I have > a few things I'm not sure how to do: >=20 > 1) I'm using Xalan for XSLT and the output looks like this: > [c-williamson@c-williamson1 Schematron]$ Xalan test3.xml chad.xsl > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > A 'dog' element should contain two 'ear' elements.This dog=20 > has a bone.A 'dog' > element should contain three elements.This dog has a bone. >=20 > -I would love to get line numbers, does only XT support this? > -Also, is there a way I can get the statements to appear one=20 > per line, like a > newline character I can use? >=20 > 2) I haven't been able to embed XML Schema into my=20 > Schematron. I have large > complicated structures and was hoping not to have to write=20 > rules saying that > element chad must have these 30 attributes in order to validate it. > [c-williamson@c-williamson1 Schematron]$ Xalan -o chad1.xsl chad1.sch > skeleton1-5.xsl > XSLT message: Warning: unrecognized element xsd:schema,=20 > source tree node: > xsd:schema=20 (file:///home/c-williamson/xml_parser/Schematron/skeleton1-5.xsl, line 486, column 16) -Do I need to use something different than the skeleton1-5.xsl? -Does someone have an example of how to set up the namespaces properly for this? I've tried a few different ways with no success. 3) I've looked through the archive and was a little confused on how I can display in my report the full path to the element or attribute. i.e. Instead of This dog has a bone, it would say: AAA.BBB.CCC.Dog has a bone. 4) How do you use Schematron rules to validate your datatypes like strings having a certain pattern? i.e. String can be 5 characters in length, first two are numbers, last 3 are letters. Thanks for your assistance, chad the rad dad ____________________________________________________________ Chad Williamson, B.Sc. CE BOW Networks Inc. Software Developer #200, 550-71 Avenue S.E. TEL: (403) 640-8422 Calgary, Alberta FAX: (403) 253-8979 T2H 0S6 e-mail: [email protected] ------------------------------------------------------------------------ --------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick _______________________________________________ Schematron-love-in mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/schematron-love-in Diese E-mail ist eine private und pers=F6nliche Kommunikation. Sie hat keinen Bezug zur B=F6rsen- bzw. Gesch=E4ftst=E4tigkeit der SWX Gruppe. = This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le pr=E9sent e-mail = est un message priv=E9 et personnel, sans rapport avec l'activit=E9 = boursi=E8re du Groupe SWX. This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.=20 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click