Thanks for taking a look, Pavani. I put together a debug build myself to get the line number info on stack traces, but it still wasn't forthcoming so I started checking out the classpath... I'd already done that of course but it's tricky these days because of JAR extensions...
Anyway, sure enough, one was pulling in a really old version of Xerces and I think I was actually getting some mixture of the two. I've cleaned that all up and it works just great now! Sorry to trouble you and thanks again! --Scott ----- Original Message ----- From: "Pavani Mukthipudi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 12:07 AM Subject: Re: Processing Instruction / Stylesheet > > Scott Vachalek wrote : > > > > Does anyone have a snippet of code that will do this and *actually works* on > either 2.0.0 or 2.0.1? I'll settle for any way to do it as long as it works. > > > > This is what I'm trying: > > > > Document doc = db.newDocument(); > > doc.appendChild( doc.createProcessingInstruction( > > "xml-stylesheet", "href=\"" + stylesheet + "\" type=\"text/xsl\"" ) ); > > doc.appendChild( doc.createElement( "root" ) ); > > > > I tried to do the above in all possible ways but couldn't reproduce > your problem with both 2.0.0 and 2.0.1. It works perfectly fine. > > Any further info like stack trace etc. may help in figuring out the problem. > > -Pavani > > -- > > Pavani Mukthipudi > Sun Microsystems, Inc. > > Phone: 080 - 2298989 Extn: 87390 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
