users
[Top] [All Lists]

Re: [cinjug-users] Passing XHTML entities through a transform

To: Eric Galluzzo <egalluzzo@xxxxxxxxxxxxxxx>
Subject: Re: [cinjug-users] Passing XHTML entities through a transform
From: Eric Bardes <ericbardes@xxxxxxxxx>
Date: Wed, 12 Oct 2005 15:43:14 -0400
Cc: Creighton Kirkendall <ckirkendall@xxxxxxxxxxxxxx>, Brian Bonner <brian.bonner@xxxxxxxxxxxx>, users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Fkic79AjA0aHnUOLCSUNE6jequYbQLQO/oFHehNu2uW+170SpWjeB31DX5Rugb9c5ORAm0s4zpY06Ld6rG84e+j6mZMYMzbgyQNUG9IppocBGVgIsNXurmHoN6oMuvxYbMz6ab+AJ575P/ol9oDsGWFJ8JOuGnWzyeysl8mX5s4=
In-reply-to: <434D51BC.8080307@einnovation.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <1129138621.3622.96.camel@localhost.localdomain> <434D4C7E.9010109@paraware.com> <1129140340.3622.104.camel@localhost.localdomain> <434D51BC.8080307@einnovation.com>
I've used entity definition files from the xmlchar project to deal with a similar problem.
 
On a web site I maintain, I use Xalan to generate static pages from xml fragments.  The stylesheet wraps common header and navigation around the fragments.
 
You would use:
 
<p>This is a test of <ch:Alpha/></p>
 
which beats
 
<p>This is a test of &#x0391;</p>
 
any day.

 
On 12/10/05, Eric Galluzzo <egalluzzo@xxxxxxxxxxxxxxx> wrote:
Creighton Kirkendall wrote:

>I am actually using xtags but the same basic problem exits with xsl.  At
>parse time the entities are replaced.  This means that copy-of which I
>need has already had the data replaced by the time I get access to it.
>
><xtags:parse>
><xtags:parse ><?xml version=" 1.0"?>
><html>
><body>
><p>This is a test of &Alpha;</p>
></body>
></html>
></xtags:parse>
>
>
One problem is that &Alpha; is not a valid XML character entity unless
you define it as such via an <!ENTITY> declaration in your DTD.  (XML
does not include the HTML character entities by default.)  In fact, I'm
surprised this parses.  I'm also not familiar with xtags, so I may be
missing something.

   - Eric


---------
You may unsubscribe from this mailing list
by sending a blank email addressed to:
users-unsubscribe@xxxxxxxxxx

--
Find additional help by sending a blank email
addressed to:
users-help@xxxxxxxxxx


--
Cheers,
Eric Bardes
<Prev in Thread] Current Thread [Next in Thread>