XSLT to HTML transformation

Hi Experts
Using XSLT to make a HTML
The output is English-Spanish bilingual dictionary , and allows browse the dictionaries alphabetically.
Using the translational.xml source.
Attached is the XML
and What the Generated HTML should look like

Thanks alot

translation.xml
result.jpg
obtainrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Geert BormansInformation ArchitectCommented:
Are you a colleague of AussieSilver?
I am wondering why you are asking the exact same question that gradually was answered over the past week.

Here is the XSLT you need
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XSLT/Q_26103202.html#a32335216

and look at the accepted answer here
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XSLT/Q_26096929.html
for the css
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zc2Commented:
Give a try to the following code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
	<xsl:key name="A" match="translation" use="@initial"/>

	<xsl:template match="/Dictionary">
	  <div style="font-family: Arial;">
	    <h3>Browse by letter:</h3>
	    <xsl:for-each select="translation[generate-id(.) = generate-id(key('A', @initial))]">
	    	<a href="#{@initial}"><xsl:value-of select="@initial"/></a><xsl:text> </xsl:text>
	    </xsl:for-each>
		<xsl:for-each select="translation[generate-id(.) = generate-id(key('A', @initial))]">
			<a name="{@initial}"/>
			<h3><xsl:value-of select="@initial"/></h3>
			<table style="width: 100%;">
			  <xsl:for-each select="../translation[@initial = current()/@initial]">
			    <tr>
				  <td style="width: 50%; background-color: #FDFFCB;"><xsl:value-of select="search"/></td>
				  <td style="font-style: italic;">
				  	<xsl:for-each select="replace">
				  		<xsl:value-of select="."/> ;
       				</xsl:for-each>
				  </td>
				</tr>
			  </xsl:for-each>
			</table>
			
  		</xsl:for-each>
	  </div>
	</xsl:template>
</xsl:stylesheet>

Open in new window

0
obtainrAuthor Commented:
Thanks
0
Geert BormansInformation ArchitectCommented:
welcome
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.