You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Robert van Loenhout <r....@greenvalley.nl> on 2004/06/10 17:10:15 UTC
html encoded attributes
Hi,
I was curious if there was some way to create html with an xsl that can
decode the value of an xml attribute and outputs it in the document.
So for example if the xml document contains:
<text value="<h1>hello world!<h1>"/>
I would like the xsl to output:
<html>
<body>
<h1>hello world!</h1>
</body>
</html>
I think the answer is no, but I want to make sure :)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
RE: html encoded attributes
Posted by "F. Andy Seidl" <fa...@myst-technology.com>.
Take a look at the disable-output-escaping attribute available on xsl:text
and xsl:value-of. I believe you can do what you want with
disable-output-escaping='yes'. One caution: disable-output-escaping is an
optional XSL feature--not all XSLT processors support it (notably
Microsoft's) but I use it often with Xalan.
-- fas
F. Andy Seidl
MyST Technology Partners
|-----Original Message-----
|From: Robert van Loenhout [mailto:r.vanloenhout@greenvalley.nl]
|Sent: Thursday, June 10, 2004 11:10 AM
|To: xerces-j-user@xml.apache.org
|Subject: html encoded attributes
|
|Hi,
|
|I was curious if there was some way to create html with an xsl that can
|decode the value of an xml attribute and outputs it in the document.
|So for example if the xml document contains:
|<text value="<h1>hello world!<h1>"/>
|
|I would like the xsl to output:
|<html>
|<body>
| <h1>hello world!</h1>
|</body>
|</html>
|
|I think the answer is no, but I want to make sure :)
|
|
|
|
|
|
|
|
|
|
|
|
|---------------------------------------------------------------------
|To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
|For additional commands, e-mail: xerces-j-user-help@xml.apache.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org