xsl-list
[Top] [All Lists]

Re: Entity Questions

2005-01-18 10:29:33
Hi Michael;

The point I am at now is the TEXT node of my XML document contains text,
some of this text contains HTML. If I display the text disabling output
escaping, I can see HTML tags in the output. Otherwise the output contains
escaped HTML tags (example: ;<P>).

What I think I need to do is tansform this text into a tree so I can create
templates to handle nodes like <p>. I noticed you meantioned to someone else
saxon:parse() to transform text into a tree.

Is this what I need to do? Do I have other options?

To review my goal is to find HTML tags in the content and replace them with
FO tags.

Thanks,

Luke

----- Original Message ----- 
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, January 17, 2005 6:19 PM
Subject: RE: [xsl] Entity Questions



I tested adding the match="P" template. I didn't replace
anything. I think
this might be because I changed the output method to xml to deal with
entities like &nbsp;

I am thinking the <P> tags are now &lt;P&gt; so the template
is not matching
them. I am adding some logging to verify this, if this is the
case I may
need to rethink things.

Try to reduce the size of the problem, and post a complete specimen
including source XML, desired result, and stylesheet. Then we can see
where
you're going wrong. You're not grasping some of the concepts: you're still
talking about tags rather than nodes, and thinking of the input and output
as text rather than trees. It might be a good idea to do some reading.

Michael Kay
http://www.saxonica.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>
--~--




--~------------------------------------------------------------------
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>