I doubt it, but you could always write a little test application to try it - i.e. doing the XSLT transform to system.out...
----- Original Message ----- From: "Bob Egolf" <[EMAIL PROTECTED]> To: "Alex Speed" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 5:35 PM Subject: Re: DOMSource as input in Transformer > Interesting I'm running > jdk 1.3.1_02 > xerces 1.4.4 > xalan-j-2_2_0 > Tomcat 33a > > Could it be the tomcat container? > Thanks for all the help, > > ----- Original Message ----- > From: "Alex Speed" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, March 01, 2002 10:30 AM > Subject: Re: DOMSource as input in Transformer > > > > Jdk1.3, Xerces recent version 1.4.3 and recent version of Xalan 2.1.0 and > > Tomcat 4.0.1 > > > > ----- Original Message ----- > > From: "Bob Egolf" <[EMAIL PROTECTED]> > > To: "Alex Speed" <[EMAIL PROTECTED]>; "xalan mailing list" > > <[EMAIL PROTECTED]> > > Sent: Friday, March 01, 2002 3:18 PM > > Subject: Re: DOMSource as input in Transformer > > > > > > > okay, thanks for trying. Can you tell me what version of xalan /xerces > you > > > are using? > > > perhaps it's an environment issue? > > > > > > Thanks. > > > > > > ----- Original Message ----- > > > From: "Alex Speed" <[EMAIL PROTECTED]> > > > To: "xalan mailing list" <[EMAIL PROTECTED]> > > > Sent: Friday, March 01, 2002 10:09 AM > > > Subject: Re: DOMSource as input in Transformer > > > > > > > > > > Sorry, No idea why, I am using transformer.transform(new > > DOMSource(pDoc), > > > > new StreamResult(out)); without any problem.... > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Bob Egolf" <[EMAIL PROTECTED]> > > > > To: "Alex Speed" <[EMAIL PROTECTED]>; "xalan mailing list" > > > > <[EMAIL PROTECTED]> > > > > Sent: Friday, March 01, 2002 3:01 PM > > > > Subject: Re: DOMSource as input in Transformer > > > > > > > > > > > > > Yes, To see the behaviour try these > > > > > > > > > > Good > > > > > > > > > > > > > > > http://cnbontheweb.dynip.com/homeweb/testgood.jsp?album=/images/Album1&id=1 > > > > > > > > > > and bad > > > > > > > > > > > > > > http://cnbontheweb.dynip.com/homeweb/testbad.jsp?album=/images/Album1&id=1 > > > > > > > > > > Thanks, > > > > > Bob > > > > > > > > > > The only difference between good and bad is that good uses the > > > > > transformer.transform(new StreamSource(xmlFile),new > > > > StreamResult(out)); > > > > > and bad parses the file into a dom and uses: > > > > > transformer.transform(new DOMSource(pDoc), new > StreamResult(out)); > > > > > Thanks, > > > > > Bob > > > > > > > > > > ----- Original Message ----- > > > > > From: "Alex Speed" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Friday, March 01, 2002 9:40 AM > > > > > Subject: Re: DOMSource as input in Transformer > > > > > > > > > > > > > > > > Have you tried to just print out the document without actually > > > > > transforming > > > > > > it? (to make sure that there is something in the document) > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "Bob Egolf" <[EMAIL PROTECTED]> > > > > > > To: "Alex Speed" <[EMAIL PROTECTED]>; > > > > <[EMAIL PROTECTED]> > > > > > > Sent: Friday, March 01, 2002 2:34 PM > > > > > > Subject: Re: DOMSource as input in Transformer > > > > > > > > > > > > > > > > > > > Sorry, yes > > > > > > > > > If I take a test.xml file, parse it into a DOM (myDom = > > > > > > > parser.parse(test.xml), then use... > > > > > > > > > > > > > > Thanks, > > > > > > > Bob > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > From: "Alex Speed" <[EMAIL PROTECTED]> > > > > > > > To: <[EMAIL PROTECTED]> > > > > > > > Sent: Friday, March 01, 2002 9:27 AM > > > > > > > Subject: Fw: DOMSource as input in Transformer > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > From: "Alex Speed" <[EMAIL PROTECTED]> > > > > > > > > To: "Bob Egolf" <[EMAIL PROTECTED]> > > > > > > > > Sent: Friday, March 01, 2002 2:27 PM > > > > > > > > Subject: Re: DOMSource as input in Transformer > > > > > > > > > > > > > > > > > > > > > > > > > is myDOM a Document object? > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > From: "Bob Egolf" <[EMAIL PROTECTED]> > > > > > > > > > To: "xalan mailing list" <[EMAIL PROTECTED]> > > > > > > > > > Sent: Friday, March 01, 2002 2:25 PM > > > > > > > > > Subject: DOMSource as input in Transformer > > > > > > > > > > > > > > > > > > > > > > > > > > > I am having a problem using DOMSource as input in > transfomer. > > > > > > > > > If I take a test.xml file, parse it into a DOM, then use > > > > > > > > > > > > > > > > > > transformer.transform(new DOMSource(myDOM), new > > > > StreamResult(out)); > > > > > > > > > > > > > > > > > > the transformation fails to find the first set of elements > and > > > > just > > > > > > > prints > > > > > > > > > them > > > > > > > > > out. > > > > > > > > > > > > > > > > > > However, if I do > > > > > > > > > > > > > > > > > > transformer.transform(new StreamSource(test.xml), new > > > > > > > StreamResult(out)); > > > > > > > > > > > > > > > > > > everything works fine. > > > > > > > > > > > > > > > > > > Any Help is appreciated, > > > > > > > > > I am attaching the xml and xslt file and sample jsp page for > > > > review. > > > > > > > > > > > > > > > > > > Thanks in Advance, > > > > > > > > > Bob > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
