Subject: RE: [xsl] xlink:href - how do I get the value of? From: Craig Riley <craig@xxxxxxxxxxxxxxxxxx> Date: Wed, 18 Jun 2008 06:06:39 -0400 |
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.
asI 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
Stylus Studio or Oxygen that shows you the errors on the screen.declare
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
it locally.)
Michael Kay http://www.saxonica.com/
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xlink:href - how do I get, Michael Kay | Thread | Re: [xsl] value-of select - then mu, Adam Nielsen |
RE: [xsl] xlink:href - how do I get, Michael Kay | Date | Re: [xsl] XSLT 1.0 support in brows, Robert Koberg |
Month |