commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Incze Lajos <in...@mail.matav.hu>
Subject Re: [Jelly] Proposal new xml tag xml:entity
Date Sat, 01 Feb 2003 20:10:20 GMT
On Sat, Feb 01, 2003 at 08:47:36PM +0100, Incze Lajos wrote:
> > <xml:entity value="copy"/> and this will output &copy; in the document.

> 
> You can't do that, as the output document won't be well-formed.
> 
> > I tried every other thing I could think of to get this parsed
> > (like &amp;copy; but that resolves just like it is typed, also tried
> > using CDATA for it, but &copy; resolves to &amp;copy;, etc).
> > 
> 
> What can be done is to output the tag itself and xsl can emit
> an &copy; entity on this tag iff output mode was html (not xml).
> You don't have to do anything to achieve this (jelly would output
> any tag not known for it), only add the rule to the xsl script.
> 
> Use <entity value="copy"/> in your document, and process it in
> jsl, somehow this way:
> 
> <jsl:template match="entity[@value='copy']" trim="true">
>   <!CDATA[&copy;]]>
> </jsl:template>
> 
> (Didn't check this, but hopely works.)
> 
> incze
> 

Won't work. Why not simply put &#169; (the copyright in latin-1)?

incze

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message