473,796 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1314
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
12893
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 php's rpm, I wonder if I can use it directly and tell the rpm command to use this compilation option. Is it possible ? If not, that's no problem since I can download php and compile, but still I'm wondering if rpms can be used with such options....
2
3096
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 sources as described on http://www.protonicdesign.com/tutorial/sablot_and_php.php, but I want to do it without uninstalling and breaking present configuration. I just need append support for XSLT Sablotron.
0
1920
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 Sablotron libraries in the default path... found in /usr/local checking for sablot-config... found checking for Sablotron version... configure: error: Sablotron version
2
1851
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 interface. The db is queried using PHP4 and the results output as XML which is then transformed using XSLT into XHTML. Now, in our testing environment everything works just fine. However, when we try and run it with actual live data, any incoming...
5
2054
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 access the various documents in the tree. However, when generating HTML output, the output <a href=""> tags need to be adjusted for the location of the document that is displaying them. I need to use relative URLs, since the documents need to be...
9
4795
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 with Sablotron 1.0) with the following: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in /...host...path.../page.php on line 28 FAILURE : XML parser error 4: not well-formed (invalid token) ; error
2
1456
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 XML. For the past few years, I have been generating static HTML pages through Perl scripts and uploading them. I am now experimenting with XSLT, to see if the performance is still acceptable (it would obviously be more convenient for *me*).
2
1406
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 any XSLT engine arround thats just php. thanks in advance /f3L
2
1408
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 "transformations" with Perl because of XPath 1's lack of support for regular expressions. Now, it's all built in, and we haven't looked back. However, I can't find any information about processors other than Saxon. Does anyone know what the...
2
1557
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 transform using xlst processor in php and have looked into this. I thought maybe I was on the right track with this but apparently I am stuck with PHP version 4.3.9 which to the best of my knowledge doesn't have the xslt_create and xslt_process...
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9525
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10169
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.