[MarkLogic Dev General] query re schema and xs:NMTOKENS vs.xs:string

Frank Sanders Frank.Sanders at marklogic.com
Sun Mar 16 08:14:51 PST 2008


Jim,

Based on the code you have below you might want to try:

	tokenize(fn:string(@class), ' ')

Hope this helps.

-fs

-----Original Message-----
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of James A.
Robinson
Sent: Friday, March 14, 2008 6:26 PM
To: general at developer.marklogic.com
Subject: [MarkLogic Dev General] query re schema and xs:NMTOKENS
vs.xs:string


I'm running into all manner of trouble trying to work with MarkLogic
3.2-3 when it comes to @class attributes in XHTML elements.  I'm working
through an XDBC interface which had an XHTML schema bound to the XHTML
ns. If I delete this setting, do I have to reindex the database before
any mapping of @class to xs:NMTOKENS stops being in effect? (I want to
just treat @class as an xs:string and tokenize it myself to work around
these problems)

The admin docs seem to indicate no further actions ar necessary, but
now I'm seeing errors saying that tokenize(@class, ' ') can't be run,
purportedly because @class isn't a string... *sigh*


Jim

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       jim.robinson at stanford.edu
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)
_______________________________________________
General mailing list
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4245 bytes
Desc: not available
Url : http://xqzone.marklogic.com/pipermail/general/attachments/20080316/70fdb329/smime.bin


More information about the General mailing list