Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.2-99: xsl:message not printed #324

Closed
AirQuick opened this issue Jul 15, 2021 · 2 comments
Closed

1.3.2-99: xsl:message not printed #324

AirQuick opened this issue Jul 15, 2021 · 2 comments

Comments

@AirQuick
Copy link

With 1.3.1 (xmlcalabash-1.3.1-99.zip) or earlier, messages from xsl:message were printed.
With 1.3.2-99 (xmlcalabash-1.3.2-99.zip), messages are not printed. Is it no longer supported out-of-the-box?

$ cat pipe.xpl 
<?xml version="1.0"?>
<p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc">
  <p:input port="source">
    <p:empty />
  </p:input>
  <p:output port="result" />
  <p:xslt>
    <p:input port="source">
      <p:inline>
        <doc />
      </p:inline>
    </p:input>
    <p:input port="stylesheet">
      <p:inline>
        <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:template match="doc">
            <xsl:message select="'my message'" />
          </xsl:template>
        </xsl:stylesheet>
      </p:inline>
    </p:input>
    <p:input port="parameters">
      <p:empty />
    </p:input>
  </p:xslt>
</p:declare-step>
$ java -jar xmlcalabash-1.3.1-99/xmlcalabash-1.3.1-99.jar pipe.xpl
INFO : pipe.xpl:7:11:my message

        
      
$ java -jar xmlcalabash-1.3.2-99/xmlcalabash-1.3.2-99.jar pipe.xpl 
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

        
      
$ 
@ndw
Copy link
Owner

ndw commented Jul 15, 2021

This is a damned-if-I-do, damned-if-I-don't situation and I really don't know what the right answer is. If you put one of the concrete logging back ends on your class path (e.g., slf4j-simple), you'll get the logging messages. If I ship XML Calabash with that back end built in, it's harder for users in other environments to work around it.

@AirQuick
Copy link
Author

Thanks. Adding log4j-api-2.14.1.jar, log4j-core-2.14.1.jar and log4j-slf4j-impl-2.14.1.jar to the class path restored the message print. That's a bit inconvenient, but I'll do that for 1.3.2 and onward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants