[
http://issues.apache.org/jira/browse/XALANJ-2256?page=comments#action_12362875
]
Brian Minchau commented on XALANJ-2256:
---------------------------------------
In running the conformance bucket of tests I found that testcase idkeyerr12 has
a similar issue. The stylesheet has this:
<xsl:variable name="v1">title</xsl:variable>
<xsl:key name="mykey" match="div" use="$v1" />
<xsl:template match="doc">
. . .
</xsl:template>
The purpose of the testcase notes this:
>> It is an error for the "use" attribute on xsl:key to contain a variable
reference. <<
This situation is different than testcase message01 because the error occurs in
a top level element.
Currently idkeyerr12 fails because it did not throw an exception. It also
generates output XML containing just this:
<?xml version="1.0" encoding="UTF-8"?>
According to one of Henry Z's recent comments this is a well-formed external
general parsed entity.
Since both message01 and idkeyerr12 are conformance tests, and their output is
checked against a gold file, the output should be the same by all processors.
Is it that output an XML file with just the XML header?
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]