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

Re: Problem with embeded XHTML in an XML file and tra

Subject: Re: Problem with embeded XHTML in an XML file and transformation to XSL:FO
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Sat, 12 Aug 2006 18:53:17 +0100
.tra file
I understand the logic, just a practical question.
I wrote the application with the javax.xml.transform. Is there a similar
function as saxon:parse() which I can use with my excising code or and
easy way to sue it without having to rewrite and retest the whole
application?

Once you use a Saxon specific extension you won't be able to substitute in a different JAXP compliant processor - if thats important to you then don't use the processor specific extension.

I'm not sure why you would need to "rewrite" or retest the whole
application just for using an extension in your stylesheet... (plus
you should have written your tests first :)


An other small side problem is that the transformation crashes with a
variable in the apply-templates (??). I tried as I hoped that that would
do the job, but it crashes.

This is almost certainly because of an endless loop - applying templates to the variable will apply your root matching template, which in turn calls apply-templates on the variable... the way around this is to use a mode or select the root element explicitly:

<xsl:apply-templates select="$htmlContent/html"/>

If you still have an issue create small sample files highlighting the
problem to allow us to cut and paste the xml and xslt to recreate the
results your getting.

cheers
andrew

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.