Subject: Re: [xsl] How to retrieve global parameters names and their default values using Saxon? From: Abel Braaksma Online <abel.online@xxxxxxxxx> Date: Tue, 09 May 2006 00:50:41 +0200 |
Thanks Andrew, Michael,Use:
compiledStylesheet = stf.newTemplates(new StreamSource(stylesheetPath));
Executable exec = ((PreparedStylesheet)compiledStylesheet).getExecutable();
IntHashMap map = exec.getCompiledGlobalVariables();
Iterator iter = map.valueIterator();
while (iter.hasNext()) {
Object var = iter.next();
if (var instanceof GlobalParam) {
String name = ((GlobalParam)var).getVariableName();
String value = ((GlobalParam)var).getSelectExpression().toString();
cheers andrew
Cheers, Abel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to retrieve global pa, Michael Kay | Thread | RE: [xsl] How to retrieve global pa, Michael Kay |
RE: [xsl] How to retrieve global pa, Michael Kay | Date | RE: [xsl] How to retrieve global pa, Michael Kay |
Month |