How to get XML Element name in CSS -


I have an XML document and want to style it with CSS, how do I ensure that each element values ​​element name With : first.

For example

   elem> Element & lt; / ELEM & gt;   

elem: element when CSS is implemented.

I am currently trying to write in the CSS file

  elem: first {content: attr (name) ":";}  < / Pre> 

But attr (name) does not seem to work, is it possible to get the XML element name in the style inside the CSS file?

I think this is not possible. Attribute 'attribute' as the attribute name, not the tag name. To rewrite the tag data in some data-* attribute, you should write some JS and then the ATR CSS function can start working.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -