xsl-list
[Top] [All Lists]

AW: skip formatting ala <pre>?

2004-11-30 04:23:54
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(_dot_)huditsch(_at_)lexisnexis(_dot_)at
www.lexisnexis.at

-----Ursprüngliche Nachricht-----
Von: Wong Chin Shin [mailto:publicbbs(_at_)nascencetech(_dot_)com]
Gesendet: Dienstag, 30. November 2004 12:11
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • AW: skip formatting ala <pre>?, Huditsch Roman <=