CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 8/29/2003 1:53:29 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 13 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
wakabay
Asp.Net User
Treeview control Escaping Values in XSL8/29/2003 1:53:29 AM

0/0

Hello,

I've recently installed the treeview web control and have been able to take my xml file, use an xsl template and get the tree to work.

When creating the "NavigateURL" attribute, I'm attempting to pull a node from my xml file and escaping the node value.

for ex. my xml might contain

<link>Link Name</link>

I want some how for this to appear in my xml:

<tvns:treenode NavigateUrl="Link%20Name" Target="main">

How can I escape the node???

Thank you for your help

Wakabay
Bill2clone
Asp.Net User
Re: Treeview control Escaping Values in XSL8/29/2003 7:01:22 AM

0/0

<TREENODES>
<treenode text="Link Name" navigateurl="http://www.site.com/Link%20Name.aspx"/>
</TREENODES>
DNN skins Forum
Tressleworks modules
DNN & webhosting
IEWCtrls
wakabay
Asp.Net User
Re: Treeview control Escaping Values in XSL8/29/2003 7:15:20 PM

0/0

Hi Bill,

What I had meant was to escape it using xsl. This is currently what I have, which does a straight output of the "NameOfLink" Node:

<treenode>

<xsl:attribute name="NavigateURL">
http://www.site.com/<xsl:value-of select="NameOfLink" />.aspx
</xsl:attribute>

</treenode>

Is there any xsl function where I could say something along the lines of:

<xsl:value-of select="escape(NameOfLink)" />??

I found out that in xsl you could define a custom escape function:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:vbScript="http://www.site.com/xslt">

<msxsl:script language="vbScript" implements-prefix="vbScript">
function EscapeNode(node)
EscapeNode= escape(node.nextnode.text)
end function
</msxsl:script>

<xsl:template match="/">
<xsl:value-of select="vbScript:EscapeNode(NameOfLink)"/>
</xsl:template>

But this seems to error when loading this xsl into the treeView control. Any Ideas or workarounds??

Thank you,

Wakabay
lord02
Asp.Net User
Re: Treeview control Escaping Values in XSL10/3/2003 10:55:34 AM

0/0

isn't it possible to put the icon on each node by putting the code in the .xslt file, something like this ...

<!-- Create TreeNode element //-->
<xsl:element name="TreeNode">
<xsl:attribute name="Text">
<xsl:value-of select="categoryname" />
</xsl:attribute>

<!-- here I'm trying to display the icon for each folder-->
<xsl:attribute name="ImageUrl">
<xsl:value-of select="images/folder.ico" />
</xsl:attribute>

<xsl:attribute name="NodeData">
<xsl:value-of select="categoryid" />
</xsl:attribute>


<!-- Call possible child nodes to get recursive processing //-->
<xsl:choose>
<xsl:when test="./CATEGORIES">
<xsl:call-template name="callabletemplate">
<xsl:with-param name="categories" select="./CATEGORIES" />
</xsl:call-template>

</xsl:when>

</xsl:choose>

</xsl:element>

this doesn't seem to work ... any solutions ???

THIS **WORKS** if I put it in an .aspx file so the path is CORRECT:
TreeView1.Nodes[2].ImageUrl = "images/BIGFOLDR.ICO";

but I want to put the same icon on all the nodes .... thus I do it in the .xslt file !

please reply to [email protected]

thanx
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Visual C# 2005: How to Program Authors: Harvey M. Deitel, Paul J. Deitel, Pages: 1591, Published: 2006
Beginning Python Authors: Peter Norton, Alex Samuel, Dave Aitel, Eric Foster-Johnson, Leonard Richardson, Jason Diamond, Michael Roberts, Aleatha Parker, Pages: 649, Published: 2005

Web:
Treeview control Escaping Values in XSL - ASP.NET Forums Re: Treeview control Escaping Values in XSL. 08-29-2003, 3:01 AM ... Re: Treeview control Escaping Values in XSL. 08-29-2003, 3:15 PM ...
CodeProject: XML / XSL Discussion Boards. Free source code and ... Oct 28, 2008 ... " ...
SSDN - XML / XSL DOM Problem - Conferences, Close Tree View ... About whitespaces/newlines in the XSLT output to the ...
SSDN - Reading Hexadecimal values by using xslt - Show tree view, Topic ... ...
Re: [Sab] Variables and disable-output-escaping It breaks the tree view of the list. :) > > We can understand you problem quite fine. ... disable-output-escaping="yes"> include("
SSDN - Writing quot. marks with XSLT - WITHOUT escaping them - XML Discussion Forums,Writing quot. marks with XSLT - WITHOUT escaping them. ... Conferences, Close Tree View .... get a default value for xslt (1) ...
Serensoft FAQ - How to develop an Sakai/OSPortfolio XSL template Note that you might also benefit from trying tree-view.xsl (also attached) for a ... so far: disabling output escaping: if you expect to use SSDN - concatenate many fields to one field via xsl - Conferences, Close Tree View .... ...
[xsl] onLoad Collapsing of subtree. XML in Tree View ...
A Fond Farewell We decided to look at the tree view control. Tree views are a common and simple ...




Search This Site:










treeview with xml as datasource

adding node moving behavior to treeview

adding treenodes of treeview dynamically....

solution: simple server-side workaround for the tree control drawing bug on certain browser versions

treeview - xml file and interactive navagation

inheriting treeview control problem

iewebcontrols install help!

asp.net treeview control problem

yet another treeview not working problem..

tabstrip/multipage printing

win2003 and ie web contrls do not work!!

installation problem

expanding ie tree web control

treeview creating the dll

issue with ie tabstrip control

tabstrip client events?

iewebcontrols on server 2003 with .net v1.1

ie web controls: toolbar - how can i use buttonclick event?

unable to click on tabstrip

server controls configuration problem .

select node based on nodedata field

need help on treeview urgenttt... plz help me out...

how to select a node in treeview

treeview: frustrating problem

can't use ie web controls in vs.net

faq

treeview as a database filter

multipage - pageview and tabstrip question !!

tree view help.

basic information for tabstrip

  Privacy | Contact Us
All Times Are GMT