Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: XSL question

  1. #1
    DBD
    DBD is offline
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question XSL question

    I need to reformat the paragraph into the block format.
    How can I do it besides table tags?Please see attachment.
    Step numbers have their tags and the paragraphs have their tags around.
    Attached Thumbnails Attached Thumbnails XSL question-block.gif  

  • #2
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think that the block style is the default for an ordered list. So if you can transform the block into an ordered list then you should be fine.

  • #3
    DBD
    DBD is offline
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XSL question

    The problem is that my xml writers have already made such a code that I cannot use <list> tags. For example,
    <STEP1 >
    <LABEL >a.</LABEL>
    <PARA >
    Let's go to the Zoo.
    Let's go to the Zoo.</PARA>
    </STEP1>
    <STEP1 >
    <LABEL >b.</LABEL>
    <PARA >
    Let's go to the Zoo.
    Let's go to the Zoo.</PARA>
    </STEP1>
    So, if I make <STEP1> as a list item, <PARA> still will not be a block. If I make <PARA> a <div> block text, for example, It will be separated from <LABEL>, which shoud stay on the same line.
    <PARA> should be just indented. I used style:"text-indent: -3em"
    it doesn't work.
    My brain is cracked! I cannot think about anything else!Help!

  • #4
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you post a full DTD? I am wondering if this list is prosibly in main element. Something like:
    Code:
    <steps type="a">
     <step>Do This</step>
     <step>Do That</step>
     <step>You are Done!</step>
    </steps>
    In which you could translate the <steps> to a list and then apply templates for the <step> to be translated into a <li>.

  • #5
    DBD
    DBD is offline
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your help!

  • #6
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did that help, or did you fix it on your own? I thought that you said that you couldn't change the DTD?

  • #7
    DBD
    DBD is offline
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, I couldn't. I am going to talk to my writers.

  • #8
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, sounds good. Good luck with your project!


  •  

    Posting Permissions

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