|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
zorrinn,
This subject is off-topic but I just read a posting to NTbugtraq that answers your previous question. Everyone is all a-buzz about a new IE vulnerability called "URL obfuscation". One person wrote this which pretty much answers your question: "In short, if you type (don't click on the link) a URL like this in the address bar: http://aa.com?@www.delta.com The address bar will show http://www.delta.com/ but the web page will be that of American Airlines. This is a simple example, but with some clever encoding it can be quite convincing, especially because everything after the ? looks like it should be a query string. Also, making the URL longer than one line will force the user to copy/paste the URL into the browser window so that it will work properly." Kcmjr |
|
#17
|
|||
|
|||
|
Just wanted to add another twist on the same subject. After reading the posts above I tried to make it fit with what I needed which was slightly different.
In my case I have a partial URL, which needs to be completed via an attribute of an element. In my XML document I have: <heading> <htitle>Introduction</htitle> <speaker mnum="66">Marz</speaker> <speaker mnum="71">Broda</speaker> <speaker mnum="34">Norris</speaker> </heading> I have a link: http://www.somewhere.com/gotom.php?themnum= So in my XSL I need to take the mnum for the speaker and put it at the end of that link, so in my XSL I tried the following, which seems to work: <xsl:for-each select="speaker"> <b><xsl:value-of select="."/></b> - <a href="http://www.somewhere.com/gotom.php?themnum={attribute::mnum}"> <xsl:value-of select='attribute::mnum'/> </a> <br/> </xsl:for-each> Thanks to the posters above for the tips on using {URL}. Cul |
|
#18
|
|||
|
|||
|
a bit off topic (again)
This is, and is not, off topic so bear with me. After using the code samples previously posted I created a batch file to convert my Internet Explorer favorites to XML. I thought I'd share it in the event someone could use it.
Rather than posting the code, which will get clobbered by line wrapping, I see that I can attach it, so I will. This batch should be run from an Windows NT class OS (NT4, Win2k, XP). It will convert the IE favorites list for the current user or any folder with ".URL" files to an XML formatted output file. It's internally documented so I won't go into detail here. The files renamed .TXT so it doesn't get washed out by any filtering. Feel free to email me for a copy if the file gets lost. Thanks Kcmjr |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XML+XSL - creating tables with entries being hyperlinks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|