Skip to main content
September 22, 2008
Question

Unknown error in XPath

  • September 22, 2008
  • 1 reply
  • 552 views
Hello,

I am just starting to get into Xml/Xsl etc. I really don't know much but have been able to start what I need to do with the CF MX7 xml stuff. I can generate an xml file through <cfxml>. . I am using <cffile> to read both the xml and xsl and then using:
<CFSET Transformation = XmlTransform(TransformThisXML,trim(TheXSL))>.
However, when I use xmlTransform() I receive the error, "An error occured while Transforming an XML document. Unknown error in XPath"

I tried removing xsi:noNamespaceSchemaLocation and <?xml-stylesheet type="text/xsl" href=" http://webdev.rrdiml.com/netfile/XSL/D_X01.xsl"?> from the xml and get the same "Unknown error in XPath".

Any help would be greatly appreciated. I'm at a loss.

The xml is located at :
http://webdev.rrdiml.com/netfile_files/test.xml
And the xsl is at:
http://webdev.rrdiml.com/netfile/xsl/D_X01.xsl
    This topic has been closed for replies.

    1 reply

    September 22, 2008
    I poked around and found a custom tag:
    http://www.compoundtheory.com/?action=displayPost&ID=4

    I tried it out and it worked. Thank you very much Mark Mandel!

    Of course I don't know why this worked and CF's function did not.