Web compatible slashes

ehumphreyehumphrey Posts: 6
edited March 22, 2007 9:34AM in SQL Doc Previous Versions
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?

Comments

  • Problem also described here.
  • 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.
  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hello,

    I have logged this issue as a software bug, so we will look into a fix for it, if applicable.
  • 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
  • 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.
    #!/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'
    
  • Thanks for that...
    David
  • Hi there,
    Just to let you know that SQL Doc 1.2 has been released and this should resolve this problem.
    Regards
    David
Sign In or Register to comment.