[oXygen-user] Overriding Schematron process-assert template during XML validation

Amanda Galtman
Fri Dec 18 07:04:06 CST 2015


Thanks for the tip, Patrik. That is good to know for when we upgrade to future Oxygen releases.

Regards,
Amanda

> -----Original Message-----
> From: Dr. Patrik Stellmann [mailto:]
> Sent: Friday, December 18, 2015 12:16 AM
> To: Amanda Galtman <>; Oxygen XML
> Editor Support (Octavian Nadolu) <>; oxygen-
> 
> Subject: AW: [oXygen-user] Overriding Schematron process-assert template
> during XML validation
> 
> Hi Amanda,
> 
> you can find the file iso-schematron-quick-fixes.xsl (and any other built-in
> stylesheet) in your lib/oxygen.jar file wihinin the builtin folder (just unzip it).
> 
> Regards,
> Patrik
> 
> 
> ------------------------------------------------------------------
> Systemarchitektur & IT-Projekte
> Tel: +49 40 33449-1142
> Fax: +49 40 33449-1400
> E-Mail: mailto:
> 
> -----Ursprüngliche Nachricht-----
> Von:  [mailto:oxygen-user-
> ] Im Auftrag von Amanda Galtman
> Gesendet: Donnerstag, 17. Dezember 2015 17:48
> An: Oxygen XML Editor Support (Octavian Nadolu); oxygen-
> 
> Betreff: Re: [oXygen-user] Overriding Schematron process-assert template
> during XML validation
> 
> Patrik and Octavian,
> 
> Thanks a lot for your helpful replies! I followed the instructions and got things
> working.
> 
> We would like to use SQF support. Octavian, if you can send me the iso-
> schematron-quick-fixes.xsl file to use, that would be great.
> 
> Regards,
> Amanda
> 
> 
> > -----Original Message-----
> > From:  [mailto:oxygen-user-
> > ] On Behalf Of Oxygen XML Editor Support
> > (Octavian Nadolu)
> > Sent: Thursday, December 17, 2015 5:29 AM
> > To: 
> > Subject: Re: [oXygen-user] Overriding Schematron process-assert
> > template during XML validation
> >
> > Hello Amanda,
> >
> > Patrik is right, in order to overwrite oXygen built-in stylesheets for
> > Schematron, you need to create an "endorsed/builtin" folder in the
> > "[Oxygen install dir]/lib" folder.
> > To change the "process-message" template you need to copy the
> > "iso_schematron_skeleton.xsl" and "iso-schematron-message.xsl"
> > stylesheets from "Oxygen/frameworks/schematron/impl" folder in the
> > "Oxygen/lib/endorsed/builtin" folder and restart oXygen. After this
> > you can modify the "process-message" template from the copied
> > "iso-schematron-message.xsl" file.
> >
> > If the SQF support is enabled (see the "Enable Schematron Quick Fixes
> > (SQF) support" options from the "XML / XML Parser / Schematron" option
> > page), you will need to add in the "Oxygen/lib/endorsed/builtin"
> > folder also the "iso-schematron-quick-fixes.xsl" stylesheet. But this
> > stylesheet is not public. You have two solutions for this. Even you
> > deactivate the SQF support if you don't use it or I can send you the
> > "iso-schematron-quick-fixes.xsl" stylesheet.
> >
> > Best Regards,
> > Octavian
> > --
> > Octavian Nadolu
> > <oXygen/> XML Editor
> > http://www.oxygenxml.com
> >
> >
> > On 17.12.2015 09:51, Dr. Patrik Stellmann wrote:
> > > Hi Amanda,
> > >
> > > you can overwrite built-in stylescheets for schematron by creating a
> > > folder Oxygen/lib/endorsed/builtin and place the files there. You
> > > probably have to start with oXygenSchematronDispatcher.xsl which
> > > includes additional files (this depends on the version you are using).
> > > You can find a discussion about this in the forum:
> > >
> > > https://www.oxygenxml.com/forum/post33302.html#p33302
> > >
> > > Regards,
> > >
> > > Patrik
> > >
> > >
> > > ------------------------------------------------------------------
> > > Systemarchitektur & IT-Projekte
> > > Tel: +49 40 33449-1142
> > > Fax: +49 40 33449-1400
> > > E-Mail: 
> > > <mailto:>
> > >
> > >
> > > *Von:* 
> > > [mailto:] *Im Auftrag von
> > *Amanda Galtman
> > > *Gesendet:* Mittwoch, 16. Dezember 2015 19:55
> > > *An:* 
> > > *Betreff:* [oXygen-user] Overriding Schematron process-assert
> > > template during XML validation
> > >
> > > Hi,
> > >
> > > Is there a way to make Oxygen's RelaxNG/Schematron validation of XML
> > > files pick up my customizations of templates like process-assert or
> > > process-message?
> > >
> > > I know how to make this work outside of Oxygen, but I'm having
> > > trouble finding the right hooks in Oxygen (and tinkering with
> > > oxygen.jar seems like a really bad idea). Do I extend the Schematron
> > > framework, or is that used only for editing Schematron source files?
> > >
> > > Thanks,
> > >
> > > Amanda
> > >
> > > *GDV Dienstleistungs-GmbH & Co. KG*
> > > Glockengießerwall 1
> > > D-20095 Hamburg
> > > www.gdv-dl.de
> > >
> > > Sitz und Registergericht: Hamburg
> > > HRA 93 894
> > > USt.-IdNr : DE 205183123
> > >
> > > Komplementärin:
> > > GDV Beteiligungsgesellschaft mbH
> > > Sitz und Registergericht: Hamburg
> > > HRB 71 153
> > >
> > > Geschäftsführer:
> > > Dr. Jens Bartenwerfer
> > > Michael Bathke
> > > Volker Sonnenburg
> > >
> > > ------------------------------------------------------------------
> > > Diese E-Mail und alle Anhänge enthalten vertrauliche und/oder
> > > rechtlich geschützte Informationen. Wenn Sie nicht der richtige
> > > Adressat sind oder diese E-Mail irrtümlich erhalten haben,
> > > informieren Sie bitte sofort den Absender und vernichten Sie diese
> > > E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe der E-
> Mail ist nicht gestattet.
> > >
> > > This e-mail and any attached files may contain confidential and/or
> > > privileged information. If you are not the intended recipient (or
> > > have received this e-mail in error) please notify the sender
> > > immediately and destroy this e-mail. Any unauthorised copying,
> > > disclosure or distribution of the material in this e-mail is strictly forbidden.
> > >
> > >
> > >
> > > _______________________________________________
> > > oXygen-user mailing list
> > > 
> > > https://www.oxygenxml.com/mailman/listinfo/oxygen-user
> > >
> >
> >
> > _______________________________________________
> > oXygen-user mailing list
> > 
> > https://www.oxygenxml.com/mailman/listinfo/oxygen-user
> _______________________________________________
> oXygen-user mailing list
> 
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
> 
> GDV Dienstleistungs-GmbH & Co. KG
> Glockengießerwall 1
> D-20095 Hamburg
> www.gdv-dl.de
> 
> Sitz und Registergericht: Hamburg
> HRA 93 894
> USt.-IdNr : DE 205183123
> 
> Komplementärin:
> GDV Beteiligungsgesellschaft mbH
> Sitz und Registergericht: Hamburg
> HRB 71 153
> 
> Geschäftsführer:
> Dr. Jens Bartenwerfer
> Michael Bathke
> Volker Sonnenburg
> 
> ------------------------------------------------------------------
> Diese E-Mail und alle Anhänge enthalten vertrauliche und/oder rechtlich
> geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder
> diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie
> die unbefugte Weitergabe der E-Mail ist nicht gestattet.
> 
> This e-mail and any attached files may contain confidential and/or privileged
> information. If you are not the intended recipient (or have received this e-
> mail in error) please notify the sender immediately and destroy this e-mail.
> Any unauthorised copying, disclosure or distribution of the material in this e-
> mail is strictly forbidden.



More information about the oXygen-user mailing list