I'm not sure if this will work for you, but it may help:

http://www.talkingtree.com/blog/index.cfm/2005/11/18/XmlSearchNoNameName
space

Read through the comments for the xmlSearch wildcards.  You may be able
to skip over the namespaces with the wildcards.

m!ke 

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 13, 2008 10:17 AM
To: CF-Talk
Subject: Re: CF, XML, XSLT, XPath and XHTML.

Dominic Watson wrote:
> Hi Ian,
>
> This line creates a default namespace for the xml which may be your
problem:
>   
>> <html xmlns="http://www.w3.org/1999/xhtml";>
>>     


Yes, I did discover that this was a name space issue.


> To match any node in an xml document with a default namespace, you 
> will need to add the default namespace to your xpath which is just a
> colon:
>
> <xsl:value-of select="//:option" />
>
> HTH
>   

I tried this solution and I get this error:


  javax.xml.transform.TransformerConfigurationException:
  javax.xml.transform.TransformerException:
  javax.xml.transform.TransformerException: Prefix must resolve to a
  namespace:

But adding a another name space parameter to my xsl seems to work well.

<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:xhtml="http://www.w3.org/1999/xhtml";>
.....
        <xsl:for-each select="//xhtml:option">

As I asked in my other post.  How does one make use of multiple name
spaces like this in the ColdFusion xml functions such as xmlSearch?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305176
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to