[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Referring to stylesheet itself, possible in XSLT 1

Subject: Re: Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 17 Oct 2006 11:09:45 +0200
reverse abel transform download
Andrew Welch wrote:

What error is being thrown? Saying "it doesnt work" or "it throws an error" is pretty unhelpful without the associated error.

I understand, but it really just said "Transformation failed". Without any descriptive error, warning or whatever. Doing the same in XSLT 1.0, it waited a bit longer, apparently trying to retrieve the document on the xml:base location, and then returned the empty string.



document-uri(document(''))


...should be fine.  How are you running the transform?  If you are
loading the stylesheet as a stream then its uri will be lost, in which
case call setSystemId() on the Source.

That's an interesting gest. I have to look into it if we can apply that to our scenario.


But from Michael's post, and the others, I think my best bet is to either get rid of xml:base, or to reverse-append it to the document('') function (which will be hard, considering that my xml:base="../..", loosing the path information).

-- Abel Braaksma

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.