[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Namespace Problem

Subject: Namespace Problem
From: "Byomokesh Sahoo" <sahoo.byomokesh@xxxxxxxxx>
Date: Wed, 16 Jul 2008 17:43:38 +0530
 Namespace Problem
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.