error: more pseudo attributes expected. 2003-08-13 - By Anthony Rabaa
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> Hello,<br> <br> I'm having an interesting error occur (shown in subject) that I can't seem to find a solution to. I'm not sure whether it is a Xerces issue or Xalan, so if I am posting to the wrong group, I apologize. I'm running XML files through a SAX parser to modify the content before I push them through a Xalan transformer. The error occurs when I attempt to convert a processing instruction into an entity reference. Could somebody please explain what this error is referring to specifically and what I may need to do to correct it? Thanks in advance!<br> <br> <pre>Example PI: <?module c:\foo.xml?>
Code Snippet:
public void processingInstruction(String target, String data) { if(target.compareTo("module") == 0) { data = data.replace('\\', '/'); data = data.substring(data.lastIndexOf("/") + 1, data.lastIndexOf(".xml ")); buffer.append("&" + data + ";"); } else { ... } } </pre> <div class="moz-signature">-- <br> <br> <b>Anthony Rabaa</b><br> Software Developer<br> AMCon Research Inc., Ottawa, Ontario, Canada<br> <a class="moz-txt-link-freetext" href="http://www .amconresearch.com">http://www.amconresearch.com</a><br> </div> </body> </html>
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|