RE: [xsl] img tag and Saxon

Subject: RE: [xsl] img tag and Saxon
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 22 Aug 2005 12:10:42 +0100
If you are generating HTML, use the html output method, and Saxon will
serialize an img tag as <img src="x">. XSL-FO processors want XML as input,
not HTML, so they won't be able to handle it.

If you are generating XML, use the xml output method, and Saxon will
serialize the img tag as <img src="x"/>. But an XSL-FO processor still won't
be able to handle it, because <img> is not a formatting object that it
recognizes.

Michael Kay
http://www.saxonica.com/
  

> -----Original Message-----
> From: Ranjan K. Baisak [mailto:ranjanbaisak@xxxxxxxxx] 
> Sent: 22 August 2005 11:33
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] img tag and Saxon
> 
> Well..saxon is used to generate html from xml for
> display purpose. I am using HTML to create PDF by
> using FO.
> So I have to generate html than xml.
> 
> -Ranjan
> 
> --- David Carlisle <davidc@xxxxxxxxx> wrote:
> 
> > 
> > > I am working on saxon 6.5.3. If my xml has an img
> > tag,
> > > then output produced by saxon does not have
> > closing
> > > tag i
> > 
> > 
> > It will if you generate xml rather than html output.
> > 
> > > which was creating problem during FO processing.
> > 
> > If you are generating FO why are you generating img
> > elements at all?
> > 
> > David
> > 
> >
> ______________________________________________________________
> __________
> > This e-mail has been scanned for all viruses by
> > Star. The
> > service is powered by MessageLabs. For more
> > information on a proactive
> > anti-virus service working around the clock, around
> > the globe, visit:
> > http://www.star.net.uk
> >
> ______________________________________________________________
> __________
> > 
> > 
> 
> 
> 
> 		
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 

Current Thread