  | |  | Neko DOMParser - namespace issue ? | Neko DOMParser - namespace issue ? 2003-05-30 - By Afshartous, Nick
I did some experiments by creating a small XML input file and stylsheet and here's what I've found. The transform rules are applied successfully in the following cases
- xalan command line - calling xalan from Java using DocumentBuilder to create DOM input for transform - calling xalan from Java using Tidy to create DOM input for transform
However, the transform rules are not applied when I used the Neko DOMParser to create the DOM for the transform input. In this case the default transform rule (emit text) is applied which results in a Hierchy Exception.
If anyone knows why the DOM returned by Neko would be different please let me know, thanks. -- Nick
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12"> <TITLE>Neko DOMParser - namespace issue ?</TITLE> </HEAD> <BODY> <BR> <BR>
<P><FONT SIZE=2 FACE="Courier New">I did some experiments by creating a small XML input file</FONT> <BR><FONT SIZE=2 FACE="Courier New">and stylsheet and here's what I've found. The transform rules</FONT> <BR><FONT SIZE=2 FACE="Courier New">are applied successfully in the following cases</FONT> </P>
<P><FONT SIZE=2 FACE="Courier New"> - xalan command line</FONT> <BR><FONT SIZE=2 FACE="Courier New"> - calling xalan from Java using DocumentBuilder to create DOM input for transform</FONT> <BR><FONT SIZE=2 FACE="Courier New"> - calling xalan from Java using Tidy to create DOM input for transform</FONT> </P>
<P><FONT SIZE=2 FACE="Courier New">However, the transform rules are not applied when I used the Neko DOMParser</FONT> <BR><FONT SIZE=2 FACE="Courier New">to create the DOM for the transform input. In this case the default transform</FONT> <BR><FONT SIZE=2 FACE="Courier New">rule (emit text) is applied which results in a Hierchy Exception. </FONT> </P>
<P><FONT SIZE=2 FACE="Courier New">If anyone knows why the DOM returned by Neko would be different</FONT> <BR><FONT SIZE=2 FACE="Courier New">please let me know, thanks.</FONT> <BR><FONT SIZE=2 FACE="Courier New"> </FONT> <BR><FONT SIZE=2 FACE="Courier New">--</FONT> <BR><FONT SIZE=2 FACE="Courier New"> Nick</FONT> </P> <BR>
</BODY> </HTML>
|
|
 |