473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Properties and XSL Extensions

How do I set a property to an xsl extension object?

Dim oExt As XSLExt = New XSLExt()Xml1.TransformArgumentList = New
Xsl.XsltArgumentList()Xml1.TransformArgumentList.A ddExtensionObject("urn:ext
", oExt)
Getting:
<xsl:value-of select="ext:get_myProp()" />

Setting:

??

----

class myExtObj

private m_val as string

public property myProp () as string
get
return m_val
end get
set (byval value as string)
m_val = value
end set

end class

----

Nov 12 '05 #1
2 1193
msnews.microsoft.com wrote:
How do I set a property to an xsl extension object?


AFAIK only methods are supported.
--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com
Nov 12 '05 #2
You can set a property of an extension object using "set_MyProperty", but it
is not a recommended approach. I demo the approach and explain why it is
not recommended on my blog [1].

[1] http://blogs.xmladvice.com/kaevans/a...02/08/469.aspx

Kirk Allen Evans
Lead Author, "XML And ASP.NET", New Riders Publishing
MVP, XMLInsiders, ASPInsider
blogs.xmladvice.com/kaevans

"msnews.microsoft.com" <pd*****@rolloversystems.com> wrote in message
news:uw**************@tk2msftngp13.phx.gbl...
How do I set a property to an xsl extension object?

Dim oExt As XSLExt = New XSLExt()Xml1.TransformArgumentList = New
Xsl.XsltArgumentList()Xml1.TransformArgumentList.A ddExtensionObject("urn:ext ", oExt)
Getting:
<xsl:value-of select="ext:get_myProp()" />

Setting:

??

----

class myExtObj

private m_val as string

public property myProp () as string
get
return m_val
end get
set (byval value as string)
m_val = value
end set

end class

----

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: JimO | last post by:
I'm a newbie at this and I can't seem to find a list properties names to change styles on the fly. So far I've been lucky and managed to guess the names such as BodyElement.style.marginTop = 0;...
0
by: jim z | last post by:
My goal is to write a program in C# that will take the Artist and Title of an MP3 file and change the name of the file to a concatenated combination of the two. In order to do this, I am trying to...
2
by: ironwall22z | last post by:
My goal is to write a program in C# that will take the Artist and Title of an MP3 file and change the name of the file to a concatenated combination of the two. In order to do this, I am trying to...
1
by: lester | last post by:
I'm using a C++ dll and need to allow unsafe code because the dll function takes char *. I am using Visual Studio.NET 2002. Everything I've seen says to go to the project properties page, then the...
8
by: Roy Chastain | last post by:
I have tried this on a couple of occasions and each time the resulting program goes into a loop and eventually gets a stack overflow. public __gc BaseClass { __property virtual int get_IntValue...
4
by: XNoDE | last post by:
Hi all, VS.Net 2002. Is there a way to set default properties for controls in the Toolbox? There a some properties that I implement as standard in my apps and would like to get around...
1
by: info | last post by:
I have a 'no properties error' (from Firefox's 1.5 javascript console) on: var position_pt = options.search(";") in the following segment of code. The strange thing is that I'm referencing the...
2
by: Nathan Sokalski | last post by:
I have a custom control with properties named MinValue, MaxValue, and Value (all of which I have assigned a DefaultValue design-time attribute). The Value property must be between (or equal to) the...
2
by: VingeFaan | last post by:
I have a class with many properties. I want to detect access to one of these properties to run a common code each time on of them are accessed. Can this be done? An alternative is to write the...
26
by: Max2006 | last post by:
Hi, C# 3.0 extension methods become useful for us. Do we have the similar concept for extension properties? Thank you, Max
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.