Click here to Skip to main content

XML / XSL

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: xsl:apply-templates help please! PinmvpStuart Dootson5:14 6 Jul '10  
GeneralRe: xsl:apply-templates help please! PinmemberNeophyte306:47 6 Jul '10  
GeneralRe: xsl:apply-templates help please! PinmvpStuart Dootson15:38 6 Jul '10  
QuestionHow to upload an Xml Schema to my ftp server and have Visual Studio provide intellisense for it? PinmemberTheodor Storm Kristensen3:07 1 Jul '10  
AnswerRe: How to upload an Xml Schema to my ftp server and have Visual Studio provide intellisense for it? PinsupporterMark Nischalke3:38 1 Jul '10  
GeneralRe: How to upload an Xml Schema to my ftp server and have Visual Studio provide intellisense for it? PinmemberTheodor Storm Kristensen4:11 1 Jul '10  
Questiontransformed cdata content not escaping properly (or atleast the way i want it it) Pinmembernyhtal20:59 30 Jun '10  
need a little help with this one please.
 
i have an xml document that contains nodes with cdata sections and am transforming it with xsl. i can get the cdata section to render properly by using <xsl:value-of select="content" disable-output-escaping="yes"/> in my <xsl:template> but if i try to pass the results of that template to another template my cdata section becomes escaped. i tried converting the cdata section to an escaped attribute in my xml but get the same problem.
 
even an answer of "sorry, not possible." is greatful as i've been trying everything i can think of to get this to work and have come up with nothing.
 
i can restructure my xml if need be, only i cannot convert the cdata content to valid xml (it needs to be escaped).
 
sample code:
 
<xsl:template match="/">
<xsl:variable name="myStructuredContent"><xsl:call-template name="GetStructuredContent"/></xsl:variable>
 
<xsl:call-template name="Container_RoundedCorners">
<xsl:with-param name="content" select="$myStructuredContent">
</xsl:call-template>
</xsl:template>
 
<xsl:template name="GetStructuredContent">
<h2><xsl:value-of select="title"/></h2>
<div><xsl:value-of select="content" disable-output-escaping="yes"/></div>
<div><a href="{morelinkhref}"><xsl:value-of select="morelinktext"/></a></div>
</xsl:template>
 
<xsl:template name="Container_RoundedCorners">
<xsl:param name="content"/>
<div class="RoundedCornerTopLeft"><div class="RoundedCornerTopRight"><xsl:copy-of select="$content"/></div></div>
</xsl:template>
 
thanks a bazillion in advance.
QuestionVXML Pinmembermuka665:15 29 Jun '10  
QuestionHow to create xmpp client using C#? Pinmembermanjeet pimpale0:13 18 Jun '10  
Answercross-post PinmvpLuc Pattyn3:27 18 Jun '10  
QuestionError in running ASP.NET C# (MySql) site PinmemberDot-Net-Dev18:24 16 Jun '10  
QuestionBeginner help to tag Bold text in DocBook v5 for XML export [modified] Pinmemberkeeta113:06 16 Jun '10  
QuestionWrite XSL for this xml i want to convert xml to CSV formt Pinmemberksanju100010:14 12 Jun '10  
AnswerRe: Write XSL for this xml i want to convert xml to CSV formt PinmemberSeMartens22:10 15 Jun '10  
Questionwriting to xml file PinmemberFarraj18:17 8 Jun '10  
AnswerRe: writing to xml file PinmvpStuart Dootson3:13 9 Jun '10  
GeneralRe: writing to xml file PinmemberFarraj5:39 9 Jun '10  
AnswerRe: writing to xml file PinmemberEstys6:22 9 Jun '10  
GeneralRe: writing to xml file PinmemberFarraj9:42 9 Jun '10  
QuestionHow to access xml file simultaneously at runtime PinmemberRaghu_M6:12 21 May '10  
QuestionUsing SAX and PHP Pinmembervho12321:22 18 May '10  
QuestionXSLT and asp.NET mixture Pinmemberceviz14:02 16 May '10  
AnswerRe: XSLT and asp.NET mixture PinsupporterMark Nischalke18:08 16 May '10  
AnswerRe: XSLT and asp.NET mixture PinmemberAtwind0:42 28 Jun '10  
Questionlanguage localization using XML in VC++ (MFC) Pinmemberpunyah201010:03 8 May '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.5.120209.1 | Last Updated 10 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid