& in XSL
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Tue Aug 28, 2007 6:01 pm
& in XSL
I have a problem converting the following JavaScript code in DHTML to XSL.
The problem area is:
<script
src="
https://seal.verisign.com/getseal?host_ ... co.uk&siz=
e=3DS&use_flash=3DYES&use_transparent=3DYES&lang=3Den">
script>
The code should display VeriSign seal and when the seal is clicked, it
should display the validitiy period.
In IE, it displays the seal but whcn clicked, it displays an error message.
In FireFox, only VeriSign seal is displayed with no other page info.
Please help to solve this issue. Much appreciated.
XSL document:
<?xml version=3D"1.0" encoding=3D"iso-8859-1"?><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY ldquo """>
<!ENTITY rdquo """>
<!ENTITY pound "£">
<!ENTITY amp "&">
]>
<xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"
http://www.w3.org/1999/XSL/Transform">
<xsl:output method=3D"html" indent=3D"yes" doctype-public=3D"-//W3C//DTD
XHTML 1.0Transitional//EN" doctype-system=3D"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
omit-xml-declaration=3D"yes" encoding=3D"iso-8859-1"/>
<xsl:strip-space elements=3D"*"/>
<xsl:include href=3D"kugen.xsl" />
<xsl:include href=3D"global.xsl"/>
<xsl:template match=3D"page">
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<!--Call the page head template -->
<xsl:call-template name=3D"template_head"/>
<body>
<!--Call the page shortcuts template-->
<xsl:call-template name=3D"template_shortcuts"/>
<div id=3D"page">
<!--Call the page header template-->
<xsl:call-template name=3D"template_header"/>
<!--Call the page navigation template-->
<xsl:call-template name=3D"template_navigation">
<xsl:with-param name=3D"page_section" />
</xsl:call-template>
<div id=3D"container" class=3D"clear">
<xsl:call-template name=3D"headP"/>
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" class=3D"StdHdr">
<tbody>
</tbody>
</table>
<div class=3D"StdTxtL">
<p></p>
<div class=3D"StdTxtM">
<table class=3D"StdTblL" border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
<tbody>
<tr>
<td class=3D"HeadingB">Holiday Requirements</td>
<td class=3D"HeadingHelp"><a
href=3D"javascript:Showinfowindow('/Help/holiday_requirements.html');"> Nee=
d
Help?</a></td>
</tr>
</tbody>
</table>
</div>
Please complete the following details to check the availability of your
holiday and make a booking or quote.
</div>
<xsl:apply-templates select=3D"//page/requirements/MainAt"/>
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" class=3D"StdTblL">
<tbody>
</tbody>
</table>
<div class=3D"StdTxtL"><p><br/>
<table width=3D"600" border=3D"0" cellspacing=3D"0" cellpadding=3D"0">
<tr>
<td>
<span class=3D"Gentext">Payment for your itinerary is by debit or credit ca=
rd
when you book. For your peace of mind, our site is protected by Verisign an=
d
all card payments are encrypted using the internationally accepted <a
href=3D"javascript:Showinfowindow('/popups/secure.html')" class=3D"textlink=
">
Security System, SSL</a>.</span>
</td>
</tr>
</table>
<table width=3D"135" border=3D"0" cellpadding=3D"2" cellspacing=3D"0">
<tr>
<td width=3D"135" align=3D"center" valign=3D"top">
<script
src=3D"
https://seal.verisign.com/getseal?host_ ... k&size=3DS&=
amp;ue_flash=3DYES&use_transparent=3DYES&lang=3Den">
</script>
<br/>
<a href=3D"http://www.verisign.com/ssl-certificate/" target=3D"_blank"
style=3D"color:#000000;text-decoration:none; font:bold 7px verdana,sans-ser=
if;
letter-spacing:.5px; text-align:center; margin:0px; padding:0px;">ABOUT SSL
CERTIFICATES</a>
</td>
</tr>
</table>
<img height=3D"1" width=3D"1" src=3D"
https://switch.atdmt.com/action/outkuo_ ... t_10"/></p>
</div>
<!-- <xsl:call-template name=3D"FOO"/> -->
<!--Call the page footer template-->
<xsl:call-template name=3D"template_footer"/>
</div>
</div>
</body>
</html>
The problem area is:
<script
src="
https://seal.verisign.com/getseal?host_ ... co.uk&siz=
e=3DS&use_flash=3DYES&use_transparent=3DYES&lang=3Den">
script>
The code should display VeriSign seal and when the seal is clicked, it
should display the validitiy period.
In IE, it displays the seal but whcn clicked, it displays an error message.
In FireFox, only VeriSign seal is displayed with no other page info.
Please help to solve this issue. Much appreciated.
XSL document:
<?xml version=3D"1.0" encoding=3D"iso-8859-1"?><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY ldquo """>
<!ENTITY rdquo """>
<!ENTITY pound "£">
<!ENTITY amp "&">
]>
<xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"
http://www.w3.org/1999/XSL/Transform">
<xsl:output method=3D"html" indent=3D"yes" doctype-public=3D"-//W3C//DTD
XHTML 1.0Transitional//EN" doctype-system=3D"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
omit-xml-declaration=3D"yes" encoding=3D"iso-8859-1"/>
<xsl:strip-space elements=3D"*"/>
<xsl:include href=3D"kugen.xsl" />
<xsl:include href=3D"global.xsl"/>
<xsl:template match=3D"page">
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<!--Call the page head template -->
<xsl:call-template name=3D"template_head"/>
<body>
<!--Call the page shortcuts template-->
<xsl:call-template name=3D"template_shortcuts"/>
<div id=3D"page">
<!--Call the page header template-->
<xsl:call-template name=3D"template_header"/>
<!--Call the page navigation template-->
<xsl:call-template name=3D"template_navigation">
<xsl:with-param name=3D"page_section" />
</xsl:call-template>
<div id=3D"container" class=3D"clear">
<xsl:call-template name=3D"headP"/>
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" class=3D"StdHdr">
<tbody>
</tbody>
</table>
<div class=3D"StdTxtL">
<p></p>
<div class=3D"StdTxtM">
<table class=3D"StdTblL" border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
<tbody>
<tr>
<td class=3D"HeadingB">Holiday Requirements</td>
<td class=3D"HeadingHelp"><a
href=3D"javascript:Showinfowindow('/Help/holiday_requirements.html');"> Nee=
d
Help?</a></td>
</tr>
</tbody>
</table>
</div>
Please complete the following details to check the availability of your
holiday and make a booking or quote.
</div>
<xsl:apply-templates select=3D"//page/requirements/MainAt"/>
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" class=3D"StdTblL">
<tbody>
</tbody>
</table>
<div class=3D"StdTxtL"><p><br/>
<table width=3D"600" border=3D"0" cellspacing=3D"0" cellpadding=3D"0">
<tr>
<td>
<span class=3D"Gentext">Payment for your itinerary is by debit or credit ca=
rd
when you book. For your peace of mind, our site is protected by Verisign an=
d
all card payments are encrypted using the internationally accepted <a
href=3D"javascript:Showinfowindow('/popups/secure.html')" class=3D"textlink=
">
Security System, SSL</a>.</span>
</td>
</tr>
</table>
<table width=3D"135" border=3D"0" cellpadding=3D"2" cellspacing=3D"0">
<tr>
<td width=3D"135" align=3D"center" valign=3D"top">
<script
src=3D"
https://seal.verisign.com/getseal?host_ ... k&size=3DS&=
amp;ue_flash=3DYES&use_transparent=3DYES&lang=3Den">
</script>
<br/>
<a href=3D"http://www.verisign.com/ssl-certificate/" target=3D"_blank"
style=3D"color:#000000;text-decoration:none; font:bold 7px verdana,sans-ser=
if;
letter-spacing:.5px; text-align:center; margin:0px; padding:0px;">ABOUT SSL
CERTIFICATES</a>
</td>
</tr>
</table>
<img height=3D"1" width=3D"1" src=3D"
https://switch.atdmt.com/action/outkuo_ ... t_10"/></p>
</div>
<!-- <xsl:call-template name=3D"FOO"/> -->
<!--Call the page footer template-->
<xsl:call-template name=3D"template_footer"/>
</div>
</div>
</body>
</html>
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service