[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Image Tage Bug

Subject: Re: Image Tage Bug
From: António Mota <amsmota@xxxxxxxxx>
Date: Sat, 5 Nov 2005 15:35:25 +0000
image de tage
Trye the "xml" output-method...

On 11/5/05, CyberSpace Industries 2000 Inc. <csi2000@xxxxxxxxxxxxxxx> wrote:
> I think the question he is really asking is  - is there an output method to
> specify the generation of  xhtml so that <img    />  and other empty tags
> like <br /> gets generated automatically (and conform to the W3C
> recommendation for compatibility with older browsers)?
>
> I believe with xslt 2.0 you can specify an output method of xhtml - but
with
> xslt 1.0  I am not sure if there is any commonly accepted way to do this
> (and also seems to be dependent on the specific application you are using
as
> well).  I generally wind up patching the output by hand - or running the
> file through some xhtml /validation-fix up routine... so would be
interested
> in an answer to this as well.
>
> Cheers...Hugh
>
> CyberSpace Industries 2000 Inc.
> XML Training and Consulting
>
>
> ----- Original Message -----
> From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Saturday, November 05, 2005 8:59 AM
> Subject: Re:  Image Tage Bug
>
>
> > On 11/5/05, G Venkata Phanindra <phani_five@xxxxxxxxxxx> wrote:
> >> Hi..
> >> I am a newbie to XSL and i am trying to convert an xml
> >> file into an HTML ...
> >> I need to add an Image in the HTML,i am defining HTML
> >> image tag
> >>
> >>      <img src=" " alt=" " />
> >>
> >> No problem with HTML output. but when i submit this to
> >> an XHTML validator its
> >> giving OMIT TAG error as this is converted as
> >>
> >>           <img src= " " alt=" ">
> >>
> >>  the / is missing how can i handle this.
> >>
> >> Code
> >>
> >> <?xml version='1.0' encoding='utf-8' ?>
> >> <xsl:stylesheet
> >> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >> version="1.0">
> >> <xsl:output method="html" version="1.0"
> >
> >
> > You've specified output method 'html', so you probably want to submit
> > it to a HTML validator instead of an XHTML validator.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.