Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSLT 2.0 under .NET

From: "Susan Harris" <susanbharris1972@-----.--->
To: NULL
Date: 10/2/2008 4:03:00 PM

Thanks Martin. I'm trying to add this attribute (see below), but having 
problems (e.g. XMLSpy doesn't like it where I've put it). Do you know where 
I would place this attribute?

<xsl:stylesheet version="2.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:n="http://www.company.info/schemas" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" 
xmlns:fn="http://www.w3.org/2005/xpath-functions" 
exclude-result-prefixes="fn n vmf xs xsi xsl">
 <xsl:attribute name="saxon:allow-all-built-in-types">yes</xsl:attribute>
 <xsl:template name="vmf:inputtoresult">
  <xsl:param name="input" select="()"/>
  <xsl:choose>
   <xsl:when test="$input='A'">



"Martin Honnen" <mahotrash@y...> wrote in message 
news:Od2p5IJJJHA.716@T......
> Susan Harris wrote:
>> Sorry, I meant it was failing on xs:token, xs:positiveInteger, etc. I 
>> misread the error messages. Presumably the use of those requires the 
>> engine to be schema aware?
>
> http://www.w3.org/TR/xslt20/#built-in-types lists the types a basic 
> processor supports. However with Saxon 9 you can set 
> http://www.saxonica.com/documentation/extensions/attributes/allowallbuiltintypes.html 
> to allow those types nevertheless with the basic processor.
>
> -- 
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.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