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
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]
I agree. Here's the link:
subject: Represent @ in xml file
jQuery in Action, 3rd edition