This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Represent @ in xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Represent @ in xml file" Watch "Represent @ in xml file" New topic
Author

Represent @ in xml file

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
How do i represent '@' character in an xsl file. I am writing something like this:

<a href = "<xsl:value-of select="@href"/>/>
it gives me "Whitespace required before attributes"


SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Are you perhaps missing a quote character (") in "/>/>"?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: Represent @ in xml file
 
Similar Threads
xalan
Problem in importing html file in jsp
Schema design Help
Xalan XPath Question
linking from html page to jsp page