SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help: convert level 7+ headings to level 6.

    Hi,

    Like in the topic: I was wondering if you know a way to do it nice and clean.

    If you can help me, I will cast a spell of prosperity on you!

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,712
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Find/Replace in your text editor?

    Find h7 and replace with h6
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's my situation:

    1 I got a bunch of XMLs.
    2. I convert to HTML using a bunch of XSLs I know nothing about.
    3. My deep-level headings are not formatted to h7, h8, etc. but to <p></p>.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,712
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    You may need then to approach some XSL experts, which you're not likely to find here in the JavaScript forum.

    The following article may help:
    http://www.sitepoint.com/article/transform-php-xslt/

    But the best help, will be from the people in the XML and Web Services forum, who are best positioned to provide assistance for your issue.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •