Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. [XSLT] XSLT-UNBPRFX: (err:XTSE0280) Prefix local has no namespace binding
  2. Stack Trace
  3.  
  4. At line 5 column 0:
  5. In xdmp:xslt-eval(<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"><xsl:copy><xsl:apply-templates/></xsl:co...</xsl:stylesheet>, <PersonalInfo><ContactInfo><firstName>Jon</firstName><lastName>Smith</lastName...</PersonalInfo>)
  6. 3. declare function local:changecontent($type) as xs:string
  7. 4. {
  8. 5. switch($type)
  9. 6. case "ssn" return "111-11-1111"
  10. 7. case "Country" return "United State"
  11. At line 29 column 7:
  12. In xdmp:eval("xquery version "1.0-ml";&#10;&#10;declare function loc...", (), <options xmlns="xdmp:eval"><database>15163595336534263915</database><isolation>different-tr...</options>)
  13. $stylesheet := <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"><xsl:copy><xsl:apply-templates/></xsl:co...</xsl:stylesheet>
  14. 27. </xsl:stylesheet>
  15. 28.
  16. 29. return xdmp:xslt-eval($stylesheet, document{ <PersonalInfo>
  17. 30. <ContactInfo>
  18. 31. <firstName>Jon</firstName>
  19. In /MarkLogic/appservices/qconsole/qconsole-amped.xqy on line 200
  20. In amped-qconsole:qconsole-eval("xquery version "1.0-ml";&#10;&#10;declare function loc...", (), <options xmlns="xdmp:eval"><database>15163595336534263915</database><isolation>different-tr...</options>)
  21. $xquery := "xquery version "1.0-ml";&#10;&#10;declare function loc..."
  22. $vars := ()
  23. $options := <options xmlns="xdmp:eval"><database>15163595336534263915</database><isolation>different-tr...</options>
  24.  
  25. xquery version "1.0-ml";
  26.  
  27. declare function local:changecontent($type) as xs:string
  28. {
  29. switch($type)
  30. case "ssn" return "111-11-1111"
  31. case "Country" return "United State"
  32. default return "Dummy"
  33. };
  34.  
  35. let $stylesheet := <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" >
  36. <xsl:template match="/">
  37. <xsl:copy>
  38. <xsl:apply-templates/>
  39. </xsl:copy>
  40. </xsl:template>
  41. <xsl:template match="ssn|Country">
  42. <xsl:copy>
  43. <xsl:value-of select="local:changecontent(local-name(.))"/>
  44. </xsl:copy>
  45. </xsl:template>
  46. <xsl:template match="*">
  47. <xsl:copy>
  48. <xsl:apply-templates/>
  49. </xsl:copy>
  50. </xsl:template>
  51. </xsl:stylesheet>
  52.  
  53. return xdmp:xslt-eval($stylesheet, document{ <PersonalInfo>
  54. <ContactInfo>
  55. <firstName>Jon</firstName>
  56. <lastName>Smith</lastName>
  57. <ssn>123-33-2222</ssn>
  58. <addr>
  59. <addr1>123 Mocking Bird Lane</addr1>
  60. <city>Queens</city>
  61. <state>NY</state>
  62. </addr>
  63. </ContactInfo>
  64. </PersonalInfo>
  65. }/element())
  66.  
  67. namespace-uri(<local:x/>)
  68.  
  69. http://www.w3.org/2005/xquery-local-functions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement