Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


URL problems with xml

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,57761
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> URL problems with xml
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 URL problems with xml - 3/11/2008 4:42:12 AM   
  s8n_james

 

Posts: 1
Score: 0
Joined: 3/11/2008
Status: offline
  I've recently been getting to grips with xsl style sheets as part of a new job, but I am having a problem with one aspect of it.

Basically we're running a Network CRM in .aspx, with .xsl style sheets to pull information out of the database and display it on the page. Under the Network, copies of the same CRM run as child networks, in the url format: 

http://*parenturl*/*childnetworkname*

I've been scripting relative links within the xsl's in the following format:

<a>
             <xsl:attribute name="href">
               http://<xsl:value-of select="@NetworkDomain"/>/events/article/default.aspx?objid=<xsl:value-of select="@ObjectID"/>
             </xsl:attribute>
             <xsl:value-of select="@ObjectTitle"/>
           </a>

Where *NetworkDomain* is the root url of the instance of the network an object is created in. However, there is some conflict of some of my pages. What I'd like to do is to replace the
<xsl:value-of select="@NetworkDomain"/> part of the link with a reference to the the variable *fragnetworkurl* which is the root url for each instance of the network as stored ion the header for each page. I nearly got it earlier to day by replacing <xsl:value-of select="@NetworkDomain"/> with <xsl:value-of select="//fragnetworkurl" /> but that crashed the whole CRM big time. I'm sure I'm making a hell of a n00b of a mistake, but any help anyone could give would be greatly appreciated.
 
 
Post #: 1
 
 RE: URL problems with xml - 3/11/2008 5:33:35 AM   
  TNO


Posts: 974
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
I suggest making a dummy xsl sheet to show you exactly what the XSL is generating. You could also use firefox with the webdeveloper toolbar and go to the View Generated Source to see what your stylesheet is generating for an address.

_____________________________

Consolidated Script Component: Now in Testing stage!

A universe of complexity...

(in reply to s8n_james)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> URL problems with xml Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts