Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSLT & SABLOTRON: non-XSL instruction

Reply
Thread Tools

XSLT & SABLOTRON: non-XSL instruction

 
 
gouranga
Guest
Posts: n/a
 
      07-31-2006
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.
 
Reply With Quote
 
 
 
 
Joe Kesselman
Guest
Posts: n/a
 
      07-31-2006
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
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      07-31-2006


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/
 
Reply With Quote
 
gouranga
Guest
Posts: n/a
 
      08-03-2006
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 ?

 
Reply With Quote
 
Joe Kesselman
Guest
Posts: n/a
 
      08-03-2006
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In saxon XSLT, getting Content is not allowed in prolog, can't outputmarkup in a processing instruction. stryder100@gmail.com XML 2 02-25-2009 05:53 PM
ANN: New low-cost XML Editor, XSLT Editor, XSLT Debugger, DTD/Schema Editor Stylus Studio Java 0 08-03-2004 03:53 PM
[XSLT] Question about the include order when "document()" is called in a "for-each" instruction. Phil XML 3 05-27-2004 07:29 PM
xslt alone or xslt/java for static site? ted XML 1 01-26-2004 10:41 AM
[XSLT]Passing values from Javascript to a XSLT variable Benjamin Hillsley XML 3 09-25-2003 04:50 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57