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

problem with namespace ix XSLT to produce a valid XHTM

Subject: problem with namespace ix XSLT to produce a valid XHTMLB
From: Eduardo Moreno A <emoreno@xxxxxxxxxxxxx>
Date: Tue, 9 Aug 2005 17:00:25 -0400 (CLT)
firefox xslt namespace
Hi all..

I'm trying to construct a XLST stylesheet to transform a Atom 1.0 into a
valid Xhtml document.

In order to deal with the atom feed, I need to add the namespace xmlns:atom

---------------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:atom="http://www.w3.org/2005/Atom"



----------------------


and then I produce a XLST stylesheet:
----------------------
<xsl:template match="atom:feed">
  <html lang="es">
  <head>
.
.

------------------------

But when I generate the HTML, it is not validated by W3C validator
because it doesn't recognize the atom namespace:

-------------------------
Error  Line 3 column 54: there is no attribute "xmlns:atom".

...://www.w3.org/1999/xhtml" xmlns:atom="http://www.w3.org/2005/Atom"
lang="es"
-----------------------------

I try eliminating the xmlns:atom line in the XSLT, but the
<xsl:template> doesn't found the name="feed". I try changing by
name="feed*" and it works, but Firefox gives a Xpath problem.


What i'm missing?


Thanks.

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.