P.S I should mention, the disable-output-escaping attribute (as used
below) does NOT prevent the conversion of the html entities to < >....
---------- Forwarded message ----------
From: Ahsan Ali <doubleletter(_at_)gmail(_dot_)com>
Date: Jun 8, 2005 6:40 PM
Subject: To avoid converting html entities
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Hi,
In my xml data source, I have the following element:
-------------
<PostData>EK,,,,,75,,,,,DXB,,,,,CDG,,,,,20050901,,,,,1500,,,,,20050901,,,,,2010,,,,,B,,,,,0,430,EK,,,,,74,,,,,CDG,,,,,DXB,,,,,20051001,,,,,1530,,,,,20051002,,,,,10,,,,,B,,,,,0,400,300000,355000,0,0,0,0,AED,86270166,0,0,0,2,0,0,0,,<RulesInfo><UniqueKey>1</UniqueKey><QuoteNum>1</QuoteNum><FareNum>1</FareNum><FareRuleInfo>Y</FareRuleInfo><PermittedDisc>N</PermittedDisc><DiscAdultFare>N</DiscAdultFare><Spare1>NNNYN</Spare1><StartPt>DXB</StartPt><EndPt>CDG</EndPt><FirstTravDt>20050901</FirstTravDt><AirV>EK</AirV><FIC>BLE3MAE1</FIC><TotFareComponent>40840</TotFareComponent><Currency>NUC</Currency><DecPos>2</DecPos><FareAmt>40840</FareAmt><RuleSupplierID>0</RuleSupplierID><RuleNumOrdinal>00C1C5</RuleNumOrdinal><FareTariffNum>0016</FareTariffNum><RuleTextOrdinalNum>F2C2</RuleTextOrdinalNum><RulesApply>Y</RulesApply><RtesApply>Y</RtesApply><NoRulesExist>N</NoRulesExist><Spare2>NNNNN</Spare2><DBInd>N</DBInd><HostUseOnly91>N</HostUseOnly91><PFQuoted>N</PFQuoted><Spare3>YNNNN</Spare3><DBID
/><FareRuleInfoYQual><GlobDirOrdinal>EH</GlobDirOrdinal><HIFCity1
/><HIFCity2
/><MileSurchargeRtgInd>7</MileSurchargeRtgInd><FlownMileComponent>0</FlownMileComponent><MPMComponent>0</MPMComponent><DifBetween>0</DifBetween><ExtraMileCity1
/><ExtraMileCity2 /><ExtraMileCity3
/><OTWTransportingAirV>EK</OTWTransportingAirV><ComponentAirV1
/><ComponentAirV2
/></FareRuleInfoYQual></RulesInfo></PostData>
-------------
I want to select (and output) the above data, without converting the
html entities above to < & >, etc.
The xsl (snippet) is as follows:
<input type="hidden">
<xsl:attribute name="value">
<xsl:value-of select="PostData" disable-output-escaping="yes"/>
</xsl:attribute>
</input>
The output method is set to html... & I'm using MSXSL (i.e xslt 1.0)
Another quick question.. Is it possible to write the above xsl code in
such a way that the input tag is output as <input />, and _not_
<input></input>
Any help is appreciated
Thanks,
Ahsan
--
Muted Musings - http://doubleletter.blogspot.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--