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

RE: xlink:href - how do I get the value of?

Subject: RE: xlink:href - how do I get the value of?
From: Craig Riley <craig@xxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Jun 2008 06:06:39 -0400
RE:  xlink:href - how do I get the value of?
Fixed it, you're a star!

Thanks Michael.

PS
What I'm doing is part of a coldfusion app which is the reason why its
tricky to send to much code. I try to send just the relevant peices of
code to keep it simple which worked well in this case.

Thanks Again

Craig


Quoting Michael Kay <mike@xxxxxxxxxxxx>:


I have an equation graphic that contains a "xlink:href"
attribute that I want to get the value of to use as the image
src. I have tried numerous ways of accessing this value but I
keep getting an error! For example if I use:

<xsl:value-of select="@xlink:href" />

I get the following error:

"A Transformer object cannot be created that satisfies the
configuration requested. This could be due to a failure in
compiling the XSL text."

First thing you need to do is to sort out your development environment so that you are seeing the real error messages, not just some summary that tells you there were error messages that you haven't seen. The chances are the real messages are going to some log file somewhere.

Alternatively, run your stylesheet through a development environment such
as
Stylus Studio or Oxygen that shows you the errors on the screen.

Most likely explanation for this one is that you didn't declare the
namespace. Try writing:

<xsl:value-of select="@xlink:href"
xmlns:xlink="http://www.w3.org/1999/xlink"/>

(It's more usual to put all the namespaces on the xsl:stylesheet element,
but if there's only one use of the namespace, it's less obtrusive to
declare
it locally.)

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






---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.

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.