Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 09:39 AM
news@celticbear.com
Guest
 
Posts: n/a
Default Use styles AND collapsable tree display?

Is there a way to write an XML doc so that you can still format the
text, bold and whatnot, and still have it display in a collapsable tree
format?

Here's what I'm using as a test:

<?xml version="1.0" encoding="iso8859-1"?>
<?xml-stylesheet type="text/css" href="xml-style.css"?>
<result>
<date>2005-05-19
<msgid >1
<entry>This is an item 1a.</entry>
<entry>This is an item 1b.</entry>
<entry>This is an item 1c.</entry>
</msgid>
<msgid>2
<entry>This is an item 2a.</entry>
<entry>This is an item 2b.</entry>
</msgid>
<msgid>5
<entry>This is an item 3a.</entry>
</msgid>
<msgid>8
<entry>This is an item 4a.</entry>
<entry>This is an item 4b.</entry>
</msgid>
</date>
<date>2005-05-18
<msgid>1
<entry>This is an item 1a.</entry>
<entry>This is an item 1b.</entry>
<entry>This is an item 1c.</entry>
</msgid>
</date>
</result>

And the stylesheet defined above has:

result { font-size: 10px; font-weight: normal; font-family:
tahoma,helvetica, arial, sans-serif; background: #fff; }
date { border: thin solid #eee; font-size: 12px; font-weight: bold;
font-family: tahoma,helvetica, arial, sans-serif; background: #eee; }
msgid { font-size: 10px; font-weight: bold; font-family:
tahoma,helvetica, arial, sans-serif; font: italic; background: #fff; }
entry { font-size: 10px; font-weight: normal; font-family:
tahoma,helvetica, arial, sans-serif; background: #fff; }

I like the tree form, so I can close and open items on the browser, but
I also want to be able to bold certain items and use colors, etc.

If there's just a name of a concept I need to look up, or something
like that, please let me know.
Thanks!
Liam

  #2  
Old July 20th, 2005, 09:39 AM
news@celticbear.com
Guest
 
Posts: n/a
Default Re: Use styles AND collapsable tree display?


news@celticbear.com wrote:[color=blue]
> Is there a way to write an XML doc so that you can still format the
> text, bold and whatnot, and still have it display in a collapsable[/color]
tree[color=blue]
> format?[/color]

Is there really no way?

  #3  
Old July 20th, 2005, 09:39 AM
Andy Dingley
Guest
 
Posts: n/a
Default Re: Use styles AND collapsable tree display?

On 20 May 2005 09:10:31 -0700, news@celticbear.com wrote:
[color=blue]
> On 19 May 2005 14:30:36 -0700, news@celticbear.com wrote:
>[color=green]
>> Is there a way to write an XML doc so that you can still format the
>> text, bold and whatnot, and still have it display in a collapsable[/color]
>tree[color=green]
>> format?[/color]
>
>Is there really no way?[/color]

Less than 24 hours ? No there's isn't a way for you to do this, at
least not any more.

You're not _paying_ for this service you know, don't complain about the
turnaround time.

 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles