From a previous time the question was asked:

On Jan 11, 2007, at 4:27 PM, Curt Arnold wrote:

log4j doesn't actually produce an XML document since an XML document can only have one element. log4j produces an XML parsed entity (in this case a sequence of elements) that can be referenced in an XML document and it is assumed that the containing document would declare the namespace prefix. To process the output of log4j by XSLT, you would need to create a small XML document that includes the log file and then process the XML document using XSLT.

Your XML document would look like:

<!DOCTYPE mydocument [
<!ENTITY logfile SYSTEM 'logger.xml'>
]>
<mydocument xmlns:log4j='http://jakarta.apache.org/log4j/'>
&logfile;
</mydocument>



Question comes up enough that there should be a FAQ on it and check that the documentation mentions it.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to