Groups > Browsers > Opera Browser general discussion > Re: Making xml text visible with black background color scheme




Making xml text visible with black background color scheme

Making xml text visible with black background color scheme
Tue, 8 Apr 2008 07:32:03 +0000
At http://bulk.resource.org/courts.gov/states/Alaska/sp-
6150_data.xml is small xml file, less than 1K.  It looks like a 
legal xml system of some sort.  I didn't see any thing in it 
further identifying the tags, although the tags themselves are 
self evident.

When I load the page, the text is hardcoded black and invisible 
as black text on a black background color seheme with both author 
style sheet or my style sheet.

The text becomes visible with the Opera high contrast and 
nostalgia styles.

It looks like these styles contain something that works on the 
tags in the xml file to make them visible.

Where can I find out what styles in the Opera style sheets work 
on these xml tabs to incorporate them in my own style sheet to 
make the text visible.

Also, Opera presents just the text of the xml file without the 
tags.  It is unintelligible.

Is there any way to get Opera to display simply the xml file 
itself, including the tags.  With the tags the file is easy to 
Post Reply
Re: Making xml text visible with black background color scheme
Tue, 08 Apr 2008 12:50:02 +020
Op Tue, 08 Apr 2008 09:32:03 +0200 schreef Henry <henry@bar.com>:

> At http://bulk.resource.org/courts.gov/states/Alaska/sp-
> 6150_data.xml is small xml file, less than 1K.  It looks like a
> legal xml system of some sort.  I didn't see any thing in it
> further identifying the tags, although the tags themselves are
> self evident.
>
> When I load the page, the text is hardcoded black and invisible
> as black text on a black background color seheme with both author
> style sheet or my style sheet.
>
> The text becomes visible with the Opera high contrast and
> nostalgia styles.
>
> It looks like these styles contain something that works on the
> tags in the xml file to make them visible.
>
> Where can I find out what styles in the Opera style sheets work
> on these xml tabs to incorporate them in my own style sheet to
> make the text visible.
>
> Also, Opera presents just the text of the xml file without the
> tags.  It is unintelligible.
>
> Is there any way to get Opera to display simply the xml file
> itself, including the tags.  With the tags the file is easy to
> understand.

Yes, by using a userscript. See here for more info:
   http://userjs.org/scripts/general/developer_tools/xml-tree

-- 

                                                    Rijk van Geijtenbeek
                                  Opera Software ASA, Documentation & QA
                                   Tweak: http://my.opera.com/Rijk/blog/

"The most common way to get usability wrong is to listen to what users
Post Reply
Re: Making xml text visible with black background color scheme
Wed, 9 Apr 2008 00:45:29 +0000
"Rijk van Geijtenbeek" <rijk@opera-dot-com.invalid> wrote in
news:op.t9agdokmqemfxl@rijk-01.lan: 

> Op Tue, 08 Apr 2008 09:32:03 +0200 schreef Henry
> <henry@bar.com>: 
> 
>> At http://bulk.resource.org/courts.gov/states/Alaska/sp-
>> 6150_data.xml is small xml file, less than 1K.  It looks
>> like a legal xml system of some sort.  I didn't see any
>> thing in it further identifying the tags, although the
>> tags themselves are self evident.
>>
>> When I load the page, the text is hardcoded black and
>> invisible as black text on a black background color seheme
>> with both author style sheet or my style sheet.
>>
>> The text becomes visible with the Opera high contrast and
>> nostalgia styles.
>>
>> It looks like these styles contain something that works on
>> the tags in the xml file to make them visible.
>>
>> Where can I find out what styles in the Opera style sheets
>> work on these xml tabs to incorporate them in my own style
>> sheet to make the text visible.
>>
>> Also, Opera presents just the text of the xml file without
>> the tags.  It is unintelligible.
>>
>> Is there any way to get Opera to display simply the xml
>> file itself, including the tags.  With the tags the file
>> is easy to understand.
> 
> Yes, by using a userscript. See here for more info:
>    http://userjs.org/scripts/general/developer_tools/xml-tre
>    e 
> 


Note.

I discovered a later version of the script.

Clicking on the Install as: Opera User JS link in the page linked 
above I got version 1.1.1 of the script.

However, I discovered at 
http://www.howtocreate.co.uk/operaStuff/userjs/xmltree.user.js a 
version 1.2.1.


Quesion.

I installed the script and discovered the following.

With use author style unchecked in author mode,  the xml tree 
appears inside a small box, maybe 150 pixels, with scroll bars. 
The box is non sizeable.

The page displays with the message "This XML file does not appear 
to have any style information associated with it. "

When I turn on use author style sheet in author mode, the small 
box disappears and I see the tree in normal full screen mode.

I have noted this before that sometimes pages appear in very 
small boxes with scroll bars. I remember noting the problem with 
reading rss feeds.

What is happening here?  It looks like there is no author style 
sheet and the message about no style information is correct.  Why 
then does it make a difference whether I have use author style 
sheet in author mode checked?

Post Reply
Re: Making xml text visible with black background color scheme
Wed, 09 Apr 2008 16:36:12 +020
Op Wed, 09 Apr 2008 02:45:29 +0200 schreef Henry <Henry@bar.com>:

>
> What is happening here?  It looks like there is no author style
> sheet and the message about no style information is correct.  Why
> then does it make a difference whether I have use author style
> sheet in author mode checked?

The script is adding author styling in this case. If you disable author  
styling, only user styles will be applied (if enabled), and that does not  
include such things as styles inserted by script. Without styling, IFRAME  
and OBJECT boxes default to using a small 150*150x frame.

-- 

                                                    Rijk van Geijtenbeek
                                  Opera Software ASA, Documentation & QA
                                   Tweak: http://my.opera.com/Rijk/blog/

"The most common way to get usability wrong is to listen to what users
Post Reply
about | contact