that will not work.  disable-output-escaping is disabled in cocoon - search
the archives on dev and users for the reasoning.  There is a processing
instruction that can do this (search the archives again) but it could have
hidden problems.

Are you sure you need to?  HTML is ok with & everywhere you'd need it.
That said, I did have a problem once with a log processor bombing
(improperly) on querystrings using & instead of &.

Geoff Howard

> -----Original Message-----
> From: BOCEK Michal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 6:58 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Converting & to & in HTML output...
>
>
> Test this in xsl: trasformation (stylesheet)
>
> <xsl:value-of disable-output-escaping="yes" select=""@src""/>
>
> MB
> -----Original Message-----
> From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 9:10 AM
> To: [EMAIL PROTECTED]
> Subject: Converting &amp; to & in HTML output...
>
>
> I would appreciate some help with the following problem.
>
> The input of this XML fragment (partially auto-generated
> from an xsp:request):
>
> <page>
>   <svg-graph
> src="graph/graph_WQ.svg?point=1&amp;endyr=2002&amp;varid=1">
>   </svg-graph>
> </page>
>
>
> To this stylesheet fragment:
>
> <xsl:template match="page/svg-graph">
>   <div align="left">
>   <embed pluginspage="http:///www.adobe.com/svg/viewer/install/";
> type="image/svg-xml"
>    width="500" height="300" name="SCVEmbed"
>    src="{@src}"/>
>   </div>
>   <a><xsl:attribute name="href"><xsl:value-of
> select="@src"/></xsl:attribute>Link</a>
> </xsl:template>
>
>
> Yields this output (via a HTML-serialized pipeline):
>
> <div align="left">
>  <embed pluginspage="http:///www.adobe.com/svg/viewer/install/";
> type="image/svg-xml"
>  width="500" height="300" name="SCVEmbed"
>  src="graph/graph_WQ.svg?point=1&amp;endyr=2002&amp;varid=1"/>
> </div>
> <a href="graph/graph_WQ.svg?point=1&endyr=2002&varid=1">Link</a>
>
>
> In order for the embedded SVG to work properly, the &amp;
> in the "src" attributes needs to be converted to a conventional &.
>
> I am not sure why the conversion happens for the <a>
> element and not for the <embed> one, but I would appreciate
> any ideas as to how make this happen?!
>
> Thanks
> Derek
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to