Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: 'namespaceuri()' is an unknown XSLT function

From: "Oleg Tkachenko [MVP]" <some@----.--->
To: NULL
Date: 1/5/2006 11:44:00 AM
IvarZap wrote:

>  <xsl:template match="text() | 
> *[namespace-uri()='http://www.w3.org/1999/xhtml']" mode="RichText">

That looks like a bug in XslTransform. It doesn't like namespace-uri() 
in match attribute somehow. In fact you can use instead

  <xsl:template match="text()  | xhtml:*" mode="RichText">

but you said it's generated stylesheet so that's not a solution.
Then consider moving to .NET 2.0. XslCompiledTransform in .NET 2.0 is 
much better XSLT engine.
Alternatively you can modify stylesheet after it's generated or before 
executing it to workaround this particular bug. E.g. load it into 
XmlDocument and make above modification.

-- 
Oleg Tkachenko [XML MVP, MCAD]
http://www.XmlLab.Net | http://www.XLinq.Net | http://blog.tkachenko.com


transparent
Print
Mail
Like It
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