Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Pointing zu files in filesystem
Previous Previous
 
Next Next
New Post 10/27/2006 11:25 AM
User is offline Manfred Grill
5 posts
10th Ranked


Pointing zu files in filesystem 

Hi,
I've written a vbs script that reads filenames from a folder structure and their extended properties (author, title, subject, ...). This information is written to an XML file. Now by using the XML module and a XSL file this is displayed in our DNN intranet. The requirements are to give the users access to the files using UNC paths.
The problem I have is the support of special characters, eg. äöü in filenames. We can't avoid these characters. Using these characters in title, subject, etc. works fine. I tried several encoding settings. No solution so far.
The links that are generated follow the encoding settings in the XSL file. these links don't work in Windows if the filename contains a special character. Is there a way to do different encoding when building the file links? Any other ideas that can help?
Thanks
Manfred

 

 
New Post 10/27/2006 12:02 PM
User is offline Stefan Cullmann
1447 posts
6th Ranked








Re: Pointing zu files in filesystem 
Modified By Stefan Cullmann  on 10/30/2006 8:24:45 AM)

Hi Manfred,

As a German who has to live with Umlaute I was curious enough to look into this issue:

---file.xml----BEGIN--------
<file name="C:\ÄÖÜ.txt"
/>
---file.xml----END--------

---file-html.xsl----BEGIN--------
<?xml version="1.0" encoding="UTF-8"
?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<
xsl:output method="html"
/>
<
xsl:template match ="file"
>
   <
a
>
   <
xsl:attribute name ="href"
>
      <
xsl:value-of select ="@name" disable-output-escaping="yes"
/>
   </
xsl:attribute
>
   <
xsl:value-of select ="@name"
/>
   </
a
>
</
xsl:template
>
</
xsl:stylesheet
>
---file-html.xsl----END--------

Running this tranformation will result in this strange output: It is right inside the link caption but gets encoded inside the attribute.

---result-html.xml----BEGIN-------
<a href="C:\%C3%84%C3%96%C3%9C.txt">C:\ÄÖÜ.txt</a
>
---result-html.xml----END----------

So I googled for "xsl:attribute umlaut" and found the solution related to the output setting:

---file.xsl----BEGIN--------
<?xml version="1.0" encoding="UTF-8"
?>
<
xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<
xsl:output method="xml" omit-xml-declaration ="yes"
/>
<xsl:template match ="file">
   <
a
>
   <
xsl:attribute name ="href"
>
      <
xsl:value-of select ="@name" disable-output-escaping="yes"
/>
   </
xsl:attribute
>
   <
xsl:value-of select ="@name"
/>
   </
a
>
</
xsl:template
>
</xsl:stylesheet>
---file.xsl----END--------

---result.xml----BEGIN--------
<a href="ÄÖÜ.txt"
>ÄÖÜ.txt</a
>
---result.xml----END----------


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

 
New Post 10/30/2006 1:16 AM
User is offline Manfred Grill
5 posts
10th Ranked


Re: Pointing zu files in filesystem 

It works like a charm.

Hallo Stefan,
danke für die schnelle Antwort. Funktioniert einwandfrei.
Google hatte ich auch versucht, aber wohl mt der falschen Frage  ;-)

Manfred

 

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Pointing zu files in filesystem
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com
PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP