[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: table value

Subject: RE: table value
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 15 Jun 2006 11:42:45 +0100
xslt error javax.xml.transform.transformerexceptio
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 &amp; (that's &_amp; without the underscore).

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Andrew Neiderer [mailto:neiderer@xxxxxxxxxxxx] 
> Sent: 15 June 2006 11:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: neiderer@xxxxxxxxxxxx
> Subject:  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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.