Bj,
J'ai généré un fichier xml d'un fichier svg (en seulement changeant le suffix) et je fais une requête (.xq) sur ce fichier. Il a rien obetenu et c'est faux.
le title.xq est assez simple:
title.xq
(: Select title of svg
declare variable $inputDocument external;
doc($inputDocument)/svg/title
et le xml que j'ai généré est :
svg1.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="176.389mm" height="176.389mm"
xmlns="http://www.w3.org/2000/svg" xmlnslink="http://www.w3.org/1999/xlink" version="1.2" baseProfile="tiny">
<title>Qt Svg Document</title>
<desc>Generated with Qt</desc>
<defs>
</defs>
<g fill="none" stroke="black" vector-effect="non-scaling-stroke" stroke-width="1" fill-rule="evenodd" stroke-linecap="square" stroke-linejoin="bevel" >
<g fill="none" stroke="#000000" stroke-opacity="1" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1,0,0,1,184,213)"
font-family="MS Shell Dlg 2" font-size="8.25" font-weight="400" font-style="normal"
>
<path fill-rule="evenodd" d="M-100,-100 L100,-100 L100,100 L-100,100 L-100,-100"/>
</g>
<g fill="none" stroke="#000000" stroke-opacity="1" vector-effect="non-scaling-stroke" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1,0,0,1,346,383)"
font-family="MS Shell Dlg 2" font-size="8.25" font-weight="400" font-style="normal"
>
<path fill-rule="evenodd" d="M-100,-100 L100,-100 L100,100 L-100,100 L-100,-100"/>
</g>
</g>
</svg>
qq'un peut m'aider pourquoi il n'y a rien comme résultat?
j'utilise qt xml pattern module j'ai testé avec d'autre xml et xq ça peut fonctionner...
Partager