[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

how red ampersand from the xml file

Subject: how red ampersand from the xml file
From: henry human <henry_human@xxxxxxxx>
Date: Fri, 25 Mar 2005 18:20:30 +0100 (CET)
ampersand in xml file
hello,
how could read ampersand 
from  this tag:<bbb>before&after</bbb>
i tried itto replace it bt i get error!


<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="14586.xsl"?>
<Job>
<Jobsdetails>

<worksPart1>

<bbb>before&after</bbb>
<worksNr>20362</worksNr>

</worksPart1>

-------
<?xml version='1.0'?> 
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
<xsl:output method="html"/> 
<xsl:template match="/Job">
<html><head><META http-equiv="Content-Type"
content="text/html; charset=iso-8859-1"/>

</head><body><table>

<xsl:apply-templates select="Jobsdetails/worksPart1"/>
</table></body></html>

</xsl:template>


<xsl:template match="worksPart1" >
<tr> <td><xsl:value-of select="worksNr"/>&amp;</td>
   <td>

    <xsl:if test="contains(bbb,&#38;)">
    <xsl:value-of
select="substring-before(bbb,&#38;)"/>
    myampersand<xsl:value-of
select="substring-after(bbb,&#38;)"/>
    </xsl:if>
       </td>       
 </tr>
</xsl:template>
</xsl:stylesheet>

</Jobsdetails>
</Job>



	

	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.