Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] xsl:element will not create an output element, in any context

From: N David Brown <orieldave@-------------->
To:
Date: 6/1/2007 11:40:00 AM
One last thing guys, if you're willing to help:



Now using normal XHTML elements in the XSL file, eg.



   <ul><xsl:..../></ul>



works fine.



Similarly, using:



   <xsl:element name="ul">
   ...
   </xsl:element>

works great.



However, using elements:



   <xsl:element name="xhtml:ul">
   ...
   </xsl:element>

Produces '<xhtml:ul>...</xhtml:ul>' in the output XML.



I've changed the namespace to '../1999/xhtml' (lower case) now, so 
that's ok. Why doesn't it work when using the namespace in the QName? 
*puzzled*



Many thanks.



- Dave




David Carlisle wrote:
Why is the namespace not correct? 
    
because it's got the wrong characters in it.
the xhtml namespace is
http://www.w3.org/1999/xhtml
and you declared (but didn't use)
http://www.w3.org/1999/XHTML
which is a different namespace.

  
I just tested the link...

    
Whether a server serves anything from a URI has no relationship to
whether that URI is usable as a namespace for a particular vocabulary.
Thw w3c server  rewrites the URI to lowercase if it would otherwise
fail a GET request which is a convenience if you are trying to get web
pages, but irrelevant to namespace processing which is case sensitive.

David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is

powered by MessageLabs. 
________________________________________________________________________


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent