SWML stylesheets

Steve Slevinski slevin at SIGNPUDDLE.NET
Tue Jan 30 11:20:32 UTC 2007


http://signbank.org/SignPuddle1.5/swml-s.dtd

Jonathan wrote:
> Hi Val, Steve and all the other sw-l members,
>     I noticed that Cherie has been doing very nice work with the 
> rhymes lately.  But it seems to it is bit difficult yet transferring 
> the data back in forth.  The long links often get split up when sent 
> by email.  Then it has to be pasted back together before it´s pasted 
> in the web browser.  I tried to figure out an easy way to send a 
> bookmark. But my results were less than satisfactory.  Sometimes it 
> works and sometimes it doesn't.  I guess it depends on the email 
> servers our emails pass on our emails.  The only real way is to go to 
> a site like http://www.tiny.cc/ and make a new link like 
> http://www.tiny.cc/Littlelamb
>     So I tried to see if there was a better way of doing it.  I had 
> thought of writting a plugging to show the SWML but that´s a bit 
> beyond me yet at this point.  So I started looking into xml and found 
> the xslt the xml stylesheets to style the xml so the web browsers can 
> display it.  I wrote two of them.  One that only shows the symbols and 
> one that also shows the glosses.  Once the stylesheet is mentioned in 
> the swml file, open the file with the browser.  I got it working 
> locally on my computer with Firefox.  It isn´t working yet with 
> Internet Explorer because I don´t have a copy of the swml-s.dtd 
> available.  Internet Explorer isn´t as forgiving as Firefox is.  (I 
> looked for it at http://www.signpuddle.com/swml/swml-s.dtd  but it 
> isn't there!!! Does anybody know where I can find 
> swml-s.dtd???????????).  I must admit that it doesn't format the sign 
> as nicely as Signpuddle but can be a solution to quickly show the 
> contents of a swml file.  It loads the sign the first time (no need to 
> refresh the web page for all of the signs to show correctly). You 
> could publish the swml on your website without having to make a pdf 
> version of it. When we put the stylesheet on the web then the only 
> change we will have to do to make it work is add the following line to 
> the SWML file:
> <?xml-stylesheet type="text/xsl" 
> href="http://signbank.org/signpuddle/signtext/swml.xsl"?>
> or wherever it´s stored on your website just after the <?xml 
> version="1.0"?> .   The stylesheet seems to have to be stored on the 
> same website as the swml file.  I tried having the swml file locally 
> and the stylesheet on the webserver but it didn´t work  :-( .   But 
> you can have both files locally and it works just fine. Then opened 
> the swml file in the Web browser and voilá!, you can now see all the 
> signs.  Of course beforehand, we also need to change the following 
> line in the xsl file to point to the directory where the IMWA png 
> files are stored. These can be on the local computer or on any website.
> <xsl:variable 
> name="IMWA-URI">http://www.signbank.org/signpuddle/signtext/IMWA/</xsl:variable>
>     For unconnected people like myself we can keep a copy of the 
> stylesheet on our computer pointing to where the IMWA files are stored 
> on the computer.  And adjust the line in the xml where the stylesheet 
> is kept.
>     So once I got all of that working, I realized that I was missing 
> the biggest pieces of the puzzle.  The version of SignText that I have 
> locally doesn't have any way to  import the SWML file.  So I went back 
> the keyboard and punched out yet another stylesheet (swml-load.xsl) 
> which loads the contents of the SWML file in signpuddle 
> automagically.  Once again it's only a matter of referencing the 
> stylesheet in the swml file as above.  But if the swml loads in 
> SignPuddle, then there isn't any real reason to use the swml.xsl which 
> only displays the swml.  But I guess it could be used if the main 
> reason for posting the swml is so others can read it as opposed 
> editing it ( the swml-load is best if we want others to edit it).
>
> So these are my recomendations.
>
>    1. Add the reference of the swml-load.xsl stylesheet to the
>       SignText swml output so that the swml files can load
>       automatically in SignText when opened in a web browser. Like
>       this <?xml-stylesheet type="text/xsl" href="swml-load.xsl"?> 
>       (the swml-load.xsl file will have have to be in the same
>       directory as the swml for this to work)
>    2. Add a function to the SignText to download the swml/xml file
>       instead of having to copy and paste it into a notepad document.
>
>
>
> About point number 2.  I tried find a good way to do this client side 
> in javascript.  But it seems to me that javascript and browsers just 
> aren't up to the task yet.  On one of my websites  it uses a script 
> similar to the following to dynamically save a word document or a 
> spreadsheet to the user's computer.  It in ASP VB.Net.  I don't know 
> PHP but I'm sure that it should be able to do something similar.  I 
> only left the parts that are relevant to saving a swml file.
>
>  Protected Sub Export_Click(ByVal sender As Object, ByVal e As 
> System.EventArgs)
>       
>         Response.Clear()
>         Response.AddHeader("content-disposition", 
> "attachmentfilename=FileName.xml")
>         Response.Charset = ""
>         Response.Cache.SetCacheability(HttpCacheability.NoCache)
>         Response.ContentType = "application/xml"
>       
>         Response.Write(Me.swml.text)
>         Response.End()
>        
>     End Sub
>
> Try the following link in your browser.  Please let me know if it 
> worked for you or not and which browser you are using.
>
> Cherie´s Humpty Dumpty just the signs 
> <http://www25.brinkster.com/jdpage/humpty.xml> 
> http://www25.brinkster.com/jdpage/humpty.xml
> Cherie´s Itsy Bitsy Spider, signs and gloss 
> <http://www25.brinkster.com/jdpage/itsybitsySpider.xml> 
> http://www25.brinkster.com/jdpage/itsybitsySpider.xml
> Cherie´s Mary had a little lamb, Load directly into SignText 
> <http://www25.brinkster.com/jdpage/marylittlelamb.xml> 
> http://www25.brinkster.com/jdpage/marylittlelamb.xml
>
> Also try saving the attachments in one folder on your computer, then 
> opening them in your web browser.
>
>
> Looking forward to everybody's comments
>
> Jonathan
>
> Cherie Wren wrote:
>> Yes, thats exactly what it means.  The spider flips over, and goes right back up 
>> the spout.
>>
>> cherie
>>
>> ----- Original Message ----
>> From: Charles Butler <chazzer3332000 at YAHOO.COM>
>> To: sw-l at majordomo.valenciacc.edu
>> Sent: Tuesday, January 23, 2007 10:32:33 PM
>> Subject: Re: [sw-l] itsy bitsy spider 2 again
>>
>> Not sure of next to the last sign in the second column.  Are you trying to say 
>> that the wiggling spider turns over and then crawls away to go back up the 
>> waterspout.  This is really a fun nursery rhyme.
>>  
>> Charles
>>
>>
>> */cwren at doe.k12.ga.us/* wrote:
>>
>>     		
>>
>>     Redid "out came the sun", hope fully fixed some hand facings?
>>     For the last nod on 'again' is there any way to show that it isn't a
>>     standard nod? Its a slower big up-nod, then a faster down-nod... does that
>>     make sense?
>>     cherie
>>
>>     Load message into SignText
>>     <http://www.signbank.org/signpuddle/signtext/signtext.html?list=01-05-003-01-03-09,59,79,02-06-003-01-02-11,37,59,02-06-003-01-02-13,76,65,02-06-003-01-02-09,41,97,03-01-001-01-01-01,106,84,sign-9,0%0D%0A01-05-003-01-03-09,53,76,03-03-001-01-01-02,87,122,01-05-032-01-02-01,55,108,02-01-001-01-01-01,46,100,02-06-001-03-
>> 01-11,74,97,02-06-001-03-02-03,15,75,sign-9,0%0D%0A08-04-002-01-01-01,118,83,sign-7,0%0D%0A03-01-001-01-01-01,111,68,01-05-001-01-01-01,118,95,01-05-001-01-01-09,84,103,02-01-001-01-01-07,142,98,02-03-001-02-01-06,134,127,02-03-001-01-02-05,89,139,01-05-050-01-04-15,158,153,01-05-050-01-04-07,87,154,sign-8,0%0D%0A01-05-050-01-06-03,156,97,01-05-050-01-06-11,98,97,03-07-001-01-01-01,107,46,03-06-001-01-01-01,135,48,01-05-001-01-06-01,152,169,01-05-001-01-06-09,91,167,02-10-006-01-01-07,145,154,02-10-006-01-02-03,89,152,02-03-001-02-01-01,153,127,02-03-001-02-02-01,99,124,02-10-006-01-01-07,145,140,02-10-006-01-02-03,90,138,sign-9,0%0D%0A01-05-003-01-04-09
>>     %0A,73,94,03-03-001-01-01-04,116,40,08-01-001-01-01-05,81,128,02-02-008-01-03-01,70,79,02-06-007-01-02-02,104,93,sign-9,0%0D%0A01-05-003-01-06-11,46,105,03-03-001-01-01-04,142,0,08-01-001-01-01-05,46,134,02-02-008-01-03-07,81,100,02-03-001-03-02-01,111,49,06-01-002-05-01-05,100,111,06-01-002-01-01-05,96,120,06-01-002-02-01-01,123,89,06-01-002-02-01-01,116,81,01-05-003-01-02-09,109,16,02-02-008-01-03-01,103,2,sign-9,0%0D%0A01-05-014-01-04-10,94,94,01-05-048-01-06-01,105,107,02-01-001-01-01-05,102,119,02-03-013-01-01-03,129,101,04-03-001-01-03-01,94,30,03-01-001-01-01-04,94,41,sign-9,0%0D%0A08-04-001-01-01-01,70,86,sign-10,0>
>>
>>     Courtesy of SignBank.org <http://www.signbank.org/> 
>>
>>
>>
>>   
>
> -- 
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> <xsl:output method="html" indent="no"></xsl:output>
> <xsl:template match="/">
> <html xmlns="http://www.w3.org/1999/xhtml" >
> <head>
>     <title>Untitled Page</title>
>  <script language="javascript">
>    function setlist(){
>    str = <xsl:apply-templates/>
>    str = str.substring(0, str.length - 6)
>    str = unescape(str)
>    var A = new Array();
>
> 	A = str.split("\r\n");
> 	str = A.join("\n");
> 	A = str.split("\r");
> 	str = A.join("\n");
>   str=str.replace(/\r/g,"")
>   document.getswml.list.value = str
> }
>  
>  </script>
> </head>
> <body onload="setlist();document.getswml.submit();return false;">
> <form name="getswml" action="http://www.signbank.org/signpuddle/signtext/options.html" method="get" target="_content">
>     <input type="hidden" name="list" />
>
>    </form>
>
> </body>
> </html>
> </xsl:template>
>   
>   <xsl:template match="swml"><xsl:variable name="signlist">"<xsl:for-each select="sign"><xsl:for-each select="symbol"><xsl:value-of select="."/>%2C<xsl:value-of select="@x"/>%2C<xsl:value-of select="@y"/>%2C</xsl:for-each><xsl:value-of select="gloss"/>%2C<xsl:value-of select="@lane"/>%0D%0A</xsl:for-each>"</xsl:variable><xsl:value-of select="$signlist"/></xsl:template>
>   <xsl:template match="gloss"></xsl:template>
> 	<xsl:template match="symbol">
> </xsl:template>
>   </xsl:stylesheet>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="swml.xsl"?>
> <!DOCTYPE swml SYSTEM "http://www.signpuddle.com/swml/swml-s.dtd">
>   <swml dialect="S" version="1.1" lang="sgn" glosslang="">
>     <sign lane="0">
>       <gloss>sign-10</gloss>
>       <symbol x="114" y="81">01-02-007-01-05-02</symbol>
>       <symbol x="94" y="84">01-02-007-01-05-11</symbol>
>       <symbol x="140" y="90">02-06-008-01-01-04</symbol>
>       <symbol x="70" y="95">02-06-008-01-02-03</symbol>
>       <symbol x="96" y="30">03-01-001-01-01-01</symbol>
>       <symbol x="109" y="121">08-02-001-01-01-05</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-2</gloss>
>       <symbol x="114" y="103">08-04-002-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-10</gloss>
>       <symbol x="129" y="114">01-05-005-01-06-03</symbol>
>       <symbol x="100" y="114">01-05-005-01-06-11</symbol>
>       <symbol x="160" y="112">02-03-001-02-01-07</symbol>
>       <symbol x="63" y="111">02-03-001-02-02-03</symbol>
>       <symbol x="118" y="98">08-02-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-4</gloss>
>       <symbol x="138" y="123">01-02-007-01-06-11</symbol>
>       <symbol x="101" y="129">06-01-002-03-01-05</symbol>
>       <symbol x="139" y="96">01-05-005-01-03-01</symbol>
>       <symbol x="158" y="115">02-01-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-5</gloss>
>       <symbol x="16" y="146">08-04-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-6</gloss>
>       <symbol x="125" y="104">01-05-005-01-02-01</symbol>
>       <symbol x="109" y="104">01-05-005-01-02-09</symbol>
>       <symbol x="120" y="132">02-01-001-01-01-01</symbol>
>       <symbol x="104" y="72">02-08-007-01-03-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-7</gloss>
>       <symbol x="130" y="169">01-05-005-01-02-01</symbol>
>       <symbol x="113" y="169">01-05-005-01-02-09</symbol>
>       <symbol x="125" y="197">02-01-001-01-01-01</symbol>
>       <symbol x="113" y="135">02-08-001-02-03-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-8</gloss>
>       <symbol x="114" y="70">01-05-005-01-02-05</symbol>
>       <symbol x="131" y="70">01-05-005-01-02-13</symbol>
>       <symbol x="52" y="142">01-05-005-01-04-07</symbol>
>       <symbol x="182" y="141">01-05-005-01-04-15</symbol>
>       <symbol x="120" y="106">02-03-001-03-03-05</symbol>
>       <symbol x="143" y="137">02-06-002-01-01-11</symbol>
>       <symbol x="82" y="137">02-06-002-01-02-03</symbol>
>       <symbol x="125" y="56">02-01-001-01-01-01</symbol>
>       <symbol x="123" y="155">08-02-001-01-01-05</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-9</gloss>
>       <symbol x="128" y="136">08-04-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-10</gloss>
>       <symbol x="102" y="96">03-01-001-01-01-01</symbol>
>       <symbol x="137" y="83">01-02-007-01-03-01</symbol>
>       <symbol x="129" y="72">02-02-006-01-02-05</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-11</gloss>
>       <symbol x="109" y="80">01-02-007-01-06-03</symbol>
>       <symbol x="112" y="112">01-02-007-01-06-11</symbol>
>       <symbol x="109" y="61">05-01-001-01-01-01</symbol>
>       <symbol x="145" y="84">02-01-001-01-02-01</symbol>
>       <symbol x="147" y="117">02-01-001-01-02-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-12</gloss>
>       <symbol x="96" y="122">01-05-005-01-06-03</symbol>
>       <symbol x="130" y="129">01-05-005-01-06-11</symbol>
>       <symbol x="109" y="90">02-05-001-03-01-02</symbol>
>       <symbol x="67" y="87">02-05-001-03-02-02</symbol>
>       <symbol x="87" y="83">08-02-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-13</gloss>
>       <symbol x="77" y="109">08-04-002-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-14</gloss>
>       <symbol x="137" y="124">01-05-005-01-04-15</symbol>
>       <symbol x="121" y="102">02-01-001-01-01-01</symbol>
>       <symbol x="89" y="123">01-05-005-01-04-07</symbol>
>       <symbol x="128" y="75">01-05-005-01-02-01</symbol>
>       <symbol x="110" y="75">01-05-005-01-02-09</symbol>
>       <symbol x="147" y="83">02-06-002-01-01-01</symbol>
>       <symbol x="85" y="83">02-06-002-01-02-09</symbol>
>       <symbol x="108" y="28">03-01-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-15</gloss>
>       <symbol x="65" y="74">02-08-007-01-02-02</symbol>
>       <symbol x="109" y="74">01-05-005-01-02-09</symbol>
>       <symbol x="127" y="74">01-05-005-01-02-01</symbol>
>       <symbol x="146" y="75">02-08-007-01-01-01</symbol>
>       <symbol x="107" y="30">03-01-001-01-01-06</symbol>
>       <symbol x="107" y="17">04-03-001-01-03-03</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-16</gloss>
>       <symbol x="92" y="99">05-02-001-01-01-01</symbol>
>       <symbol x="97" y="53">04-03-001-01-01-06</symbol>
>       <symbol x="97" y="64">03-06-001-01-02-10</symbol>
>       <symbol x="97" y="64">03-01-001-01-01-06</symbol>
>       <symbol x="152" y="89">01-05-002-01-04-07</symbol>
>       <symbol x="50" y="88">01-05-002-01-04-15</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-17</gloss>
>       <symbol x="103" y="120">08-04-001-01-01-01</symbol>
>     </sign>
>   </swml>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="swml-gloss.xsl"?>
>
>   <swml dialect="S" version="1.1" lang="sgn" glosslang="">
>     <sign lane="0">
>       <gloss>sign-1</gloss>
>       <symbol x="85" y="73">01-05-003-01-06-02</symbol>
>       <symbol x="104" y="73">01-05-003-01-06-10</symbol>
>       <symbol x="103" y="64">02-01-001-01-01-03</symbol>
>       <symbol x="74" y="58">02-02-008-01-03-02</symbol>
>       <symbol x="118" y="57">02-02-008-01-03-08</symbol>
>       <symbol x="91" y="9">03-01-001-01-01-01</symbol>
>       <symbol x="91" y="9">03-06-001-01-03-02</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-2</gloss>
>       <symbol x="140" y="78">01-05-043-01-02-09</symbol>
>       <symbol x="164" y="78">01-05-043-01-02-01</symbol>
>       <symbol x="183" y="80">02-03-002-01-01-03</symbol>
>       <symbol x="121" y="80">02-03-002-01-02-07</symbol>
>       <symbol x="141" y="31">03-01-001-01-01-05</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-3</gloss>
>       <symbol x="94" y="97">08-04-002-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-5</gloss>
>       <symbol x="76" y="97">01-05-003-01-06-09</symbol>
>       <symbol x="105" y="50">03-03-001-01-02-04</symbol>
>       <symbol x="84" y="131">08-01-001-01-01-05</symbol>
>       <symbol x="73" y="82">02-02-008-01-03-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-10</gloss>
>       <symbol x="70" y="86">08-04-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-14</gloss>
>       <symbol x="139" y="85">01-05-012-01-04-01</symbol>
>       <symbol x="120" y="122">03-03-001-01-01-01</symbol>
>       <symbol x="152" y="112">02-03-001-02-01-06</symbol>
>       <symbol x="98" y="113">02-03-001-02-02-14</symbol>
>       <symbol x="124" y="85">01-05-012-01-04-09</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-6</gloss>
>       <symbol x="103" y="98">01-05-032-01-04-07</symbol>
>       <symbol x="103" y="78">01-05-032-01-04-15</symbol>
>       <symbol x="126" y="91">02-01-001-01-01-01</symbol>
>       <symbol x="106" y="43">02-05-001-02-01-01</symbol>
>       <symbol x="105" y="120">02-05-001-02-02-13</symbol>
>       <symbol x="134" y="100">03-03-001-01-01-02</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-18</gloss>
>       <symbol x="112" y="76">03-03-001-01-01-03</symbol>
>       <symbol x="112" y="103">03-03-001-01-01-04</symbol>
>       <symbol x="88" y="67">01-05-005-01-05-01</symbol>
>       <symbol x="72" y="67">01-05-005-01-05-09</symbol>
>       <symbol x="83" y="95">02-01-001-01-01-01</symbol>
>       <symbol x="56" y="144">02-03-008-02-02-03</symbol>
>       <symbol x="81" y="107">06-01-002-03-01-01</symbol>
>       <symbol x="75" y="107">06-01-002-03-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-10</gloss>
>       <symbol x="93" y="96">08-04-002-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-18</gloss>
>       <symbol x="74" y="95">01-05-003-01-06-09</symbol>
>       <symbol x="131" y="92">06-01-002-02-01-01</symbol>
>       <symbol x="82" y="129">08-01-001-01-01-05</symbol>
>       <symbol x="71" y="80">02-02-008-01-03-01</symbol>
>       <symbol x="127" y="72">02-03-001-02-02-01</symbol>
>       <symbol x="104" y="123">06-01-002-01-01-05</symbol>
>       <symbol x="102" y="129">06-01-002-01-01-05</symbol>
>       <symbol x="110" y="129">06-01-002-01-01-05</symbol>
>       <symbol x="137" y="98">06-01-002-02-01-01</symbol>
>       <symbol x="129" y="25">03-03-001-01-01-04</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-11</gloss>
>       <symbol x="1" y="96">08-04-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-12</gloss>
>       <symbol x="132" y="41">01-05-002-01-06-01</symbol>
>       <symbol x="92" y="41">01-05-002-01-06-09</symbol>
>       <symbol x="133" y="80">02-03-002-01-01-05</symbol>
>       <symbol x="91" y="79">02-03-002-01-02-05</symbol>
>       <symbol x="117" y="82">08-02-001-01-01-05</symbol>
>       <symbol x="106" y="95">03-03-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-14</gloss>
>       <symbol x="136" y="49">01-05-001-01-06-04</symbol>
>       <symbol x="111" y="88">01-05-032-01-05-09</symbol>
>       <symbol x="120" y="112">02-03-001-02-01-05</symbol>
>       <symbol x="124" y="65">02-02-008-01-03-04</symbol>
>       <symbol x="156" y="82">03-03-001-01-01-03</symbol>
>       <symbol x="132" y="92">02-01-001-01-01-08</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-14</gloss>
>       <symbol x="69" y="85">08-04-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-16</gloss>
>       <symbol x="99" y="97">01-05-003-01-05-09</symbol>
>       <symbol x="130" y="96">06-01-002-02-01-01</symbol>
>       <symbol x="108" y="130">08-01-001-01-01-05</symbol>
>       <symbol x="92" y="82">02-02-008-01-03-01</symbol>
>       <symbol x="126" y="76">02-03-001-02-02-01</symbol>
>       <symbol x="142" y="27">03-01-001-01-01-01</symbol>
>       <symbol x="136" y="96">06-01-002-02-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-18</gloss>
>       <symbol x="111" y="61">01-05-001-01-05-05</symbol>
>       <symbol x="107" y="93">02-02-008-01-03-05</symbol>
>       <symbol x="116" y="111">02-03-001-02-01-05</symbol>
>       <symbol x="109" y="144">01-05-003-01-05-09</symbol>
>       <symbol x="97" y="179">02-06-001-03-02-14</symbol>
>       <symbol x="151" y="81">03-03-001-01-01-04</symbol>
>       <symbol x="72" y="180">01-05-003-01-04-09</symbol>
>       <symbol x="151" y="81">03-06-001-01-01-04</symbol>
>       <symbol x="28" y="195">02-06-004-02-02-03</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-17</gloss>
>       <symbol x="69" y="85">08-04-001-01-01-01</symbol>
>     </sign>
>   </swml>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="swml-load.xsl"?>
> <!DOCTYPE swml SYSTEM "http://www.signpuddle.com/swml/swml-s.dtd">
>   <swml dialect="S" version="1.1" lang="sgn" glosslang="">
>     <sign lane="0">
>       <gloss>sign-1</gloss>
>       <symbol x="71" y="92">01-01-001-01-03-09</symbol>
>       <symbol x="69" y="79">02-05-001-01-01-01</symbol>
>       <symbol x="74" y="127">08-01-001-01-01-05</symbol>
>       <symbol x="100" y="38">03-03-001-01-01-04</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-4</gloss>
>       <symbol x="46" y="87">08-04-002-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-2</gloss>
>       <symbol x="103" y="65">03-01-001-01-01-01</symbol>
>       <symbol x="99" y="143">06-01-002-03-01-05</symbol>
>       <symbol x="127" y="118">01-02-001-01-04-03</symbol>
>       <symbol x="113" y="118">02-01-001-01-01-07</symbol>
>       <symbol x="137" y="139">01-02-001-01-06-07</symbol>
>       <symbol x="97" y="112">02-03-002-01-01-03</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-3</gloss>
>       <symbol x="162" y="108">01-02-008-01-06-03</symbol>
>       <symbol x="122" y="57">03-03-001-01-01-06</symbol>
>       <symbol x="175" y="88">02-03-001-01-01-05</symbol>
>       <symbol x="177" y="130">08-01-001-01-01-05</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-5</gloss>
>       <symbol x="110" y="115">08-04-002-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-6</gloss>
>       <symbol x="119" y="77">03-01-001-01-01-01</symbol>
>       <symbol x="110" y="158">06-01-002-03-01-05</symbol>
>       <symbol x="154" y="121">01-03-005-01-06-01</symbol>
>       <symbol x="150" y="154">01-03-005-01-06-11</symbol>
>       <symbol x="116" y="130">02-06-005-02-01-03</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-7</gloss>
>       <symbol x="132" y="114">01-04-004-01-03-01</symbol>
>       <symbol x="95" y="63">03-01-001-01-01-01</symbol>
>       <symbol x="146" y="99">02-05-001-01-01-08</symbol>
>       <symbol x="157" y="109">02-05-001-01-01-08</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-8</gloss>
>       <symbol x="109" y="114">08-04-002-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-9</gloss>
>       <symbol x="111" y="126">01-05-001-01-01-03</symbol>
>       <symbol x="114" y="105">08-01-001-01-01-01</symbol>
>       <symbol x="122" y="90">02-05-001-02-01-01</symbol>
>       <symbol x="130" y="147">08-01-001-01-01-05</symbol>
>       <symbol x="117" y="67">01-05-050-01-01-01</symbol>
>       <symbol x="109" y="21">03-01-001-01-01-05</symbol>
>       <symbol x="109" y="21">03-06-001-01-03-04</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-10</gloss>
>       <symbol x="108" y="108">08-04-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-15</gloss>
>       <symbol x="69" y="90">01-01-001-01-03-09</symbol>
>       <symbol x="81" y="46">03-01-001-01-01-01</symbol>
>       <symbol x="72" y="125">08-01-001-01-01-05</symbol>
>       <symbol x="26" y="97">02-03-012-03-02-03</symbol>
>       <symbol x="81" y="35">04-03-001-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-12</gloss>
>       <symbol x="108" y="113">08-04-002-01-01-01</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-13</gloss>
>       <symbol x="35" y="87">01-01-001-01-03-09</symbol>
>       <symbol x="83" y="28">04-03-001-01-03-01</symbol>
>       <symbol x="35" y="125">08-01-001-01-01-05</symbol>
>       <symbol x="87" y="98">02-03-012-03-01-03</symbol>
>       <symbol x="130" y="98">01-02-008-01-06-03</symbol>
>       <symbol x="83" y="39">03-06-001-01-02-10</symbol>
>     </sign>
>     <sign lane="0">
>       <gloss>sign-14</gloss>
>       <symbol x="107" y="107">08-04-001-01-01-01</symbol>
>     </sign>
>   </swml>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> <xsl:output method="html"></xsl:output>
> 	<xsl:variable name="IMWA-URI">http://www.signbank.org/signpuddle/signtext/IMWA/</xsl:variable>
>   <xsl:variable name="cell-width">200px</xsl:variable>
>   <xsl:variable name="cell-height">200px</xsl:variable>
> <xsl:template match="/">
> <html>
> <head>
> <title>
>   <xsl:value-of select="document(.)"/>
> </title>
> </head>
> <xsl:apply-templates/>
> </html>
> </xsl:template>
>
> <xsl:template match="swml">
> 	
> 		<body>
>       <center>
>         <table>
>           <xsl:apply-templates/>
>         </table>
>       </center>
>     </body>
>
>   </xsl:template>
>   <xsl:template match="sign">
>     
>     <xsl:choose>
>       <xsl:when test="./symbol = '08-04-002-01-01-01' or ./symbol = '08-04-001-01-01-01'">
>         <tr>
>           <td width="20px" height="20px"></td>
>           <td width="20px" height="20px">
>             <div style="position: relative;">
>               <img src="{$IMWA-URI}{./symbol}.png">
>                 <xsl:attribute name="style" >
>                   position: absolute;
>                   left:65px;
>                   top: 2px;
>                 </xsl:attribute>
>               </img >
>             </div>
>           </td>
>           <td width="20px" height="20px"></td>
>         </tr>
>       </xsl:when >
>       <xsl:otherwise>
>
>         <xsl:choose>
>           <xsl:when test="@lane = -1">
>             <tr>
>               <td width="{$cell-width}" height="{$cell-height}">
>                 <div style="position: relative;top: -100px;">
>                   <xsl:apply-templates/>
>                 </div>
>               </td>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>             </tr>
>           </xsl:when>
>           <xsl:when test="@lane = 1">
>             <tr>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>               <td width="{$cell-width}" height="{$cell-height}">
>                 <div style="position: relative;top: -100px;">
>                   <xsl:apply-templates/>
>                 </div>
>               </td>
>             </tr>
>           </xsl:when>
>           <xsl:otherwise>
>             <tr>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>               <td width="{$cell-width}" height="{$cell-height}">
>                 <div style="position: relative;top: -100px;">
>                   <xsl:apply-templates/>
>                 </div>
>               </td>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>             </tr>
>
>           </xsl:otherwise>
>
>         </xsl:choose>
>       </xsl:otherwise>
>     </xsl:choose >
>     
> 	</xsl:template>
> 	<xsl:template match="gloss">
>
> 	</xsl:template>
> 	<xsl:template match="symbol">  
>         <img src="{$IMWA-URI}{.}.png">
>           <xsl:attribute name="style" >
>             position: absolute;
>             left:<xsl:value-of select="@x"/>px;
>             top: <xsl:value-of select="@y"/>px;
>           </xsl:attribute>
>         </img >
>   
> </xsl:template>
>   </xsl:stylesheet>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> <xsl:output method="html"></xsl:output>
> 	<xsl:variable name="IMWA-URI">http://www.signbank.org/signpuddle/signtext/IMWA/</xsl:variable>
>   <xsl:variable name="cell-width">200px</xsl:variable>
>   <xsl:variable name="cell-height">200px</xsl:variable>
> <xsl:template match="/">
> <html>
> <head>
> <title>
>   <xsl:value-of select="document(.)"/>
> </title>
> </head>
> <xsl:apply-templates/>
> </html>
> </xsl:template>
>
> <xsl:template match="swml">
> 	
> 		<body>
>       <center>
>         <table>
>           <xsl:apply-templates/>
>         </table>
>       </center>
>     </body>
>
>   </xsl:template>
>   <xsl:template match="sign">
>     
>     <tr>
>       <td colspan="3" align="center">
>         <xsl:value-of select="gloss"/>
>       </td>
>     </tr>
>     <xsl:choose>
>       <xsl:when test="./symbol = '08-04-002-01-01-01' or ./symbol = '08-04-001-01-01-01'">
>         <tr>
>           <td width="20px" height="20px"></td>
>           <td width="20px" height="20px">
>             <div style="position: relative;">
>               <img src="{$IMWA-URI}{./symbol}.png">
>                 <xsl:attribute name="style" >
>                   position: absolute;
>                   left:65px;
>                   top: 2px;
>                 </xsl:attribute>
>               </img >
>             </div>
>           </td>
>           <td width="20px" height="20px"></td>
>         </tr>
>       </xsl:when >
>       <xsl:otherwise>
>
>         <xsl:choose>
>           <xsl:when test="@lane = -1">
>             <tr>
>               <td width="{$cell-width}" height="{$cell-height}">
>                 <div style="position: relative;top: -100px;">
>                   <xsl:apply-templates/>
>                 </div>
>               </td>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>             </tr>
>           </xsl:when>
>           <xsl:when test="@lane = 1">
>             <tr>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>               <td width="{$cell-width}" height="{$cell-height}">
>                 <div style="position: relative;top: -100px;">
>                   <xsl:apply-templates/>
>                 </div>
>               </td>
>             </tr>
>           </xsl:when>
>           <xsl:otherwise>
>             <tr>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>               <td width="{$cell-width}" height="{$cell-height}">
>                 <div style="position: relative;top: -100px;">
>                   <xsl:apply-templates/>
>                 </div>
>               </td>
>               <td width="{$cell-width}" height="{$cell-height}"></td>
>             </tr>
>
>           </xsl:otherwise>
>
>         </xsl:choose>
>       </xsl:otherwise>
>     </xsl:choose >
>     
> 	</xsl:template>
> 	<xsl:template match="gloss">
>
> 	</xsl:template>
> 	<xsl:template match="symbol">  
>         <img src="{$IMWA-URI}{.}.png">
>           <xsl:attribute name="style" >
>             position: absolute;
>             left:<xsl:value-of select="@x"/>px;
>             top: <xsl:value-of select="@y"/>px;
>           </xsl:attribute>
>         </img >
>   
> </xsl:template>
>   </xsl:stylesheet>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/sw-l/attachments/20070130/a3a5721f/attachment.htm>


More information about the Sw-l mailing list