<head>
<style type="text/css">
<!--
/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}
div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}
div.attach-table div.attach-row {
clear: both;
}
div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}
p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}
div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}
div.attach-table div.attach-row div div span {
font-weight: normal;
}
div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<style type="text/css">
<!--
#ygrp-mkp {
border: 1px solid #d8d8d8;
font-family: Arial;
margin: 10px 0;
padding: 0 10px;
}
#ygrp-mkp hr {
border: 1px solid #d8d8d8;
}
#ygrp-mkp #hd {
color: #628c2a;
font-size: 85%;
font-weight: 700;
line-height: 122%;
margin: 10px 0;
}
#ygrp-mkp #ads {
margin-bottom: 10px;
}
#ygrp-mkp .ad {
padding: 0 0;
}
#ygrp-mkp .ad p {
margin: 0;
}
#ygrp-mkp .ad a {
color: #0000ff;
text-decoration: none;
}
-->
</style>
</head>
<body>
<!-- |**|begin egp html banner|**| -->
<br><br>
<!-- |**|end egp html banner|**| -->
Loig,<br><pre id="line11"><br>In the pages I pointed you to there are the following scripts that use HTML5 audio calls:<br><br>The script is at the page level, and then each item refers to the script:<br><br><<span class="start-tag">script</span>>
function EvalSound(soundobj) {
var thissound=document.getElementById(soundobj);
thissound.play();
}
</<span class="end-tag">script</span>></pre><pre id="line31"><<span class="start-tag">form</span>>
<<span class="start-tag">p</span><span class="attribute-name"> class</span>=<span class="attribute-value">"lpLexEntryPara"</span>><<span class="start-tag">audio</span><span class="attribute-name"> id</span>=<span class="attribute-value">"audio8" </span><span class="attribute-name">src</span><span>=" </span><a href="view-source:http://paradisec.org.au/SELexicon/audio/aal.wav">../audio/aal.wav</a><span>"</span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">audio</span><span class="attribute-name"> id</span>=<span class="attribute-value">"audio8" </span><span class="attribute-name">src</span><span>=" </span><a href="view-source:http://paradisec.org.au/SELexicon/audio/aal.mp3">../audio/aal.mp3</a><span>"</span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">form</span>>
<<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"button" </span><span class="attribute-name">value</span>=<span class="attribute-value">"aal" </span><span class="attribute-name">onClick</span>=<span class="attribute-value">"EvalSound('audio8')"</span>>
</<span class="end-tag">form</span>> </<span class="end-tag">a</span>> <<span class="start-tag">span</span><span class="attribute-name"> id</span>=<span class="attribute-value">"e8" </span><span class="attribute-name">class</span>=<span class="attribute-value">"lpLexEntryName"</span>>aal</<span class="end-tag">span</span>><br>
<<span class="start-tag">span</span><span class="attribute-name"> class</span>=<span class="attribute-value">"lpSpAfterEntryName"</span>>&<span class="entity">nbsp;</span>&<span class="entity">nbsp;</span>&<span class="entity">nbsp;</span></<span class="end-tag">span</span>><br>
</pre>I use both an mp3 and wav version to account for different browsers. You could equally include WebM or H.264.<br><br>Nick<br><br><br><div class="gmail_quote">On 19 May 2011 19:24, pwyll4 <span dir="ltr"><<a href="mailto:pwyll4@yahoo.fr">pwyll4@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="background-color:#fff">
<span> </span>
<div>
<div>
<div>
<p><br>
<br>
Hello,<br>
<br>
So far I've written this on my XML document : <br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<?xml-stylesheet type="text/xsl" href="xslt_test.xsl"?><br>
<database><br>
<br>
<sf>../Soundfile_3.mp3</sf><br>
<sf>../Soundfile_4.mp3</sf><br>
<sf>../Soundfile_5.mp3</sf><br>
<sf>../Soundfile_6.mp3</sf><br>
<br>
</database><br>
<br>
and this on my XSL Stylesheet : <br>
<br>
<xsl:template match="sf"><br>
<br>
<img src="../sound-icon.png" onclick="javascript:BatmoAudioPop('<xsl:value-of select="."/>',this.href,'1')"/><br>
<br>
</xsl:template><br>
<br>
... but it doesn't work.<br>
Does someone know what should be corrected or modified?<br>
<br>
Thanks a lot in advance.<br>
<br>
Loig</p><div><div></div><div class="h5"><br>
<br>
--- In <a href="mailto:lexicographylist%40yahoogroups.com" target="_blank">lexicographylist@yahoogroups.com</a>, "pwyll4" <pwyll4@...> wrote:<br>
><br>
> Hi,<br>
> <br>
> Thanks for your answers. Unfortunately, Lexique Pro is too rigid for me, especially concerning the final layout (I don't want to change everything "by hand" in the final html and paper versions), that's why I prefer Toolbox, that allows me to do whatever I want.<br>
> <br>
> Now, Nick, I didn't find the javascript you mentioned, I couldn't find sound files in your dictionary... Where is it?<br>
> I just need to find one or two lines of XSL code so that clicking on my icons plays the corresponding soundfiles... so far I could't find it on google.<br>
> <br>
> Thanks<br>
> <br>
> L.<br>
> <br>
> <br>
> <br>
> --- In <a href="mailto:lexicographylist%40yahoogroups.com" target="_blank">lexicographylist@yahoogroups.com</a>, Nick Thieberger <thien@> wrote:<br>
> ><br>
> > Hi,<br>
> > <br>
> > While the XML export from Toolbox is great, if you want to have an html<br>
> > representation then I agree that lexiquepro does a very good job, and<br>
> > embedding sound with HTM5 has become very easy.<br>
> > <br>
> > My dictionary is here:<br>
> > <a href="http://paradisec.org.au/SELexicon/index-english/main.htm" target="_blank">http://paradisec.org.au/SELexicon/index-english/main.htm</a><br>
> > <br>
> > You can see the little bit of javascript that allows the sound to be called<br>
> > and you can trigger it from an image or button or whatever you want. You<br>
> > could also include this via XSLT to HTML from the Toolbox XML output I<br>
> > suppose.<br>
> > <br>
> > Nick<br>
> > <br>
> > On 18 May 2011 05:54, pwyll4 <pwyll4@> wrote:<br>
> > <br>
> > ><br>
> > ><br>
> > > Hello,<br>
> > ><br>
> > > I'd like to export my Toolbox dictionary in XML. There'll be soundfiles.<br>
> > ><br>
> > > In my XML file, I have the following :<br>
> > ><br>
> > > <sf>../soundfile.mp3</sf><br>
> > ><br>
> > > (several times with different sound files everytime),<br>
> > > and I would like that with my stylesheet, on the final web page, you see a<br>
> > > small picture (in png or jpg format - always the same picture of a<br>
> > > loudspeaker), and that when you click on this picture, the corresponding<br>
> > > soundfile is played.<br>
> > ><br>
> > > What should I write in my XSL stylesheet so that it happens?<br>
> > > So far I've not found the solution anywhere.<br>
> > ><br>
> > > Thanks in advance for your help!<br>
> > ><br>
> > > <br>
> > ><br>
> ><br>
><br>
<br>
</div></div><p></p>
</div>
<div style="color:#fff;min-height:0"></div>
</div>
</blockquote></div><br>
<!-- |**|begin egp html banner|**| -->
<br>
<br>
<!-- |**|end egp html banner|**| -->
<div width="1" style="color: white; clear: both;"/>__._,_.___</div>
<!-- Start Recommendations -->
<!-- End Recommendations -->
<!-- |**|begin egp html banner|**| -->
<img src="http://geo.yahoo.com/serv?s=97476590/grpId=11682781/grpspId=1709195911/msgId=5290/stime=1305800738" width="1" height="1"> <br>
<!-- |**|end egp html banner|**| -->
<!-- |**|begin egp html banner|**| -->
<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px solid #666; padding: 5px 0;" >
Your email settings: Individual Email|Traditional <br>
<a href="http://groups.yahoo.com/group/lexicographylist/join;_ylc=X3oDMTJnMHJvZmo5BF9TAzk3NDc2NTkwBGdycElkAzExNjgyNzgxBGdycHNwSWQDMTcwOTE5NTkxMQRzZWMDZnRyBHNsawNzdG5ncwRzdGltZQMxMzA1ODAwNzM4">Change settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:lexicographylist-digest@yahoogroups.com?subject=Email Delivery: Digest">Switch delivery to Daily Digest</a> | <a href = "mailto:lexicographylist-fullfeatured@yahoogroups.com?subject=Change Delivery Format: Fully Featured">Switch to Fully Featured</a> <br>
<a href="http://groups.yahoo.com/group/lexicographylist;_ylc=X3oDMTJlM28wZW43BF9TAzk3NDc2NTkwBGdycElkAzExNjgyNzgxBGdycHNwSWQDMTcwOTE5NTkxMQRzZWMDZnRyBHNsawNocGYEc3RpbWUDMTMwNTgwMDczOA--">
Visit Your Group
</a> |
<a href="http://docs.yahoo.com/info/terms/">
Yahoo! Groups Terms of Use
</a> |
<a href="mailto:lexicographylist-unsubscribe@yahoogroups.com?subject=Unsubscribe">
Unsubscribe
</a>
<br>
</div>
<br>
<!-- |**|end egp html banner|**| -->
<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>