Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Adding extension elements to XSL using addObject

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 8/2/2006 3:06:00 PM



SadSac wrote:


> I would also like to point you to an article written by Aaron Skonnard for 
> MSDN magazine in March 2002. 
> 
> See: http://msdn.microsoft.com/msdnmag/issues/02/03/xml/
> 
> "The XSLT 1.0 specification defines two types of extensions: extension 
> elements and extension functions. Both types of extensions provide additional 
> functionality to the standard language and can be used like any other XSLT 
> 1.0 element (these include xsl:transform, xsl:template, xsl:value-of, and so 
> on) or XPath 1.0/XSLT 1.0 function (such as string, substring-before, sum, 
> document, and so forth)."

Well I have not said that XSLT specification does not allow for 
extension elements, only that MSXML does not allow you to implement your 
own.
And that article does not in any way claim or show otherwise. Instead it 
shows in more details what we already talked about, extension functions 
implemented with msxsl:script and extension object passed in with addObject.



> Curiously he also describes a mechanism for 
> getting and setting properties.
> 
> "Properties are accessed in XSLT by prefixing the property name with either 
> get- or put- followed by parentheses. eg. get-age(), put-age(33)"
> 
> I got the property get- working fine, but I have not been able to get the 
> property put- funtion right. At least one other article talks of set- rather 
> than put- and Microsoft documentation only ever mentions the get- method.

I have not used that put stuff so I currently don't know whether it 
works with some versions of MSXML. Might try later.


-- 

	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