[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xalan-dev
Subject:    [jira] Commented: (XALANJ-2256) Testcase message01 generates
From:       "David Marston (JIRA)" <xalan-dev () xml ! apache ! org>
Date:       2006-01-16 19:36:20
Message-ID: 1301864346.1137440180774.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

    [ http://issues.apache.org/jira/browse/XALANJ-2256?page=comments#action_12362882 \
] 

David Marston commented on XALANJ-2256:
---------------------------------------

But idkeyerr12 is an error test. All conformant processors must throw an error and \
also must produce no transformation output. So Xalan-J fails, as you say, because it \
doesn't throw an error. The test harness should know that this is an error case, \
either through a catalog entry or (less robust) by the "err" in the name, and thus \
determine that there should be no gold file. Generation of output is secondary \
evidence of failing an error case.

This is not the same as message01, which is a positive case. A case with xsl:message \
terminate="yes" should be in the messageERR test group.

> Testcase message01 generates invalid output
> -------------------------------------------
> 
> Key: XALANJ-2256
> URL: http://issues.apache.org/jira/browse/XALANJ-2256
> Project: XalanJ2
> Type: Test
> Reporter: Brian Minchau
> Assignee: Brian Minchau

> 
> When running the message01.xsl testcase the output produced by both Xalan-J and \
> Xalan-C is: <?xml version="1.0" encoding="UTF-8"?>
> Just the XML header. This is what is in the gold file too. This is invalid XML.  \
> The testcase has this: <xsl:template match="/">
> <xsl:message>This message came from the MESSAGE01 test.</xsl:message>
> </xsl:template>
> No result tree is generated at all. The intent of the testcase is just to issue a \
> message from a literal text element, i.e. from "This message..." To cause the \
> testcase to generated valid output an <out/> element should be added, so that the \
> gold file will be this: <?xml version="1.0" encoding="UTF-8"?><out/>
> and the XSL file will contain this:
> <xsl:template match="/">
> <xsl:message>This message came from the MESSAGE01 test.</xsl:message><out/>
> </xsl:template>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic