ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
[exslt] EXSLT document-uri
by John Perkins other posts by this author
Mar 6 2007 10:56AM messages near this date
[exslt] Bugs in sqrt and date-time stuff | Re: [exslt] EXSLT document-uri
& XSLT To EXSLT

Looking for following type of support. Does ESXLT have plans to help
in supporting the following? In other words support for something like
document-uri function of XSLT 2.0 as an extensiuon of XSLT 1.0. Thank
you.

When using xslt on the browser to transform static xml it woul be very
useful to be able to get the uri with parameters so the xslt could use
the parameters of the uri to conditionally determine what
"subtransform" to perform.

Condition

1) static xml on the server
2) perform xslt on the brower
3) xslt style sheet uses the parameters of the uri to decide what
transform to perform

In the example below page.xsl might
1) if uri is http://mywebsite.org/page.xml then create table of content
2) if uri is http://mywebsite.org/page.xml?page=1 then create page 1
2) if uri is http://mywebsite.org/page.xml?page=2 then create page 2

<?xml version="1.0" encoding="UTF-8" ?> 
<?xml-stylesheet type="text/xsl" href="page.xsl"?> 
<pages> 
<page> 
    <information> Page 1<information>
</page> 
<page> 
    <information> Page 2<information>
</page> 
</pages> 

-- 
John Perkins
Salem, NH
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
John Perkins
John L. Clark

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved