Altova Mailing List Archives


[xsl] Namespace Problem

From: "Byomokesh Sahoo" <sahoo.byomokesh@--------->
To:
Date: 7/16/2008 12:14:00 PM
Hi All,

I am doing xsl for view DocBook XML (Docbook 5 DTD).

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book SYSTEM "docbook-5.0\dtd\docbook.dtd">
<?xml-stylesheet type="text/xsl" href="sample1.xsl"?>
<book xmlns="http://docbook.org/ns/docbook">
<title>Endless Universe</title>
<subtitle>Beyond the Big Bang</subtitle>
........
</book>

My XSL

<xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://www.w3.org/1999/xhtml"
                xmlns:ng="http://docbook.org/docbook-ng"
                xmlns:db="http://docbook.org/ns/docbook"
                exclude-result-prefixes="db ng">
  <xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
  <xsl:template match="book">
    <html>
      <head>
        <title>
          <xsl:value-of select="title"/>
        </title>
      </head>
      <body>
        <xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="book/title">
    <h1 align="center"><font color="red"><xsl:apply-templates/></font></h1>
  </xsl:template>
</xsl:stylesheet>

When i see view in IE8 (beta) its showing all are one line is mixing
in one paragraph. I think i m missing some namespace. Thats why i
could not get it.

Anyone please advice me.

Thanks
Byomokesh Sahoo

Om Trayambakam Yajaamahe Sugandhim Pushtivardhanam
Urvaarukamiva Bandhanan Mrytor Muksheeya Mamritaat

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.