SWML stylesheets
K.J. Boal
kjoanne403 at HOTMAIL.COM
Sat Feb 3 05:35:59 UTC 2007
Hi Jonathan,
I tried those three links . . . the first two (Humpty Dumpty & the
Itsy-Bitsy Spider) worked pretty well. The third one, though, that opened
into SignText, had some problems: some of the signs were cut off halfway
down. That's a problem I notice a lot, though, even when I'm just using
SignText: When I press the "Options" button, parts of my signs disappear!
I did have another problem with the Itsy-Bitsy spider though; at some part
of each sign, they're labeled with sign numbers (sign 1, sign 13, sign
10...) and I find that distracting.
I'm using Mozilla Firefox.
Hope the feedback helps!
Kelly Jo
>From: Jonathan <duncanjonathan at yahoo.ca>
>Reply-To: sw-l at majordomo.valenciacc.edu
>To: sw-l at majordomo.valenciacc.edu
>Subject: [sw-l] SWML stylesheets
>Date: Mon, 29 Jan 2007 22:10:24 -0600
>
>
>
>
>
>
>
>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.
>
>
> 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)
>
>
> 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
>
>Cherie´s
>Itsy Bitsy Spider, signs and gloss
>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
>
>
>
>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/>
>
>
>
>
>
>
>
>--
>
>
>
>
>
>
>
>
>
>
>
><< swml-load.xsl >>
><< Humpty.xml >>
><< ItsybitsySpider.xml >>
><< Marylittlelamb.xml >>
><< swml.xsl >>
><< swml-gloss.xsl >>
_________________________________________________________________
Your Space. Your Friends. Your Stories. Share your world with Windows Live
Spaces. http://discoverspaces.live.com/?loc=en-CA
More information about the Sw-l
mailing list