In my XML I have a fairly large amount of text for each artist cv. The text is already paragraphed but when I view it through my XSLT all the text is bunched up and not paragraphed anymore, also some symbols are replaced by blocks. I looked around and came across some other forums which mentioned this, though I'm not clear on how I go about displaying the text exactly as it is shown in my XML. Is there also a way to dispaly special characters?
My XML Code:
My XSLT code:
My XML Code:
Code:
<artistcv>Alexander Akilov's pictures are like fragments of eternity frozen in time and lovingly cleansed by their creator of the slightest element of commotion. These calm self-sufficient canvases are cut through by the rays of a wintry sun that are tender and warm like flashes of human emotion passing through a filter of spirituality. Akilov’s subjects live in their own slow motion reality, unaware of the frenetic flow of time and not reacting to the changes in life’s patterns. This harmony infused with light filled dreams is striking in its purity and complexity and it seems as if it has been superimposed over several parallel layers that are barely touching each other while simultaneously weaving a single stylistic and narrative fabric.
This new series of Akilov’s work on show in London is notable for its uncharacteristically cold palette and the depth of its penetration into the very essence of the Eastern esoteric. The subtle almost invisible gradations of cold greys and light blues create the impression of a fantastical mystery floating slowly through boundless time and space. The simple and unsophisticated subject matter is enveloped in a transparent silver haze that softens the sharp angles of reality leaving visible only those large and pure forms that can be easily perceived by the viewer.
Alexander Akilov’s exhibition will be exhibited by Solana Gallery at the Gallery on Cork Street, 28 Cork Street, London, and will open with a festive Preview Evening hosted by Solana Gallery and the artist himself on 24th of April starting at 6:30pm by invitation only. To receive an invitation, please contact us. The exhibition will be open to the public from 24-29 April from 11am-7pm daily.
</artistcv>
My XSLT code:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] version="1.0">
<xsl:template match="/">
<html>
<head>
<title>Solana Gallery - Contemporary russian art</title>
<link href="gallery.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="thumbnailviewer2.js" defer="defer">
/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library ([URL unfurl="true"]www.dynamicdrive.com)[/URL]
* Visit [URL unfurl="true"]http://www.dynamicDrive.com[/URL] for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
<!-- Do not edit IE conditional style below -->
<!--[if gte IE 5.5]>
<style type="text/css">
#motioncontainer {
width:expression(Math.min(this.offsetWidth, maxwidth)+'px');
}
</style>
<![endif]-->
<!-- End Conditional Style -->
<script type="text/javascript" src="motiongallery2.js">
/***********************************************
* CMotion Image Gallery- © Dynamic Drive DHTML code library ([URL unfurl="true"]www.dynamicdrive.com)[/URL]
* Visit [URL unfurl="true"]http://www.dynamicDrive.com[/URL] for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Modified by Jscheuer1 for autowidth and optional starting positions
***********************************************/
</script>
<script type="text/javascript" src="dom-drag.js"></script>
<script type="text/javascript" src="ypSimpleScrollC.js"></script>
<script type="text/javascript" src="scroller.js"></script>
<script type="text/javascript" src="iscroller.js"></script>
<script type="text/javascript" src="nav.js"></script>
</head>
<body>
<div class="logo"><a href="index.html"><img src="images/Small_Solana-Logo.png" alt="Solana Gallery Logo" /></a></div>
<ul id="nav">
<li><a href="index.html">Home</a></li>
<li><a href="artistlist.html">Artists</a></li>
<li><a>Exhibitions</a>
<ul>
<li><a>Recent</a></li>
<li><a>Future</a></li>
<li><a href="past.html">Past</a></li>
</ul>
</li>
<li><a href="contactus.html">Contact Us</a></li>
<li><a>About Us</a>
<ul>
<li><a href="whoweare.html">Who We Are</a></li>
<li><a href="artservices.html">Art Services</a></li>
<li><a href="clients.html">Clients</a></li>
<li><a href="news.html">News</a></li>
</ul>
</li>
</ul>
<!-- end the menuh div -->
<div class="container">
<h2><xsl:value-of select="artist/artistname"/></h2>
<div class="cv">
<div class="root" id="root0">
<div class="scrollContainer" id="scroll0Container">
<div class="scrollContent" id="scroll0Content">
[highlight]<p><xsl:value-of select="artist/artistcv"/></p>[/highlight]
</div>
</div>
</div>
</div>
<div class="imgthumb">
<div style="overflow:hidden;">
<div id="motioncontainer" style="width:110px; height:400px; overflow:hidden; position: relative;">
<div id="motiongallery" style="position:absolute; left:0; top:0;">
<xsl:for-each select="artist/art">
<a href="{img}" rel="enlargeimage::click" rev="bigimg" title="{title}" >
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="img" /> </xsl:attribute>
<xsl:attribute name="width">
<xsl:value-of select="110" /> </xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="80" /> </xsl:attribute>
</xsl:element>
</a>
</xsl:for-each>
</div>
</div>
</div>
</div>
<div class="imgholder">
<div id="bigimg">
<xsl:for-each select="artist">
<img src="{mainimg}" alt="Solana Gallery - Artist Images"/>
</xsl:for-each>
</div>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>