[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xmlns="" / XML to XHTML
Joris Gillis schrieb:
<xsl:template name="content_xhtml">
<ns1:h2 xmlns:ns1="http://www.w3.org/1999/xhtml">... </ns1:h2> <ns2:p xmlns:ns2="http://www.w3.org/1999/xhtml">... <ns2:br></ns2:br> ... </ns2:p> <ns3:p xmlns:ns3="http://www.w3.org/1999/xhtml">... <ns3:br></ns3:br> ... </ns3:p> et cetera So I think, his code does create the right elements but instead of putting the namespace to XHTML according to the rest of the output (I mean put an empty prefix there) the processor numerates each namespace. So how can I skip the namespace numeration to get browser legible XHTML? (The browser doesnB4t interpret nsXX as XHTMl though it has the right XML Namespace - Strange. Why they call it "extensible html" while it isnB4t really extensible? (Or at least browsers donB4t get it)
<xsl:template match="*"> <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml" > <xsl:apply-templates /> </xsl:element> </xsl:template> So the problem there was, that my inner elements didnB4t get the ns although the outer elements were created correct in the xhtml namespace. So I ask why does it not apply the namespace to the inner elements or what should I modify? Thanks in advance, Alexander
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|