The error message means what it says: xsl:value-of requires a select
attribute. If you want to output the string value of the context node (I'm
guessing), then use <xsl:value-of select="."/>.
Your URL Lab_Number/Age"&value=" is also wrong. An ampersand in an XML
document must be written as & (that's &_amp; without the underscore).
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Andrew Neiderer [mailto:neiderer(_at_)ARL(_dot_)ARMY(_dot_)MIL]
Sent: 15 June 2006 11:18
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: neiderer(_at_)ARL(_dot_)ARMY(_dot_)MIL
Subject: [xsl] table value
I am new to XSLT. I am just trying to get my XML work with
an <xsl:stylesheet>.
My stylesheet Ecoli.xsl includes the following for a table entry
.
.
.
<xsl:template match="Age">
<A>
<xsl:attribute name="HREF">
sllink://query?field="Lab_Number/Age"&value="
<xsl:value-of/>"
</xsl:attribute>
"
<FONT COLOR=3D"#0000FF">
<xsl:value-of />
</FONT>
</A>
</xsl:template>
.
.
.
I am using Java 1.5.0_06 with Xalan-Java 2 from the Apache
Project on my Dell Windows XP and results in the following
C:\>java org.apache.xalan.xslt.Process -IN
Lab_Number-721469.xml -XSL EColi.xsl
XSLT Error (javax.xml.transform.TransformerConfigurationException):
javax.xml.tr
ansform.TransformerException:
javax.xml.transform.TransformerException:
xsl:valu
e-of requires attribute: select
I think the table entry is prompting for a value which is
then processed; I really don't know :-(
If anyone knows off-hand a fix for this please let me know
how to fix this code.
Thank you.
- Andrew M. Neiderer
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--