Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2006, 11:34 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

>I am using Sun's transformer javax.xml.transform.Transformer which is the JAXP transformer

Actually that's an interface not a transformation engine: almost all XSLT processors available under Java support that interface. But unless you do anything special, you're probably using the Apache processor, Xalan. This doesn't support XSLT 2.0. For 2.0 support you'll need to install Saxon (which also supports the same JAXP interface)

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old October 6th, 2006, 04:05 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

This:

"unparsed-text(document-uri(.))"

is finding the URI of the document containing the context node (which is by definition an XML document), and is then rereading the same document but this time without parsing it. I can just about, with a lot of imagination, think of cases where you might want to do that, but I certainly can't relate it to your problem as you described it.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old March 19th, 2012, 08:58 AM
Registered User
 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Resolved

Simply remove the
<?xml version="1.0"?>
directly start with <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

I was trying to run this locally with XML and XSL file. The moment i added these in J2EE web app i got the error javax.xml.transform.TransformerException: Syntax error in 'text( )

XSL document i directly started with <xsl:stylesheet the error was gone.





Similar Threads
Thread Thread Starter Forum Replies Last Post
I am getting this error- Operaton is not allowed Shuchik Classic ASP Basics 10 August 24th, 2007 01:58 AM
Using basic C code in Prolog Ruman29 C++ Programming 0 March 11th, 2007 01:22 PM
Error HTTP 405 - Resource not allowed shefali Classic ASP Basics 2 February 20th, 2006 06:47 PM
error HTTP 405 - Resource not allowed hastikeyvan Dreamweaver (all versions) 1 January 12th, 2006 12:11 PM
3219 Error: Operation Not Allowed in this Context dolfandave VB Databases Basics 0 May 17th, 2005 10:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.