11 : 12 : 13 : 14 : (means: Unknown error in XPath) I already tried some different XML-Files, and also a few diffrent XSL variants (onepage, chapers etc). I tried to parse the XML on read, and I tried to read it as a string. Both read correctly, but the same error on transform. My code is pretty simple: TEST Is this a (known?) Bug in XMLTransform? I dont think, there can be something wrong on my code, and since the XML-files and the XSL are all from verified sources and work fine on xsltproc, I don't think, there is a mistake. Stacktrace reads as follows: coldfusion.xml.XmlProcessException: An error occured while Transforming an XML document. at coldfusion.xml.XmlProcessor.doTransform(XmlProcessor.java:364) at coldfusion.xml.XmlProcessor.access$100(XmlProcessor.java:53) at coldfusion.xml.XmlProcessor$3.run(XmlProcessor.java:325) at java.security.AccessController.doPrivileged(Native Method) at coldfusion.xml.XmlProcessor.transform(XmlProcessor.java:321) at coldfusion.xml.XmlProcessor.transform(XmlProcessor.java:311) at coldfusion.runtime.CFPage.XmlTransform(CFPage.java:265) at cftest2ecfm97120876.runPage(C:\Inetpub\wwwroot\xsltest\test.cfm:12) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilt er.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Thanks for any help! Greetz, Pirf2 [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Pirf2 [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> Unknown XPath error. - Coldfusion - Advanced Techniques

Unknown XPath error. - Coldfusion - Advanced Techniques

Hi, I am trying to assemble an Docbook -> HTML Pr. As XSL-Stylesheet I use the XSLs I got from the Docbook-Homepage, extended with the TLDP customization layer, as I found nicely described here: [url]http://www.happy-monkey.net/docbook/[/url] Using xsltproc via cygwin it generates nice HTML outputs. Now I am trying to do the same thing in ColdFusion 7 , where I found XMLTransform should be the thing I would need. With the examples provided in the doentation it worked fine (but those where no docbooks). But when trying to transform a docbook I get the following message: An error occured while Transforming ...

  1. #1

    Default Unknown XPath error.

    Hi,

    I am trying to assemble an Docbook -> HTML Pr. As XSL-Stylesheet I use the
    XSLs I got from the Docbook-Homepage, extended with the TLDP customization
    layer, as I found nicely described here: [url]http://www.happy-monkey.net/docbook/[/url]
    Using xsltproc via cygwin it generates nice HTML outputs.

    Now I am trying to do the same thing in ColdFusion 7 , where I found
    XMLTransform should be the thing I would need. With the examples provided in
    the doentation it worked fine (but those where no docbooks).
    But when trying to transform a docbook I get the following message:

    An error occured while Transforming an XML doent.
    Unbekannter Fehler in XPath.

    The error occurred in C:\Inetpub\wwwroot\xsltest\test.cfm: line 12

    10 : <!---<cffile action="read" file="C:\Dokumente und
    Einstellungen\rfilling\userguide.xml" variable="xmlDoc">--->
    11 : <!---<cfdump var="#xmlDoc#">--->
    12 : <cfset ret = XmlTransform(xmlDoc, "C:\Dokumente und
    Einstellungen\rfilling\docbook-xsl-1.68.1\html\tldp-chapters.xsl")>
    13 : <cfdump var="#ret#">
    14 : </cfoutput>
    (means: Unknown error in XPath)

    I already tried some different XML-Files, and also a few diffrent XSL variants
    (onepage, chapers etc). I tried to p the XML on read, and I tried to read
    it as a string. Both read correctly, but the same error on transform.

    My code is pretty simple:
    <html><head><title>TEST</title></head>
    <body>
    <cfoutput>

    <cfset xmlDoc = XMLP("C:\Dokumente und
    Einstellungen\rfilling\docbook-43.001.xml")>
    <!---<cffile action="read" file="C:\Dokumente und
    Einstellungen\rfilling\userguide.xml" variable="xmlDoc">--->
    <!---<cfdump var="#xmlDoc#">--->
    <cfset ret = XmlTransform(xmlDoc, "C:\Dokumente und
    Einstellungen\rfilling\docbook-xsl-1.68.1\html\tldp-chapters.xsl")>
    <cfdump var="#ret#">
    </cfoutput>
    </body>
    </html>

    Is this a (known?) Bug in XMLTransform? I dont think, there can be something
    wrong on my code, and since the XML-files and the XSL are all from verified
    sources and work fine on xsltproc, I don't think, there is a mistake.

    Stacktrace reads as follows:
    coldfusion.xml.XmlProcesception: An error occured while Transforming an XML
    doent.
    at coldfusion.xml.XmlProcessor.doTransform(XmlProcess or.java:364)
    at coldfusion.xml.XmlProcessor.access$100(XmlProcesso r.java:53)
    at coldfusion.xml.XmlProcessor$3.run(XmlProcessor.jav a:325)
    at java.security.AccessController.doPrivileged(Native Method)
    at coldfusion.xml.XmlProcessor.transform(XmlProcessor .java:321)
    at coldfusion.xml.XmlProcessor.transform(XmlProcessor .java:311)
    at coldfusion.runtime.CFPage.XmlTransform(CFPage.java :265)
    at cftest2ecfm97120876.runPage(C:\Inetpub\wwwroot\xsl test\test.cfm:12)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java :152)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(Inclu deTag.java:343)
    at coldfusion.filter.CfincludeFilter.invoke(Cfinclude Filter.java:65)
    at coldfusion.filter.ApplicationFilter.invoke(Applica tionFilter.java:210)
    at coldfusion.filter.PathFilter.invoke(PathFilter.jav a:86)
    at coldfusion.filter.LicenseFilter.invoke(LicenseFilt er.java:27)
    at coldfusion.filter.ExceptionFilter.invoke(Exception Filter.java:50)
    at
    coldfusion.filter.ClientScopePersistenceFilter.inv oke(ClientScopePersistenceFilt
    er.java:28)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilt er.java:38)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilt er.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(Datasour ceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at coldfusion.bootstrap.BootstrapServlet.service(Boot strapServlet.java:78)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:257)
    at jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable( JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invok eRunnable(ThreadPool.java:349)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:457)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeR unnable(ThreadPool.java:295)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)


    Thanks for any help!
    Greetz,
    Pirf2

    Pirf2 Guest

  2. #2

    Default Re: Unknown XPath error.

    Any tips so far? I found a cfx_xslt tag plugin, but this also does not work, but for some other reasons; it seems not to be compatible with CFMX7. :-(
    Pirf2 Guest

Similar Threads

  1. Unknown Error
    By juli in forum Macromedia Contribute General Discussion
    Replies: 16
    Last Post: September 6th, 09:32 PM
  2. Preflight -- Unknown Error
    By Jonathan_Hodges@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 2
    Last Post: November 20th, 07:09 AM
  3. Unknown error when publishing
    By caroline_g in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: April 15th, 04:42 PM
  4. Dreamweaver & PHP 5.03 - unknown error
    By mobile-fedot in forum Dreamweaver AppDev
    Replies: 1
    Last Post: March 6th, 08:29 AM
  5. Unknown error!!!
    By IgorZ@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 0
    Last Post: April 30th, 10:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •