Is it possible to do the following by just using XPath? I would like to find a way to do this in 1.0 I don't think its possible in 1.0.
Example
<test>
<title>title1</title>
<title>title2</title>
<title>title3</title>
<creator>creator1</creator>
<creator>creator2</creator>
</test>
I want the following output:
title1 creator1
title2 creator2
title3
I was thinking this might be more suited for xquery but I'm not sure as I have never used it. It would be a lot of work to add xquery to my current application and why I'm trying to avoid. The closest thing I have come up with for working was using
/test/title/fn:string-join( (text(), /test/creator/text()[position()]), ' ')
The issue being I get both creators in this example for all. I was wonder if there was some way to get the current position and set the position for creator? I know how to do this in xslt easily but that is not a option for me.