Style for xlink : xlink « CSS Style « XML






Style for xlink



File: Data.xml
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/css" href="Style.css" ?>
<page xmlns:xlink="http://www.w3.org/1999/xlink">

  <paragraph>
    <link xlink:type="simple" xlink:show="replace"
      xlink:actuate="onRequest"
      xlink:title="This link is like a link between pages in HTML"
      xlink:href="http://www.java2s.com">
      Click here
    </link>
    to be taken to a new page
  </paragraph>

</page>

File: Style.css

page {
  display:block;
  padding:10px;
  color:#000000; 
  background-color:#FFFFFF;
  border-style:solid; 
  border-width:2px; 
  border-color:#000000;
}

paragraph {
  display:block;
  font-family:arial, verdana, sans-serif; 
  font-size:20px;
  padding:20px;
  color:#000000; 
  background-color:#FFFFFF;
}

link {
  display:inline;
  color:#0000FF;
  text-decoration:underline;
}
  
  

 








Related examples in the same category

1.link style
2.Color for xlink