Click here to Skip to main content

XML / XSL

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: How can i read or get an XML from another host? Pinmemberdaveyerwin7:33 25 Mar '10  
QuestionXSLT help PinmemberAljaz1115:39 24 Mar '10  
AnswerRe: XSLT help PinmvpPIEBALDconsult6:04 24 Mar '10  
GeneralRe: XSLT help PinmemberAljaz1116:13 24 Mar '10  
QuestionSerializing a complex object to XML [modified] PinmemberCDP180223:39 22 Mar '10  
Questionbuild one xml element with few childs PinmemberAljaz11117:04 22 Mar '10  
QuestionXQUERY fn:replace() inserting spaces? Pinmembertom_masciovecchio11:17 12 Mar '10  
This code:
xquery version "1.0";
 
let $doc := element data {
    element row {'abc'}, 
    element row {'def'}
}
 
return
    element results {
        for $a in $doc/node()
        return
            $a/node()
    }
returns (as expected)
<results>abcdef</results>
If I change the last line to $fn:replace($a/node(), 'x', 'y'), i.e.,
xquery version "1.0";
 
let $doc := element data {
    element row {'abc'}, 
    element row {'def'}
}
 
return
    element results {
        for $a in $doc/node()
        return
            fn:replace($a/node(), 'x', 'y')
    }
The results contain a space between the 'c' and 'd':
<results>abc def</results>
 
Does anyone have a clue as to where this is coming from? Note that the replace is looking for a character that's not there, so the search string should not be changed.
 
Thanks.
Questionnew to xml..please help.. PinmemberA-MEN10:11 12 Mar '10  
AnswerRe: new to xml..please help.. PinmemberSeMartens22:36 18 Mar '10  
QuestionMessage Removed Pinmembersampath_dr3:57 12 Mar '10  
AnswerRe: How to convert portlet into gadget PinsupporterMark Nischalke5:32 12 Mar '10  
QuestionHelp Finding Content Pinassociatejammmie9995:16 6 Mar '10  
AnswerRe: Help Finding Content PinmvpStuart Dootson6:06 6 Mar '10  
GeneralRe: Help Finding Content Pinassociatejammmie9997:17 6 Mar '10  
NewsBuilding Web 2.0 UIs with JSF, Realtime Updates with JSF and Ajax Push Taught at GIDS 2010 PinmemberShaguf Mohtisham21:31 3 Mar '10  
QuestionVS2005 doesn't like my XML Schema Pinmembergritter6:10 3 Mar '10  
AnswerRe: VS2005 doesn't like my XML Schema Pinmembergritter7:41 3 Mar '10  
AnswerRe: VS2005 doesn't like my XML Schema PinmvpStuart Dootson5:58 6 Mar '10  
QuestionMessage Removed Pinmemberishwarya mahadevan23:00 2 Mar '10  
GeneralRe: xml code editor PinmemberCovean23:21 2 Mar '10  
QuestionMultiple children in Node question PinmemberRCoate21:04 1 Mar '10  
AnswerRe: Multiple children in Node question PinmvpStuart Dootson22:02 1 Mar '10  
GeneralRe: Multiple children in Node question PinmemberRCoate22:56 1 Mar '10  
GeneralRe: Multiple children in Node question PinmvpStuart Dootson23:04 1 Mar '10  
GeneralRe: Multiple children in Node question PinmemberRCoate12:16 2 Mar '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.5.120210.1 | Last Updated 10 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid