Re: schematron can output a well formatted data

Oliver Becker <[email protected]> Thu, 6 May 2004 17:15:13 +0200
Newsgroups gmane.text.xml.schematron
Message-ID <[email protected]>
On Thu, May 06, 2004 at 10:38:19AM +0100, Pedro Salazar wrote:
> No, it doesn't help because every <xml> element I add inside the text, I
> will get a warning when applying the skeleton-1.5.xsl, and that element
> will be omitted from the resulting xsl.

Oh sorry, these things happen if you try to answer just from memory
without checking if it's correct ;-)

However, the point is that the skeleton file is not intended to be
applied directly. Rather use one of the customizations like
schematron-basic, -message, or -report. In your case you should
create your own customization that out outputs each message within
an XML element.

> However I already get a solution to my problem. But the amazing of that
> solution is that it was developed by *you* (and Anna Hovhannisian). 

Mainly by Anna ;-)
I was only the mentor.

> I
> attached a patch of the skeleton to the original version (1.5). It works
> just fine because I can build well formed XML from it, and retrieve my
> values from the nodes ASSERT/REPORT.
> 
> I got it from:
> http://www.informatik.hu-berlin.de/~obecker/SchematronAPI/
> 
> Can you comment this solution with the original schematron? I only have
> time to analyze it very quickly but I don't know if is OK. In my tests
> it works just fine.

Yes, this works, but in order to benefit from future changes to the
skeleton you should put these things into a separate XSLT file.
(for example there is a already a version 1.6)

Cheers,
Oliver



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3