[XSL] - Avoiding the processing of a piece of XML

R

Rocchi Cesare

Hiyall,

I'm trying to do some transformation that doesn't succeed as I
expected.
I have some piece of xml which I don't want to be *absolutely*
changed, because
it has been carefully written. e.g. in the following code

<and>
<tag att1='val1'/>
...
</and>

I don't want "tag" to be processed because the processor (I use
XALAN-J) changes
it by substituting the single quote with the double one, and I want to
avoid this transformation. I tried to put tag in CDATA but it
transforms the "<"
in the corresponding entity &lt; and I want to avoid also this too.

How can I specify in the XSL file that a given tag has to be left
unchanged?

I tried also <xsl:copy-of> but the copy change the single quote.

As alternative, isn't possible to set the "quote for attributes" a
single quote in the transformer or serializer or, in general, the
writer?

Thanks in advance

-c.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top