Re: schematron can output a well formatted data
Oliver Becker <[email protected]> Thu, 6 May 2004 09:56:32 +0200
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Message-ID | <[email protected]> |
On Tue, May 04, 2004 at 06:11:44PM +0100, Pedro Salazar wrote: > I created a xml with my schematron rules to which I apply the > skeleton-1.5.xsl to produce my real xsl. However, this applied to my xml > instances files produce always messages *joined* report/assert messages. > > What I intend to do is create a recognized format in this output to work > and present it in a well formatted text. > > For instance, > > <assert test="sch:pattern">BLA BLA BLA </assert> > <assert test="sch:pattern">XYZ XYZ XYZ </assert> > > If these 2 rules above produce a result, how will I detected the output > as 2 real output messages? I will get this "BLA BLA BLA XYZ XYZ XYZ "! Just add the required newline character ;-) <assert test="sch:pattern">BLA BLA BLA </assert> > If I try to insert < or >, to try to simulate a XML file, these > will be handled as text and not as < or >. Ouch, you don't have to simulate XML, you have to insert real XML! For example <assert test="sch:pattern"><msg>BLA BLA BLA</msg></assert> Hope this helps, Oliver -- /-------------------------------------------------------------------\ | ob|do Dipl.Inf. Oliver Becker | | --+-- E-Mail: [email protected] | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ ------------------------------------------------------- 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