[4suite] More unexplained behavior of 4XLST
Bob Myers
rtm at pacifitech.com
Sat Sep 23 04:32:23 MDT 2000
Uche,
Very sorry that you had to debug my XSL! Thanks.
> I checked it out with the Adobe viewer. Very slick. Are you planning
> to use the animation features of SVG for things like illustrating moves?
In go, stones do not move, but rather are placed one by one on the board;
however, I have built an HTML harness which shows the game unfolding by
twiddling with visibility of the SVG elements, and I intend in the future to
incorporate this logic directly into the SVG to make stand-alone SVG-based
replayable go game files.
Bob
----- Original Message -----
From: "Uche Ogbuji" <uche.ogbuji at fourthought.com>
To: "Bob Myers" <rtm at pacifitech.com>
Cc: <4suite at dollar.fourthought.com>
Sent: Friday, September 22, 2000 16:05
Subject: Re: [4suite] More unexplained behavior of 4XLST
> Bob Myers wrote:
> >
> > Hi. I am having no luck getting the <xsl:value-of> element to work. (I
am
> > using version 0.9.0 of 4Suite, downloaded and installed a couple of days
> > ago.)
> >
> > % cat bug.xsl
> > <?xml version="1.0"?>
> > <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > version="1.0">
> >
> > <xsl:template match="at">
> > <xsl:text><xsl:value-of select="@x"/></xsl:text>
> > </xsl:template>
> >
> > </xsl:transform>
> >
> > % cat bug.xml
> > <?xml version="1.0"?>
> > <doc>
> > <at x='1' y='2'/>
> > </doc>
>
> [snipped traceback]
>
> Actually, there are two bugs here. The first one is in your stylesheet.
>
> xsl:text is not allowed to have any child tags. Only character data
> (text) (see section 7.3 of the spec). Your stylesheet works as
>
> <?xml version="1.0"?>
> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
>
> <xsl:template match="at">
> <xsl:value-of select="@x"/>
> </xsl:template>
>
> </xsl:transform>
>
> However, there is a buglet in 4XSLT: it should throw a more intelligent
> message than the traceback you got. This is an area we're really trying
> to improve in 4Suite: error reports. I've addressed illegal xsl:text
> children thanks to your message.
>
> > Whatever is causing the above bug is apparently also causing a bug in
the
> > use of the <xsl:number> instruction.
>
> Hmm. Can I have more info about your problems with xsl:number? It
> should be unrelated.
>
> > PS. This is part of an application I am developing to represent the
> > Japanese game of go in xml, and the style sheet above is a fragment of
one
> > to convert such a game into an SVG graphic. Such a graphic (created by
> > other means) is attached for your amusement.
>
> I checked it out with the Adobe viewer. Very slick. Are you planning
> to use the animation features of SVG for things like illustrating moves?
>
> Thanks.
>
> --
> Uche Ogbuji Principal Consultant
> uche.ogbuji at fourthought.com +1 303 583 9900 x 101
> Fourthought, Inc. http://Fourthought.com
> 4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
> Software-engineering, knowledge-management, XML, CORBA, Linux, Python
>
More information about the 4suite
mailing list