Jim, Based on the code you have below you might want to try:
tokenize(fn:string(@class), ' ')
Hope this helps.
-fs
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James A.
Robinson
Sent: Friday, March 14, 2008 6:26 PM
To: [email protected]
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 [EMAIL PROTECTED]
Stanford University HighWire Press http://highwire.stanford.edu/
+1 650 7237294 (Work) +1 650 7259335 (Fax)
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
