Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Empty element match >Thread Next - Re: Empty element match Re: Empty element matchTo: NULL Date: 7/1/2005 11:21:00 AM David Carlisle wrote: >>How can i force the transformer to not use the >>implicit end tag like this <br/> ? > > > If you are writing html then you should use the html output method > and this will be output as <br> However if you are writing xml then > within standard xslt there is no way to customise this although your > system may allow you to specify a non standard serialiser. > ok im outputting to XHTML TRANSITIONAL: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> So it think i should set the output method to xml, and internet explorer should see <br></br> as a single br. > If you send xml to IE as text/html then it will parse it as html and > not understanding XML syntax for br is only a small part of the > problems.. If you send it with an XML mime type then it will use an xml > parser and parse it correctly, but you then have to supply a stylesheet > in order for it to display as it doesn't have xhtml support built in. > > David Ok i will try to set the response mime type to text/xml, is text/xhtml also possible? | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
