Are you using a namespace-aware XML parser to create your DOM document?

Gary

> -----Original Message-----
> From: Alex Speed [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 01, 2002 7:09 AM
> To: xalan mailing list
> 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=/image
> s/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
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> 

Reply via email to