Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XQuery Help and Discussion
»
tokenizing a string - problem with < and &
Topic
Prev Topic
Next Topic
next
Subject:
tokenizing a string - problem with < and &
Author:
Jack Tan
Date:
07 Jun 2007 05:18 PM
Originally Posted: 07 Jun 2007 05:16 PM
I have a problem with tokenizing an element with text. Here is an example:
let $aa := "a <150 &&( i==0 || l ==0 )"
(: this wont work but it reflects the intended action - setup a text for replacement:)
The text is an excerpt from web page and I want parse the content of the $aa. First I am trying to tokenize the line
to get something like this:
a
150
i
0
l
0
if I am not mistaken this should work with
fn:tokenize($aa,"[#38#60#62();=+-]")
But it does not. How can I tokenize string with special characters ("&","<", ">") ???
Thanks for suggestions
Jtan
next
Subject:
tokenizing a string - problem with < and &
Author:
Minollo I.
Date:
07 Jun 2007 09:22 PM
fn:tokenize($aa,"[&<>();=+-]")
?
top
Subject:
tokenizing a string - problem with < and &
Author:
Jack Tan
Date:
08 Jun 2007 02:37 AM
You are right - it worked.
Thanks
jtan
Prev Topic
Next Topic
Powered by
Stylus Studio
, the world's leading
XML IDE
for
XML
,
XSLT
,
XQuery
,
XML Schema
,
DTD
,
XPath
,
WSDL
,
XHTML
,
SQL/XML
, and
XML Mapping
!
Go to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.