Mike Kamermans
Usenet Archive
- Joined
- Aug 10, 2004
- Messages
- 14
- Reaction score
- 0
I'm having difficulty XSL tranforming some XML of the form <some_element> <jis>1234</jis></some_element> into the xhtml form <img src="jis/1234.gif"/>
My initial idea was to use the following XSL:
<xsl:text><img src="jis/</xsl:text><xsl:value-of select"./jis/text"/> <xsl:text>.gif"/></xsl:text>
But when I run this, I get the error that "src may not contain a < symbol" (I run this in the XSLT engine that comes with the Exchanger XML editor v2, which uses Xerces 2.6.2 and Saxon 6.5.2). I must admit being slightly confused... am I using <xsl:text> wrong, or should this work for all intents and purposes?
Mike Kamermans
My initial idea was to use the following XSL:
<xsl:text><img src="jis/</xsl:text><xsl:value-of select"./jis/text"/> <xsl:text>.gif"/></xsl:text>
But when I run this, I get the error that "src may not contain a < symbol" (I run this in the XSLT engine that comes with the Exchanger XML editor v2, which uses Xerces 2.6.2 and Saxon 6.5.2). I must admit being slightly confused... am I using <xsl:text> wrong, or should this work for all intents and purposes?
Mike Kamermans