[Openmcl-devel] CXML-RNG, Plexippus XPath, and Xuriella XSLT

Steven Núñez steven.nunez at illation.com
Sun May 20 16:16:11 PDT 2012


Interesting. Below is the output on my system (Darwin Kernel Version
11.3.0, MacOS C 10.7.3, Intel Core i7). Probably unrelated, but I notice
that QuickLisp isn't picking up the cxml-stp dependency, see below for
example of that.

I saw Dave pushed a change into GitHub, but following the thread, I
noticed it broke SBCL, so I'm not expecting it be fixed here, just
demonstrating the error I'm seeing.

Cheers,
	- Steve


__________________________________________________________________
Welcome to Clozure Common Lisp Version 1.8-r15367M  (DarwinX8664)!
? (ql:quickload "xpath")
To load "xpath":
  Load 1 ASDF system:
    xpath
; Loading "xpath"
;;; Checking for wide character support... yes, using code points.
;;; Checking for wide character support... yes, using code points.
;;; Building Closure with CHARACTER RUNES
......
("xpath")
? (defparameter *document*
	   (cxml:parse "<test a='1' b='2' xmlns:foo='http://foo'>
                          <child>hello world</child>
                          <foo:child>bar</foo:child>
                        </test>"
		       (stp:make-builder)))

> Error: There is no package named "STP" .
> While executing: CCL::%PARSE-TOKEN, in process listener(1).
> Type :GO to continue, :POP to abort, :R for a list of available restarts.
> If continued: Retry finding package with name "STP".
> Type :? for other options.
1 > pop

? (ql:quickload "cxml-stp")
To load "cxml-stp":
  Load 1 ASDF system:
    cxml-stp
; Loading "cxml-stp"

("cxml-stp")
? (defparameter *document*
	   (cxml:parse "<test a='1' b='2' xmlns:foo='http://foo'>
                          <child>hello world</child>
                          <foo:child>bar</foo:child>
                        </test>"
		       (stp:make-builder)))
*DOCUMENT*

? (xpath:string-value (xpath:evaluate "//child" *document*))
> Error: Unknown type specifier: CXML-STP-IMPL::DOCUMENT-TYPE
> While executing: CCL::%%TYPEP, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 > 






On 2012-05-21 1:00 , "rm at tuxteam.de" <rm at tuxteam.de> wrote:

>On Sun, May 20, 2012 at 10:54:58AM +0000, Steven N??ez wrote:
>> Greetings,
>> 
>> Has anyone got any of the above working on CCL? Specifically I'm trying
>>to use Plexippus, but get:
>> 
>>         Unknown type specifier: CXML-STP-IMPL::DOCUMENT-TYPE
>> 
>> When invoking any Plexippus functions. Not even the simple examples in
>>the documentation run. This is on the latest 1.8 CCL.
>> 
>> Any other suggestions for XPath with CCL?
>
>No problem here:
>
>*-------------------------------------------------------------------------
>----
>|  
>| (ql:quickload "xpath")
>| 
>| (defvar *doc* 
>|   (cxml:parse "<doc><a>foo</a><b>foo<a>Test</a></b></doc>"
>| (cxml-dom:make-dom-builder))
>|   "A simple xml document")
>| 
>| => *DOC*
>| 
>| (xpath:evaluate "/"  *doc*)
>| 
>| => #<XPATH:NODE-SET #<DOCUMENT {C8F9189}>, ... {B7DF609}>
>| 
>| (defvar all-a-nodes (xpath:evaluate "//a/text()"  *doc*))
>| 
>| => ALL-A-NODES
>| 
>| (xpath:do-node-set (a-node all-a-nodes)
>|   (format t "Node ~A~%" (xpath:string-value a-node)))
>| 
>| Node foo
>| Node Test
>| => NIL
>| 
>*-------------------------------------------------------------------------
>------------
>
>
>Maybe you can report to us your version/platform of CCL? And hoew did
>you load cxml/plexippus etc.?
>
> Cheers, Ralf Mattes
>
>> Regards,
>> - SteveN
>> 
>> --
>> Illation Pty Ltd
>> 8/350 Collins Street
>> Melbourne 3000
>> 
>> T:   +61 3 8399 9442
>> M: +61 4 0096 4240
>> 
>
>> _______________________________________________
>> Openmcl-devel mailing list
>> Openmcl-devel at clozure.com
>> http://clozure.com/mailman/listinfo/openmcl-devel
>




More information about the Openmcl-devel mailing list