Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 31st, 2006, 10:55 AM
gouranga
Guest
 
Posts: n/a
Default 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.
  #2  
Old July 31st, 2006, 01:15 PM
Joe Kesselman
Guest
 
Posts: n/a
Default Re: XSLT & SABLOTRON: non-XSL instruction

gouranga wrote:
Quote:
<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
  #3  
Old July 31st, 2006, 01:25 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: XSLT & SABLOTRON: non-XSL instruction



gouranga wrote:
Quote:
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).
Quote:
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/
  #4  
Old August 3rd, 2006, 11:05 AM
gouranga
Guest
 
Posts: n/a
Default Re: XSLT & SABLOTRON: non-XSL instruction

gouranga wrote:
Quote:
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 ?

  #5  
Old August 3rd, 2006, 12:35 PM
Joe Kesselman
Guest
 
Posts: n/a
Default Re: XSLT & SABLOTRON: non-XSL instruction

generate multiple documents from 1 xslt.
Quote:
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
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles