Menu

Schematron

2003-03-10
2004-01-05
  • Clinton Ingram

    Clinton Ingram - 2003-03-10

    I have just started experimenting with this Schematron parser, and it looks like it will be very helpful on my next project.  One question, though...

    I notice that neither the diagnostics element nor the subject attribute of the assert or report elements is implemented, and I was planning on using one or both of them.  Were they not implemented becuase a problem came up in the implementaion, or just because nobody needed them?  I'm just trying to get an idea of the effort to add them while I'm scoping the project, and any info would be appreciated...

    Thanks!

    -Clinton Ingram

     
    • Daniel Cazzulino (kzu)

      There's no technical difficulty in implementing both the subject and diagnostics schematron elements. I just didn't need them and they are not part of the basic schematron profile, so I left them out.
      However, it would be good to add support for them, so fell free to do it if you want to!
      I added you to the developers list so you can easily access and update the CVS.
      BTW: I'm working on adding variable declarations on our implementation, as well as some of the XSLT elements (generate-id and others), and even some formatting specifics such as format-string, format-date, etc., which will work by calling the corresponding .NET formatting facilities...

      Cheers,
      Daniel

       
    • Clinton Ingram

      Clinton Ingram - 2003-03-11

      Thanks, Daniel.

      I figured out I can get what I need (context-sensitive error messages) by running the output document through an XSLT, but if I have time, I would rather add diagnostic and subject support directly to the parser. I'll have to see how the rest of this project goes...

      Thanks again for your quick response and for this excellent parser!

      -Clinton

       
    • Anonymous

      Anonymous - 2004-01-02

      Schematron.NET doesn't seem to recognize a call to the cslt function current(). I have tried running my sample schemtron through WinTest but i get the following assertion error:

      Xslt query is needed for this query because of an unknown function.

      Thanks,
      Pouria

       
      • Daniel Cazzulino (kzu)

        Just like you sad, the current() function is an XSLT one, not an XPath one. Schematron.NET is based exclusively on XPath features.
        That said, however, I've been working on adding all XSLT functions as custom extensions to Schematron.NET, so that a schema written to work with the XSLT implementation would also work with our .NET/XPath implementation.
        I still haven't made my mind with regards to the key() function, as WXS already provides a very good key/unique/keyref mechanism, and I believe Schematron is best put to use when combined with it.
        Ideas?

         
    • Anonymous

      Anonymous - 2004-01-05

      Thank you very much for your quick reply.

      Pouria

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.