docbook-apps

  • 1.  Re: [docbook] HTML and XHTML XSL stylesheets

    Posted 08-22-2006 14:36
    [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
    because that is proper HTML
    output (which is SGML, not XML). When you see "
    " 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
    for HTML output.

    As you say, using the xhtml stylesheet would give you
    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

    > instead of
    or instead of . I checked the
    > stylesheets shipped with docbook, and they all have
    and
    > 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
    >
    >
    >





  • 2.  Re: [docbook] HTML and XHTML XSL stylesheets

    Posted 08-22-2006 19:32
    I tried changing the output method to xml in my customization layer,
    and it still outputted it as
    or SGML equivalent. Is there a way
    I can override it?

    My problem has to do with whitespace processing in
     tags.  In
    XHTML and HTML it outputs the same code something like:


    /user/bin:>df
    Device total size Disk Free Percentage Free
    /dev/sda 543453 3245 5%
    /dev/sdb 678678 13245 12%


    In HTML it formats the span's on all one line. However, with XHTML it
    newlines each tag. I'm recalling this from memory, but I can
    send the exact code when I get home. I'll try the docbook stylesheets
    when I get home as well. I'm also sending the XHTML as text/xml or
    text/application+xml HTTP header. Should I use a different header or
    use text/html? Should I also use the transitional HTML DTD or XHTML
    DTD?

    Thanks
    Charlie

    On 8/22/06, Bob Stayton <bobs@sagehill.net> wrote:
    > [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
    because that is proper HTML
    > output (which is SGML, not XML). When you see "
    " 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
    for HTML output.
    >
    > As you say, using the xhtml stylesheet would give you
    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

    > > instead of
    or instead of . I checked the
    > > stylesheets shipped with docbook, and they all have
    and
    > > 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
    > >
    > >
    > >
    >
    >
    >