Subject: [xsl] Namespace Problem From: "Byomokesh Sahoo" <sahoo.byomokesh@xxxxxxxxx> Date: Wed, 16 Jul 2008 17:43:38 +0530 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Printing CDATA from feed , Joelle Tegwen | Thread | Re: [xsl] Namespace Problem, James A. Robinson |
Re: [xsl] Printing CDATA from feed , Joelle Tegwen | Date | Re: [xsl] Namespace Problem, James A. Robinson |
Month |