xml - How to style HTML compatible tags in XSL definition using extenal CSS? -


I'm following W3Schools to learn the XSLT. In-in-one style is done here. How do I add an external (CSS) style sheet for the HTML analog tag style?

As long as XSLT produces normal HTML in the browser, this should do the trick:

HTML:

  & lt; Html & gt; & Lt; Body & gt; & Lt; H2 & gt; My CD Collection & lt; / H2 & gt; & Lt; Table class = "mytable" & gt; & Lt; TR & gt; & Lt; Th & gt; Title & lt; / Th & gt; ... & lt; / Table & gt;  

CSS:

 . Mytable {limit: 1px solid # 000; }. Mytable tr {background-color: # 9acd32; }. Mytable th {Styles}  

Edit:

It seems that you need to declare them in a different way, this Look at the link, it has a very good explanation:

Hope that helps :)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -