Actually, disable-output-escaping works just fine ;-)
I tried Michal's solution and (a) I now get & in the HTML and
(b) my SVG file is called and loaded correctly.
HTML *might* be OK with & in general, but it certainly
wasn't happy in the specific case I mention below; this might
be a browser specific problem (?)... as always I adopt the
"engineering" approach which says that "if it works, leave
well enough alone and ponder the mysteries of it later -
preferably over a nice cold beer!"
<sigh> end of year and my energies are low
now....
>>> [EMAIL PROTECTED] 12/12/2002 06:50:48 >>>
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 & 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="">
> </svg-graph>
> </page>
>
>
> To this stylesheet fragment:
>
> <xsl:template match="page/svg-graph">
> <div align="left">
> <DEFANGED_embed pluginspage="http:///www.adobe.com/svg/viewer/install/"
> type="image/svg-xml"
> width="500" height="300" name="SCVEmbed"
> 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">
> <DEFANGED_embed pluginspage="http:///www.adobe.com/svg/viewer/install/"
> type="image/svg-xml"
> width="500" height="300" name="SCVEmbed"
> src=""/>
> </div>
> <a href="">Link</a>
>
>
> In order for the embedded SVG to work properly, the &
> 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 <DEFANGED_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]>
>>> [EMAIL PROTECTED] 12/12/2002 06:50:48 >>>
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 & 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="">
> </svg-graph>
> </page>
>
>
> To this stylesheet fragment:
>
> <xsl:template match="page/svg-graph">
> <div align="left">
> <DEFANGED_embed pluginspage="http:///www.adobe.com/svg/viewer/install/"
> type="image/svg-xml"
> width="500" height="300" name="SCVEmbed"
> 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">
> <DEFANGED_embed pluginspage="http:///www.adobe.com/svg/viewer/install/"
> type="image/svg-xml"
> width="500" height="300" name="SCVEmbed"
> src=""/>
> </div>
> <a href="">Link</a>
>
>
> In order for the embedded SVG to work properly, the &
> 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 <DEFANGED_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]>