[thelist] xsl-Expected token 'eof'

Seb seb at members.evolt.org
Tue Jan 14 14:06:04 CST 2003


At 19:52 14/01/2003, you wrote:
>--
>[ Picked text/plain from multipart/alternative ]
>Hi,
>
>I'm trying to learn xml/xsl and run into a problem.
>When trying to transform one xml document into another using
>xsl:stylesheet I get followin error:
>'Expected token 'eof' found '@'. message-->@<--id'
>I've tried googling but so far no luck, any ideas or suggetions would be
>appreciated.

The @ character needs to be preceeded by a / to denote that the id is an
attribute of the message, so:

>      <xsl:value-of select="message at id"/>

becomes:

<xsl:value-of select="message/@id" />

You'll need to change this for every time you're trying to use an attribute
in your XSL document.

- seb

--
seb can be found loitering at http://poked.org











More information about the thelist mailing list