Am 01.11.2017 um 22:54 schrieb michael4...@arcor.de:
Hello,
There is a *problem in transforming data vom XML in HTML*.
In XML there are HTML-tags included.
XML original: *text is important.*
HTML goal: *text is important.*
(1) result: text is important.
let $data := text is important.
Hello,
There is a problem in transforming data vom XML in HTML.
In XML there are HTML-tags included.
XML original: text is important.
HTML goal: text is important.
(1) result: text is important.
let $data := text is important.
return
{$data/data()}
(2) result: text is important.
Awesome Leo, thanks!
Similar to what I was thinking about but with a lot or after-thought
optimization!
Great suggestion.
M.
Il 01 nov 2017 1:59 PM, "Leonard Wörteler" <
leonard.woerte...@uni-konstanz.de> ha scritto:
> Hi Marco,
>
> I also do not know of a built-in way to do this, but here is my
Hi Marco,
I also do not know of a built-in way to do this, but here is my shot at an
implementation in XQuery. It uses fast exponentiation [1] and throws a custom
error if there is more than one "e" in the input.
Hope that helps (or is of interest), I had fun hacking it together,
Leo
You need to use xs:float or xs:double instead of xs:decimal to be able to use
the 'e' or 'E' as the exponent separator.
Br,
Kristian K1. nov 2017 13:18 kirjutas kuupäeval Marco Lettere
:
>
> Hi all,
>
> I thought of asking this in parallel of hacking my own parsing
Hi all,
I thought of asking this in parallel of hacking my own parsing procedure
...
Is there a native way to parse scientific notation string into
xs:decimal since a direct casting (xs:decimal("1e1")) is not allowed?
Thanks,
Marco.
Hi Michael,
> Manipulation of an XML structure with flexible declare function
>
> If there are some similar issues or solutions in BaseX community,
> this will be very interesting. Any other sources to learn more about?
You can have a look at the lecture slides that are listed at [1],
Hi Günther,
Thanks for the concise bug report. I stumbled across a similar issue
just recently [1], so I’m glad to confirm that the latest BaseX 9.0
snapshot returns the correct result [2].
All the best,
Christian
[1]
8 matches
Mail list logo