473,395 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

XSLT & SABLOTRON: non-XSL instruction

Sablotron keeps giving an error (non-XSL instruction) on the line with
this code:

<xsl:result-document href="slideshow/index.html" format="html">

Is this implemented in Sablotron?
It's quite urgent :)

Thx in advance.
Jul 31 '06 #1
4 1290
gouranga wrote:
<xsl:result-document href="slideshow/index.html" format="html">
That isn't an XSLT 1.0 directive. Some 1.0 processors support
redirection extension functions which can do similar things.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Jul 31 '06 #2


gouranga wrote:
Sablotron keeps giving an error (non-XSL instruction) on the line with
this code:

<xsl:result-document href="slideshow/index.html" format="html">
xsl:result-document is not an instruction defined in XSLT 1.0 (which
most XSLT processors currently implement and which was standardized in
1999) but rather one defined in XSLT 2.0 (which is so far hardly
implemented, major exception being Saxon 8 from
http://www.saxonica.com/, and which is not yet finally standardized).
Is this implemented in Sablotron?
To my knowledge (which stems from using Sablotron in PHP 4) Sablotron
implements XSLT 1.0.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 31 '06 #3
gouranga wrote:
Sablotron keeps giving an error (non-XSL instruction) on the line with
this code:

<xsl:result-document href="slideshow/index.html" format="html">

Is this implemented in Sablotron?
It's quite urgent :)

Thx in advance
I need a solution in XSLT 1.0 so it will work with sablotron.
Basicly what I am doing is:

generate multiple documents from 1 xslt.

Can someone provide me a short code snippet to do this in XSLT 1.0 ?

Aug 3 '06 #4
generate multiple documents from 1 xslt.
Can someone provide me a short code snippet to do this in XSLT 1.0 ?
Bare XSLT 1.0 can't do it in a single pass. You either need extension
functions (check whether your XSLT processor supports the EXSLT redirect
extension), or you need to extract each document using a separate XSLT.

Or generate a single document made up of a bunch of sub-documents and
then use post-processing (a small SAX-based program?) to extract them
and store them separately.

Sorry, but that's what you've got.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Aug 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ghislain Benrais | last post by:
Hello, My "problem" : install php's XSLT API. 1)I installed Sablotron (with the rpm) : ok 2) I read every where that the next step was to compile php with option --with-xslt-sablot. Since I have...
2
by: Rustam Bogubaev | last post by:
Hi, I have RedHat 9.0 and installed by default Apache+PHP. By default XSLT Sablotron support is not enabled, so how can I rebuild PHP with xslt support? I know that I can rebuild it from...
0
by: Steve Jenkins | last post by:
Hi all, I'm trying to install Sablotron on Red Hat Linux release 7.2 (Enigma). I've got Sablotron to compile. I now get the following error when running ./configure on PHP: checking for...
2
by: darren.brierton | last post by:
Hi! We've been building a pretty big web app here for internal use. SMS text messages come in from an aggregator and are stored in a MySQL 4 db. Our operators then deal with them using a web...
5
by: Don Garrett | last post by:
I have an XML document at the root of a directory tree that contains relative URIs to resources in a directory tree. During XSLT processing, these URI's can be used without any problems to...
9
by: Martin Plantec | last post by:
Hello, I have managed (with your help!) to make a working XSLT stylesheet; it works fine locally (Windows Apache + PHP with Sablotron 1.0), but it fails on the remote host (FreeBSD Apache + PHP...
2
by: Martin Plantec | last post by:
Hello, In another post, I mentionned I was using PHP with Sablotron 1.0 as my server-side XSLT processor. I have several websites, some of them with thousands pages. Everything is stored as...
2
by: f3l_ | last post by:
ive looked on the web for sablotron, expat and all that stuff, and since i need to set this up on various different servers , some of which i have no control over, so id like to know if there is...
2
by: bllfrnch | last post by:
Hi all, We use XSLT extensively here at work and made the jump to XSLT 2 back in January. Doing so increased productivity by leaps and bounds. Before we made the switch, we were often doing...
2
by: Patrick | last post by:
Back again for another question. I have a form that I want to pass one value to an xsl file to use when the xml is displayed. I have been told that I have to pass the value to php and then do a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.