in reply to Can you style XMLwith CSS to display tag attributes?

You can add a stylesheet directive to an xml file, see http://www.w3.org/TR/xml-stylesheet/ or google around for some tutorials.

It works for me when opening the file in firefox, the top of your xml then looks like this :-

<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/css" href="view.css"?> ...

Replies are listed 'Best First'.
Re^2: Can you style XMLwith CSS to display tag attributes?
by BrowserUk (Patriarch) on Jun 11, 2015 at 09:27 UTC

    That just dumps the content (minus tags including attributes) to the screen as a big unstructured mess? Not at all what I sought.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

      Well, you can get very creative with your css definition, but if that's not doing it for you then there's always XSLT -- good luck with that :)