More detailed exception info for non whitespace text
----------------------------------------------------

         Key: XALANJ-2227
         URL: http://issues.apache.org/jira/browse/XALANJ-2227
     Project: XalanJ2
        Type: Improvement
  Components: Xalan-interpretive  
    Versions: 2.7    
    Reporter: elharo
    Priority: Minor


My code is tripping over these lines in 
org.apache.xalan.processor.StylesheetHandler:

      // If it's whitespace, just ignore it, otherwise flag an error.
      if (!XMLCharacterRecognizer.isWhiteSpace(ch, start, length))
        error(
          
XSLMessages.createMessage(XSLTErrorResources.ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,
 null),null);//"Non-whitespace text is not allowed in this position in the 
stylesheet!",
          
    }

I'm not sure exactly why, since I can't see any funky whitespace in the 
stylesheet and the transform runs just fine from the command line. Doubtless 
it's a bug in my code somewhere I will eventually find and fix. That's not your 
fault or problem. 

However, it would help to me and others with similar problems to diagnose our 
bugs if the exception object or  message offered some more details; i.e. which 
non-whitespace characters are being encountered that cause this problem? Just 
eyeballing the stylesheet in question I can't seem to figure that out. 

-- 
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]

Reply via email to