[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Entity Questions

Subject: Re: Entity Questions
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 17 Jan 2005 20:58:00 GMT
dave shannon carlisle
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.