[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] HTML and XHTML XSL stylesheets
[I'm moving this over to the docbook-apps mailing list because that is where stylesheet issues are discussed] Using the html stylesheet will output <br> because that is proper HTML output (which is SGML, not XML). When you see "<br/>" in the XSL stylesheets, that is the proper XML notation for an empty element. It is the XSLT processor working with <xsl:output method="html"/> that converts that to a <br> for HTML output. As you say, using the xhtml stylesheet would give you <br/> and output that is more easily parsed. Many people are using the xhtml stylesheets with the browsers you mention. Can you describe the formatting problems you are seeing? Are you using a customization layer? Do you have the same problems with the stock DocBook stylesheet? Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Charlie Hubbard" <charlie.hubbard@gmail.com> To: <docbook@lists.oasis-open.org> Sent: Sunday, August 20, 2006 9:34 PM Subject: [docbook] HTML and XHTML XSL stylesheets > Hi, > > I'm using the HTML XSL stylesheets to transform a docbook. However, > after I run the stylesheets I get strange results. I'm getting <br> > instead of <br/> or <img> instead of <img/>. I checked the > stylesheets shipped with docbook, and they all have <br/> and <img/> > tags closed like in XML. I've tried changing the output option to > xml, but it still exports them without the closing tag or short hand > form closing. > > I moved into using the HTML after using the XHTML stylesheets, but > unfortunately, I ran into a bigger problem with XHTML and whitespace > formating in IE and firefox. I don't think the XHTML stylesheets are > usable because of this problem. It could be bugs in the browsers, but > bugs or no bugs it still won't format correctly. > > I'm trying to get something that is XHTML so that it can be parsed > more easily, but I have to create HTML so that the browsers will > format and display the results properly. > > Charlie > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]