[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Entity Questions


Subject: Re: [xsl] Entity Questions
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 17 Jan 2005 20:58:00 GMT

> The Transformer doesn't like to see a template within a template (below is
> my template).

not surprisingly as the syntax for xslt doesn't allow it.


> I was thinking about implementing a global find and replace function that
> would take an input string, target and replacement as params.

> Is there an easier approach?

Yes you are basically describing trying to write an XSLT system in XSLT,
which is quite hard (if possible) when what you want to do is just
generate a document in which a few element names have changed which is
as I said the main function of xslt.

XSLT does not see the input document as a string but as a tree.

You haven't said what transform you are trying to do. I gave a template
for p to fo:block, you just add similar templates (in any order in the
file) for other elements that you want to transform and the system just
matches the input to your match elements and generates the output based
on the template body.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread
Keywords