xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Louden <ap...@yahoo.com>
Subject Parsing error with URL <A HREF="<xsl:value-of select = "/website/url" /> ">
Date Mon, 10 May 2004 15:31:18 GMT
I encountered the following error when XSL file has 
<A HREF=" <xsl:value-of select = "/website/url" /> ">. Any ideas??
D:\\URLParsingError>java org.apache.xalan.xslt.Process -in website.xml -
xsl website.xsl -out website.html
[Fatal Error] website.xsl:5:14: The value of attribute "HREF" associated with an
 element type "A" must not contain the '<' character.
file:///D://URLParsingError/website.xsl; Line #5; Column #14; XSLT Error
 (javax.xml.transform.TransformerConfigurationException): javax.xml.transform.Tr
ansformerException: org.xml.sax.SAXParseException: The value of attribute "HREF"
 associated with an element type "A" must not contain the '<' character.
 
/***********************  website.xsl *******************************/
<html xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" xsl:version = "1.0">
<HEAD></HEAD>
<BODY>
<P><A HREF=" <xsl:value-of select = "/website/url" /> ">Web Site URL</A></P>
<P>Web Site Name: <xsl:value-of select = "/website/name" /></P>
</BODY>
</html>
/***********************  website.xml *******************************/
<?xml version = "1.0"?>
<website> 
   <name>Yahoo</name>
   <url>http://www.yahoo.com</url>
</website>

 

		
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 
Mime
View raw message