[Yanel-dev] disable-output-escaping="yes"

Michael Wechner michael.wechner at wyona.com
Wed Aug 27 09:33:26 CEST 2014


Hi Balz

Can you send me the resource configuration, which you are using? I guess
it must be something like

  <yanel:custom-config>
    <views xmlns="http://www.wyona.org/yanel/rti/1.0">
      <view id="default">
        <xslt>/app/xslt/global.xsl</xslt>
        <mime-type>text/html</mime-type>
        <serializer key="HTML_TRANSITIONAL">
          <indent>no</indent>
        </serializer>
      </view>

Thanks

Michael

Am 27.08.14 09:26, schrieb basZero:
> Hi,
>
> since I work with Yanel, sometimes I stumble across this "bug", that
> somehow only occurs at the XSLT in Yanel, but not otherwise.
>
> Maybe you also have this issue and solved it somehow?
>
> What I want:
> - 1 Resource has 1 view and 1 XSL.
> - The XSL produces the final HTML.
> - Parts of the HTML should be copied 1:1 from an existing XML in the Yarep
> Repo.
> - So the approach is to code the XSL like this:
>
> <xsl:value-of select="//ns0:myHTMLelement" disable-output-escaping="yes"/>
>
> - The XML has stored some escaped HTML in the node myHTMLelement:
>
> <p>here is some text</p>
>
> I tested a little example here:
>
> http://xsltransform.net/jyH9rLY/3
>
> But when I run it on Yanel, the final HTML is not a paragraph with the text
> "here is some text" but it renders "<p>here is some text</p>"
>
> Obviously something does not work correctly in the XSLT
> (BasicXMLResource.getXMLView())
>
> Any idea?
>
> Cheers, Balz
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20140827/6bcde51d/attachment.html>


More information about the Yanel-development mailing list