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

AW: cannot transform to <html xmlns="http://www.w3.org

Subject: AW: cannot transform to <html xmlns="http://www.w3.org/1999/xhtml">
From: Costantino.Sertorio@xxxxxxxxxxxx
Date: Mon, 22 Jul 2002 08:51:02 +0200
xmlns html
Hi Phillip,
the problem with your stylesheet is that with the instruction:
xmlns:html="http://www.w3.org/1999/xhtml"
you are saying:
"all elements with an html prefix are associated with the namespace
identified with "http://www.w3.org/1999/xhtml".
What you want, instead, is to have all your elements (with no prefix)
associated to that namespace. So, you want a "default namespace".
You do this simply by omitting the prefix in the same instruction, as in:
xmlns="http://www.w3.org/1999/xhtml"

Full stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">
    <xsl:template match="/">
       <html>
       </html>
    </xsl:template>
</xsl:stylesheet>

Regards,
Costantino

-----Ursprüngliche Nachricht-----
Von: Phillip Rhodes [mailto:spamsucks@xxxxxxxxxxxxxxx]
Gesendet am: Sonntag, 21. Juli 2002 23:41
An: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Betreff:  cannot transform to <html
xmlns="http://www.w3.org/1999/xhtml">

Hi everyone,
I created an xsl file that will generate an xhtml file.  With the xhtml 
file, I run it through an xhtml to fo converter (another xsl 
file  http://www.antenna.co.jp/XML/downfree/Xhtml2fo.xsl).
My problem is that the xhtml to fo conversion does not work unless the html 
element appears as:
<html xmlns="http://www.w3.org/1999/xhtml">
</html>

Unfortunately, my xhtml file's html element(after transformation) is:
<html xmlns:html="http://www.w3.org/1999/xhtml">
</html>


I have the following stylesheet that does my transformation to xhtml:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:html="http://www.w3.org/1999/xhtml"
version="1.0">
    <xsl:template match="/">
       <html>
       </html>
    </xsl:template>
</xsl:stylesheet>

It generates the following:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:html="http://www.w3.org/1999/xhtml">
</html>

I want it to generate:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
</html>


Thanks for reading it all.  i sincerely appreciate it.
Phillip



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.