Web compatible slashes

Documents SQL Server 2000, 2005 and 2008 databases.


Moderators: David Atkinson, david connell, Charles Brown

Web compatible slashes

Postby ehumphrey » Fri Jan 26, 2007 10:40 pm

Using SQL Doc 1.1, generated html uses backslashes '\\' instead of '/' which are used in urls. Served with IIS, IE 7 has no problems with included elements; images, stylesheets, etc. Firefox on the other hand can still see the html pages, but stylesheets cannot be found because the '\\' becomes '%5C'. Other than that, I really like the generated docs.

Also, does anyone have a link to the chm compiler on MS's site?
ehumphrey
 
Posts: 5
Joined: Fri Jan 26, 2007 10:34 pm

Postby ehumphrey » Fri Jan 26, 2007 11:29 pm

Problem also described here.
ehumphrey
 
Posts: 5
Joined: Fri Jan 26, 2007 10:34 pm

Folder Capitalization

Postby ehumphrey » Mon Jan 29, 2007 4:37 pm

Also, folders seem to be capitalized in some references and lowercase in others. This makes it difficult if hosting documentation on a case-sensitive web server such as Apache. Preference would be for folders and links be all lowercase.
ehumphrey
 
Posts: 5
Joined: Fri Jan 26, 2007 10:34 pm

Postby Brian Donahue » Tue Jan 30, 2007 11:16 am

Hello,

I have logged this issue as a software bug, so we will look into a fix for it, if applicable.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Postby david connell » Tue Jan 30, 2007 2:58 pm

I think that the CHM complier can be located at the following link...

http://www.microsoft.com/downloads/details.aspx?familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en#filelist
Hope that helps
David Connell
david connell
 
Posts: 167
Joined: Mon Nov 21, 2005 10:12 am

Postby ehumphrey » Tue Jan 30, 2007 3:20 pm

Thank you. I also put together a *nix shell script to fix most of the backslash and capitalization issues. Some images still have capitalization issues.

Code: Select all
#!/bin/sh
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/\\.\\.\\\\/\\.\\.\\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/images[\\/\\\\]/Images\\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/programmability[\\/\\\\]/Programmability\\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/functions[\\/\\\\]/Functions\\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/stored procedures[\\/\\\\]/Stored Procedures\\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/scripts[\\/\\\\]/Scripts\\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/security[\\/\\\\]/Security\\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/roles[\\/\\\\]/Roles\\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/schemas[\\/\\\\]/Schemas\\//ig'
find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/users[\\/\\\\]/Users\\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/style[\\/\\\\]/Style\\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/tables[\\/\\\\]/Tables\\//ig'

find . -name '*.html' -or -name '*.js' -print0 | xargs -0 perl -pi -e 's/views[\\/\\\\]/Views\\//ig'
ehumphrey
 
Posts: 5
Joined: Fri Jan 26, 2007 10:34 pm

Postby david connell » Mon Feb 19, 2007 11:36 am

Thanks for that...
David
david connell
 
Posts: 167
Joined: Mon Nov 21, 2005 10:12 am

Postby david connell » Thu Mar 22, 2007 2:34 pm

Hi there,
Just to let you know that SQL Doc 1.2 has been released and this should resolve this problem.
Regards
David
david connell
 
Posts: 167
Joined: Mon Nov 21, 2005 10:12 am


Return to SQL Doc 1

Who is online

Users browsing this forum: No registered users and 0 guests