Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Represent @ in xml file" Watch "Represent @ in xml file" New topic

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

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

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Consider Paul's rocket mass heater.
subject: Represent @ in xml file
Similar Threads
Problem in importing html file in jsp
Schema design Help
Xalan XPath Question
linking from html page to jsp page