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

Re: Streamline xslt

Subject: Re: Streamline xslt
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 25 Sep 2002 11:54:26 -0600 (MDT)
streamline stylus
Geoff wrote:
> The first thought I had was use includes. Php includes won't work
> because the first thing the Sablotron processor sees is <?php //php code
> ?>. I assume the same problem occurs with Apache includes.
> XSL includes must be well formed xml documents so that wouldn't work
> either.
>
> Any suggestions?

I'm not sure of the ins and outs of using Sablotron from PHP, but
if document() works in that environment, use that to copy the nodes
from parsed XHTML documents:

<xsl:copy-of select="document('head.xhtml')"/>
...
<xsl:copy-of select="document('foot.xhtml')"/>

They must still be well-formed, of course. If you need them to be text or HTML
fragments, there's no solution in XSLT that doesn't involve writing your own
extension functions, which probably won't be an option for you in that
environment. Perhaps you can use PHP's mechanism for pulling in text from a 
file, bookending your XSLT output.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.