AW: [xsl] skip formatting ala <pre>?

Subject: AW: [xsl] skip formatting ala <pre>?
From: "Huditsch Roman" <Roman.Huditsch@xxxxxxxxxxxxx>
Date: Tue, 30 Nov 2004 12:23:54 +0100
If I have understood you correctly

<xsl:template match="MyPre">
	<xsl:copy-of select="."/>
</xsl:template>

should do it (assuming that no namespaces are used)

wbr,
Roman

_______________________________________

Roman Huditsch
IT and Electronic Publishing
LexisNexis ARD Orac
Marxergasse 25
1030 Vienna
Austria
ph: +43-1-534 52-1514
f: +43-1-534 52-140
e-mail roman.huditsch@xxxxxxxxxxxxx
www.lexisnexis.at

> -----Urspr|ngliche Nachricht-----
> Von: Wong Chin Shin [mailto:publicbbs@xxxxxxxxxxxxxxxx]
> Gesendet: Dienstag, 30. November 2004 12:11
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Betreff: [xsl] skip formatting ala <pre>?
>
> Hi,
>
> Let's say for example an XML file contains the following element:
>
> <MyPre><p>Hello<br />this is a <a href="http://www.google.com";
> alt="nothing">test</a></p></MyPre>
>
> Is there a way for me to output the contents of <MyPre> "as-is" including
> the tags contained within?
>
> Do I need to convert all "<" to "&lt;" and so on in order to accomplish
what
> I want?
>
> Thanks
> Wong

Current Thread