XPath in XQuery: format-string vs fn:string

When discussing XPath within XQuery, what is the difference between format-string() and fn:string

Thanks
Anthony LuciaAsked:
Who is Participating?
 
Geert BormansConnect With a Mentor Information ArchitectCommented:
string() simply returns the string value of a node or item()
http://www.w3.org/TR/xpath-functions-30/#func-string

there is no such XQuery or XPath function format-string()
there are functions such as format-number() which allow you to add a mask to specify how you want the number to be formatted as a string
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.