I was able to find it on my own by searching on "How To Embed CData" in Google. The proper way to do it in your XSL is to use disable-output-escaping="yes". e.g.
<xsl:value-of select="MemoField" disable-output-escaping="yes" />
and that will preserve the html tags in the CData of the XML...
I don't have the code on this system and I kinda have to keep it abstract and generalized. Emm..
Basically what the XML looks like is this
<MemoTag>
<![CDATA[
<pre>
• First bullet
• Second bullet
</pre>
]]>
</MemoTag>
I then pass that through an XSLT to transform it into HTML. When it...
How do I make it so that the < and > don't get turned into < and > ? That is my other big problem. Even if I wrap it in <pre> tags the < > still get changed. I need someway to preserve the html tag there. It looks fine in the XML its just the XSL that is changing the tags on...
Ok, let me re-ask this in a different way.
Is it possible in XSL to make a function that basically says:
If this statement has "<br/>" in it
Print </br> instead
Else
Ignore
Or is there a way to replace all of the "<br/>" with <br/> so that in the transformation I can actually get break...
Problem is that the XSLT then parses out the & into amp;. Honestly if I could find someway to stop the XSLT from parsing out <br/> then I would be able to use that. The problem isn't with the XML getting the wrong information really because I can add <br/> into the field I export and it shows...
Hi everyone,
First off, nice forum you have here, lots of great information. I have a small problem that is ending up being more of a headache than I like. I currently export an Access query that has 3 memo fields into XML. When they turn into XML the linebreaks that I once had are lost. I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.