Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - msxsl.exe 3.0 disagrees with IE 6.0 over simple XSL >Thread Next - Re: msxsl.exe 3.0 disagrees with IE 6.0 over simple XSL Re: msxsl.exe 3.0 disagrees with IE 6.0 over simple XSLTo: NULL Date: 7/6/2005 11:44:00 PM This is a multi-part message in MIME format. ------=_NextPart_000_0107_01C58284.83E69D70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable What version of IE are you using? I get the following output in IE 6.0.2900.2180.xpsp_sp2. a.. Doberman=20 a.. Poodle=20 b.. Terrier a.. Hooded=20 a.. Blue=20 b.. Brown=20 c.. Norway "Phlip" <phlip_cpp@y...> wrote in message = news:%23SwetbcgFHA.4032@T...... > XSLers: >=20 > Consider this dirt-simple, tutorial-level XSL: >=20 > <xsl:stylesheet xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" > version=3D"1.0"> >=20 > <xsl:output method=3D"xml" > media-type=3D"text/html" > standalone=3D"no" > omit-xml-declaration=3D"yes" > encoding=3D"UTF-8" /> >=20 > <xsl:template match=3D"/attitude"> > <html> > <head></head> > <body bgcolor=3D"#ffffff"> > <ul> > <xsl:for-each select=3D"*"> > <li> > <xsl:value-of select=3D"@title" /> > <ul> > <xsl:for-each select=3D"property"> > <li> > <xsl:value-of select=3D"@name" /> > </li> > </xsl:for-each> > </ul> > </li> > </xsl:for-each> > </ul> > </body> > </html> > </xsl:template> >=20 > </xsl:stylesheet> >=20 > We obviously need to turn this simple XML into XHTML: >=20 > <?xml version=3D"1.0" ?> > <?xml-stylesheet type=3D"text/xsl" href=3D"format.xslt" ?> > <attitude> > <concept title=3D"Doberman"> > <property name=3D"Poodle" /> > <property name=3D"Terrier" /> > </concept> > <concept title=3D"Hooded"> > <property name=3D"Blue" /> > <property name=3D"Brown" /> > <property name=3D"Norway" /> > </concept> > </attitude> >=20 > When I run that thru MSXSL.EXE (and Tidy -i), it produces this: >=20 > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> > <html> > <head> > </head> > <body bgcolor=3D"#FFFFFF"> > <ul> > <li>Doberman > <ul> > <li>Poodle</li> > <li>Terrier</li> > </ul> > </li> > <li>Hooded > <ul> > <li>Blue</li> > <li>Brown</li> > <li>Norway</li> > </ul> > </li> > </ul> > </body> > </html> >=20 > A beautiful XHTML page containing nested lists. >=20 > However, when I load that sample XML inside IE, it doesn't render = beautiful > nested frames. It renders an ugly little snip that looks like it came = from > <ul><li><ul><li></li></ul></li></ul>. Nothing else. It's as if the > transformation started, and died when it encountered output text. >=20 > The first thing to check is the transclusion tags. So is this correct = in the > XML input file?? >=20 > <?xml version=3D"1.0" ?> > <?xml-stylesheet type=3D"text/xsl" href=3D"format.xslt" ?> >=20 > Note that format.xslt is local, in a file in the same folder. It's not = on a > server. Would that matter? (I would prefer not to serve the XSLT = because the > rest of the program is an HTML GUI without a server.) >=20 > So are the tags to declare the XSLT as outputing XHTML correct? >=20 > <xsl:stylesheet xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" > version=3D"1.0"> >=20 > <xsl:output method=3D"xml" > media-type=3D"text/html" > standalone=3D"no" > omit-xml-declaration=3D"yes" > encoding=3D"UTF-8" /> >=20 > --=20 > Phlip > http://www.c2.com/cgi/wiki?ZeekLand >=20 > ------=_NextPart_000_0107_01C58284.83E69D70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY> <DIV><FONT face=3DArial size=3D2>What version of IE are you = using?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I get the following output in IE=20 6.0.2900.2180.xpsp_sp2.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV><FONT face=3DArial = size=3D2> <LI>Doberman=20 <UL> <LI>Poodle=20 <LI>Terrier</LI></UL> <LI>Hooded </LI> <UL> <LI>Blue=20 <LI>Brown=20 <LI>Norway</FONT></LI></UL> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>"Phlip" <</FONT><A=20 href=3D"mailto:phlip_cpp@y..."><FONT face=3DArial=20 size=3D2>phlip_cpp@y...</FONT></A><FONT face=3DArial size=3D2>> = wrote in=20 message </FONT><A = href=3D"news:%23SwetbcgFHA.4032@T..."><FONT=20 face=3DArial = size=3D2>news:%23SwetbcgFHA.4032@T...</FONT></A><FONT=20 face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> = XSLers:<BR>>=20 <BR>> Consider this dirt-simple, tutorial-level XSL:<BR>> <BR>> = <xsl:stylesheet xmlns:xsl=3D"</FONT><A=20 href=3D"http://www.w3.org/1999/XSL/Transform"><FONT face=3DArial=20 size=3D2>http://www.w3.org/1999/XSL/Transform</FONT></A><FONT = face=3DArial=20 size=3D2>"<BR>> &= nbsp; =20 version=3D"1.0"><BR>> <BR>> <xsl:output=20 method=3D"xml"<BR>> &nb= sp; =20 media-type=3D"text/html"<BR>>  = ; =20 standalone=3D"no"<BR>> = =20 omit-xml-declaration=3D"yes"<BR>> &= nbsp; =20 encoding=3D"UTF-8" /><BR>> <BR>> <xsl:template=20 match=3D"/attitude"><BR>> =20 <html><BR>> =20 <head></head><BR>> <body = bgcolor=3D"#ffffff"><BR>> = =20 <ul><BR>> = <xsl:for-each=20 select=3D"*"><BR>> &= nbsp; =20 <li><BR>> &= nbsp; =20 <xsl:value-of select=3D"@title"=20 /><BR>> = =20 <ul><BR>> &= nbsp; =20 <xsl:for-each=20 select=3D"property"><BR>> = =20 <li><BR>> &= nbsp; =20 <xsl:value-of select=3D"@name"=20 /><BR>> = =20 </li><BR>> = =20 </xsl:for-each><BR>> &n= bsp; =20 </ul><BR>> = =20 </li><BR>> = =20 </xsl:for-each><BR>> =20 </ul><BR>> =20 </body><BR>> </html><BR>> =20 </xsl:template><BR>> <BR>> </xsl:stylesheet><BR>> = <BR>>=20 We obviously need to turn this simple XML into XHTML:<BR>> <BR>> = <?xml=20 version=3D"1.0" ?><BR>> <?xml-stylesheet type=3D"text/xsl"=20 href=3D"format.xslt" ?><BR>> = <attitude><BR>> =20 <concept=20 title=3D"Doberman"><BR>> = <property name=3D"Poodle"=20 /><BR>> <property=20 name=3D"Terrier" /><BR>> =20 </concept><BR>> <concept=20 title=3D"Hooded"><BR>> =20 <property name=3D"Blue" = /><BR>> =20 <property name=3D"Brown"=20 /><BR>> <property=20 name=3D"Norway" /><BR>> </concept><BR>> = </attitude><BR>> <BR>> When I run that thru MSXSL.EXE (and = Tidy -i),=20 it produces this:<BR>> <BR>> <!DOCTYPE html PUBLIC "-//W3C//DTD = HTML=20 3.2//EN"><BR>> <html><BR>> <head><BR>>=20 </head><BR>> <body bgcolor=3D"#FFFFFF"><BR>> =20 <ul><BR>> =20 <li>Doberman<BR>> =20 <ul><BR>> =20 <li>Poodle</li><BR>> &n= bsp;=20 <li>Terrier</li><BR>> =20 </ul><BR>> = </li><BR>> =20 <li>Hooded<BR>> =20 <ul><BR>> =20 <li>Blue</li><BR>> &nbs= p;=20 <li>Brown</li><BR>> &nb= sp;=20 <li>Norway</li><BR>> =20 </ul><BR>> </li><BR>> =20 </ul><BR>> </body><BR>> </html><BR>> <BR>> = A=20 beautiful XHTML page containing nested lists.<BR>> <BR>> However, = when I=20 load that sample XML inside IE, it doesn't render beautiful<BR>> = nested=20 frames. It renders an ugly little snip that looks like it came = from<BR>>=20 <ul><li><ul><li></li></ul></li>= </ul>.=20 Nothing else. It's as if the<BR>> transformation started, and died = when it=20 encountered output text.<BR>> <BR>> The first thing to check is = the=20 transclusion tags. So is this correct in the<BR>> XML input = file??<BR>>=20 <BR>> <?xml version=3D"1.0" ?><BR>> <?xml-stylesheet=20 type=3D"text/xsl" href=3D"format.xslt" ?><BR>> <BR>> Note that = format.xslt=20 is local, in a file in the same folder. It's not on a<BR>> server. = Would that=20 matter? (I would prefer not to serve the XSLT because the<BR>> rest = of the=20 program is an HTML GUI without a server.)<BR>> <BR>> So are the = tags to=20 declare the XSLT as outputing XHTML correct?<BR>> <BR>> = <xsl:stylesheet=20 xmlns:xsl=3D"</FONT><A = href=3D"http://www.w3.org/1999/XSL/Transform"><FONT=20 face=3DArial = size=3D2>http://www.w3.org/1999/XSL/Transform</FONT></A><FONT=20 face=3DArial=20 size=3D2>"<BR>> &= nbsp; =20 version=3D"1.0"><BR>> <BR>> <xsl:output=20 method=3D"xml"<BR>> &nb= sp; =20 media-type=3D"text/html"<BR>>  = ; =20 standalone=3D"no"<BR>> = =20 omit-xml-declaration=3D"yes"<BR>> &= nbsp; =20 encoding=3D"UTF-8" /><BR>> <BR>> -- <BR>> = Phlip<BR>> =20 </FONT><A href=3D"http://www.c2.com/cgi/wiki?ZeekLand"><FONT = face=3DArial=20 size=3D2>http://www.c2.com/cgi/wiki?ZeekLand</FONT></A><BR><FONT = face=3DArial=20 size=3D2>> <BR>></FONT></BODY></HTML> ------=_NextPart_000_0107_01C58284.83E69D70-- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
