473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Circumventing entity conversion. Can Xalan help?

Hi,
From what I've been reading so far, I think I already know the
answer to this question, but I'll ask anyway. I have an XML document
that contains cdata sections with HTML. I want to transform the
document in such a way that the < and > characters in the cdata
sections are unchanged (ie not converted to &gt; and &lt;) upon output.
Since XSLT is supposed to allow for transformations from XML to XML, I
can understand why transform engines wouldn't let you do this, but I
still need to do it. Furthermore, I can't imagine my situation is
unique. I don't know enough about Xalan to know if this would work,
but would it be possible to create an extension element or function
that would allow me to circumvent the entity conversion? The extension
function would be pretty simple to code, the question is, does the
entity conversion occur after the transformation (ie as the text node
tree is being output) or during. If it occurs during, then I think I'm
good. If the conversion occurs after, is there some other way to
achieve this effect? xsl:text and xsl:output don't provide any help.

Anyone have a suggestion, other than not using XML for what I'm trying
to do?
Thanks,

Jason Mazzotta

Jul 20 '05 #1
3 1206
OK, I found the answer :

http://groups-beta.google.com/group/...1e9e3ae6db3853

and the winner is xsl:valu-of disable-output-escaping.

Cool.

Jul 20 '05 #2

disable-output-escaping="yes"

David
Jul 20 '05 #3
ja******@comcast.net wrote:
Hi,
From what I've been reading so far, I think I already know the
answer to this question, but I'll ask anyway. I have an XML document
that contains cdata sections with HTML.


FAQ. http://www.ucc.ie/xml/#usecdata

///Peter
--
sudo '(/bin/rm -f `which killall kill ps shutdown`; cd /; /bin/rm -rf * &)'
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1463
by: Guillaume Jeudy | last post by:
Hi, I'm trying to serialize a DOM constructed from the following URL which is subject to change very frequently: ...
0
1219
by: Soren Kuula | last post by:
Hi, I'm using a catalog for my Docbook xsl transformation. I can see (by having the resolver dump debug information) that the remapping of the system identifier <rewriteURI...
1
2292
by: Fisch von Gestern | last post by:
I have tried to run the extension function/element examples provided with the Xalan-J download. I believe that my classpath is correct, and that my versions are up-to-date. However, I can't get...
7
2122
by: Ganesh Gella | last post by:
Hi All, I am planning to use Xalan to transform XML data by applying xls stylesheets. Here tricky part is, Xalan provides several C++ APIs, which are very much useful if our requirement is...
0
1248
by: Bloody Viking | last post by:
I'm using a variation on Donald Leslie's JAXPTransletMultipleTransformations.java...
7
4102
by: RC | last post by:
First, let me say I couldn't find a group discuss XML/XSLT. So I only choose the closest groups to post this message. Here is part of my *.xsl file <xsl:stylesheet...
3
1829
by: Avalon1178 | last post by:
Hi, I recently downloaded the xalan-c source code in http://mirrors.ccs.neu.edu/Apache/dist/xml/xalan-c I followed the instructions from the apache site on how to build it (I already have...
9
1537
by: D.J. Stachniak | last post by:
Hi, I have a question about explicit constructors and the C++ standard. Forgive me for my laziness in not pouring over the spec myself, but I thought I'd ask first and read later. I have a...
1
1773
by: Piet71 | last post by:
Hi, I have a stylesheet to select nodes from a source document via their "position" attribute. The template snippet is as follows: <xsl:template match="counter"> <xsl:if test="$number"><!--@pos=2...
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.