Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-06-2002, 03:05 AM   PM User | #1
DBD
New to the CF scene

 
Join Date: Oct 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
DBD is an unknown quantity at this point
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
Click image for larger version

Name:	block.gif
Views:	166
Size:	33.5 KB
ID:	429  
DBD is offline   Reply With Quote
Old 11-06-2002, 04:54 AM   PM User | #2
Evlich
New Coder

 
Join Date: Jun 2002
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Evlich is an unknown quantity at this point
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.
Evlich is offline   Reply With Quote
Old 11-06-2002, 05:35 AM   PM User | #3
DBD
New to the CF scene

 
Join Date: Oct 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
DBD is an unknown quantity at this point
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!
DBD is offline   Reply With Quote
Old 11-06-2002, 10:32 PM   PM User | #4
Evlich
New Coder

 
Join Date: Jun 2002
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Evlich is an unknown quantity at this point
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>.
Evlich is offline   Reply With Quote
Old 11-07-2002, 12:55 PM   PM User | #5
DBD
New to the CF scene

 
Join Date: Oct 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
DBD is an unknown quantity at this point
Thanks for your help!
DBD is offline   Reply With Quote
Old 11-07-2002, 01:24 PM   PM User | #6
Evlich
New Coder

 
Join Date: Jun 2002
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Evlich is an unknown quantity at this point
Did that help, or did you fix it on your own? I thought that you said that you couldn't change the DTD?
Evlich is offline   Reply With Quote
Old 11-07-2002, 02:02 PM   PM User | #7
DBD
New to the CF scene

 
Join Date: Oct 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
DBD is an unknown quantity at this point
No, I couldn't. I am going to talk to my writers.
DBD is offline   Reply With Quote
Old 11-07-2002, 11:59 PM   PM User | #8
Evlich
New Coder

 
Join Date: Jun 2002
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Evlich is an unknown quantity at this point
Ok, sounds good. Good luck with your project!
Evlich is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:06 PM.


Advertisement
Log in to turn off these ads.