Subject: [xsl] To avoid converting html entities From: Ahsan Ali <doubleletter@xxxxxxxxx> Date: Wed, 8 Jun 2005 18:40:25 +0400 |
Hi, In my xml data source, I have the following element: ------------- <PostData>EK,,,,,75,,,,,DXB,,,,,CDG,,,,,20050901,,,,,1500,,,,,20050901,,,,,20 10,,,,,B,,,,,0,430,EK,,,,,74,,,,,CDG,,,,,DXB,,,,,20051001,,,,,1530,,,,,200510 02,,,,,10,,,,,B,,,,,0,400,300000,355000,0,0,0,0,AED,86270166,0,0,0,2,0,0,0,,& lt;RulesInfo><UniqueKey>1</UniqueKey><QuoteNum>1</Quo teNum><FareNum>1</FareNum><FareRuleInfo>Y</FareRuleIn fo><PermittedDisc>N</PermittedDisc><DiscAdultFare>N</ DiscAdultFare><Spare1>NNNYN</Spare1><StartPt>DXB</Sta rtPt><EndPt>CDG</EndPt><FirstTravDt>20050901</FirstTr avDt><AirV>EK</AirV><FIC>BLE3MAE1</FIC><TotFare Component>40840</TotFareComponent><Currency>NUC</Currency&g t;<DecPos>2</DecPos><FareAmt>40840</FareAmt><RuleS upplierID>0</RuleSupplierID><RuleNumOrdinal>00C1C5</RuleNum Ordinal><FareTariffNum>0016</FareTariffNum><RuleTextOrdinal Num>F2C2</RuleTextOrdinalNum><RulesApply>Y</RulesApply>& lt;RtesApply>Y</RtesApply><NoRulesExist>N</NoRulesExist> <Spare2>NNNNN</Spare2><DBInd>N</DBInd><HostUseOnly 91>N</HostUseOnly91><PFQuoted>N</PFQuoted><Spare3> YNNNN</Spare3><DBID /><FareRuleInfoYQual><GlobDirOrdinal>EH</GlobDirOrdinal> <HIFCity1 /><HIFCity2 /><MileSurchargeRtgInd>7</MileSurchargeRtgInd><FlownMileCom ponent>0</FlownMileComponent><MPMComponent>0</MPMComponent& gt;<DifBetween>0</DifBetween><ExtraMileCity1 /><ExtraMileCity2 /><ExtraMileCity3 /><OTWTransportingAirV>EK</OTWTransportingAirV><ComponentAi rV1 /><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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] (correction) [xsl] diffe, JBryant | Thread | [xsl] Fwd: To avoid converting html, Ahsan Ali |
RE: [xsl] (correction) [xsl] diffe, JBryant | Date | Re: [xsl] differences between x != , G. Ken Holman |
Month |