You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Da...@lotus.com on 2001/02/08 03:36:37 UTC

Re: Bugreport

A few things first:

   1. Please post to the correct list. xalan-dev@xml.apache.org is the
   appropriate mailing list, not xerces-c-dev@xm.apache.org.

   2. Please try to limit the content of a bug report, or a posting to
   those things which are relevant.  Otherwise, searching through a posting
   to pick out the important information is extremely time-consuming.

   3. Try to verify your stylesheet against the Java version of the
   processor.

Now, on the the bug.  The only real bug with Xalan is that the error
message is not very helpful.  This will be fixed in the next release.  The
real bugs are as follows:

   1.  You did not close the <xsl:choose> element.  Line 47 of your
   stylesheet should be:

     </xsl:choose>

   instead of:

     <xsl:choose>

   The error is a result of the parser assuming the line 47 was the
   beginning of another xsl:choose element, which is illegal as a child of
   another xsl:choose.

   2. Line 67 has a spurious ; at the end of the XPath expression:

     <xsl:when test="not(contains($line, '&#10;'));">

   This should be:

     <xsl:when test="not(contains($line, '&#10;'))">

After correcting your stylesheet, I ran it with the latest Xalan-C++ code,
which produced the following output:

<html><head><META http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"><script>
               var buf =
                    unescape('The quick brown fox jumps over the lazy
dog.');
          </script></head><body><script>
                    document.write(buf);
                    document.write('<pre>'
                          + unescape(
                              'Absage an die Annahme %0a einer absoluten
Wirklichkeit.')
                         + '</pre>');
               </script></body></html>

I don't know if this is what you expected, but it seems correct to me.

Dave