Include XHTML doctype in XSL

Discussion in 'XML' started by howa, Sep 30, 2007.

  1. howa

    howa Guest

    e.g.

    <xsl:template match="/">

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
    www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
    dir="ltr">
    ....


    The parser warn me cannot have doctype in XLS, so it is possible to do
    so?

    thanks.
     
    howa, Sep 30, 2007
    #1
    1. Advertising

  2. * howa wrote in comp.text.xml:
    ><xsl:template match="/">
    >
    ><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
    >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
    >dir="ltr">
    >...
    >
    >The parser warn me cannot have doctype in XLS, so it is possible to do
    >so?


    Use the doctype-public and doctype-system attributes of the xsl:eek:utput
    element to specify them, see http://www.w3.org/TR/xslt for details.
    --
    Björn Höhrmann · mailto: · http://bjoern.hoehrmann.de
    Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
    68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
     
    Bjoern Hoehrmann, Sep 30, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. johkar

    XHTML - Doctype and output

    johkar, Oct 8, 2004, in forum: XML
    Replies:
    3
    Views:
    842
    johkar N
    Oct 9, 2004
  2. Tjerk Wolterink

    XSLT XHTML MIX DOCTYPE PROBLEM

    Tjerk Wolterink, Feb 11, 2005, in forum: XML
    Replies:
    13
    Views:
    1,150
    David Carlisle
    Feb 14, 2005
  3. Tatyana
    Replies:
    1
    Views:
    1,210
    Alan Silver
    Aug 8, 2006
  4. Rolf Welskes
    Replies:
    6
    Views:
    1,477
    Steven Cheng[MSFT]
    Aug 24, 2006
  5. Larry Lindstrom
    Replies:
    19
    Views:
    1,310
    Jonathan N. Little
    Jun 12, 2012
Loading...

Share This Page