Re: [Xsltforms-support] Output image/svg+xml
Brought to you by:
alain-couthures
From: Grégoire C. <gco...@gm...> - 2011-01-20 10:08:14
|
Le 19/01/2011 21:43, COUTHURES Alain a écrit : > >> I think I understand what the "data:" scheme is about (never used it >> before). I thought the "ref" attribute was used to resolve an URI (just >> like with<output mediatype="image/jpeg">), but it seems that, in the >> case of "image/svg+xml", XSLTForms uses this attribute to get an «SVG >> instance». Am I right? >> >> If so, is there a way to display a non-embedded SVG file whose URL is >> computed by XForms? > According to XForms 1.1 specifications at > http://www.w3.org/TR/xforms/#ui-output, this can be forced with a > binding to xsd:anyURI. > > Sorry, this is not yet implemented in XSLTForms... > > -Alain > Hi Alain, I'm surprised by your answer, because I use the exact same tags to display JPEG photos and it works. Inside a <repeat>, I use : <xf:output mediatype="image/jpeg" ref="concat('/services/photos/' , id , '/' , photos/photo[1]/id , '/p')" model="modele-annonces"/> The only difference with the SVG mediatype is the way XSLTForms uses the "ref" attribute in "XFOutput.prototype.setValue". In fact the «image/svg+xml» is an exception. Thanks! Grégoire |