Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Adding extension elements to XSL using addObject

From: "Anthony Jones" <Ant@------------.--->
To: NULL
Date: 8/3/2006 10:03:00 AM


"SadSac" <SadSac@d...> wrote in message
news:ED326B14-664C-420A-99D6-B4C11A8BDB8C@m......
> Hi Martin,
>
> 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)."
>
> Aaron continues to describe how extension elements work, but provides no
> real implementation details. 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.
>

The article applies to the .NET implementation not MSXML.

put- in MSXML will suffer the same limitation as your functions it requires
some output.




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