Mega Code Archive

 
Categories / XML / CSS Style
 

Use attr to get the value of attribute

File: Data.xml <?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/css" href="Style.css" ?> <purchaseOrder orderID="x1129001">     asdf </purchaseOrder> File: Style.css purchaseOrder:before {   font-family:arial, verdana, sans-serif;   font-size:28px;    font-weight:bold;   content:"Purchase Order Number: " attr(orderID); }