Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  nxslt  Feature request...
 Feature request: Load XSLT parameters from file
 
ggeurts
1 posts
www.geurtsrus.com/gerke
Joined
1/31/2007

Feature request: Load XSLT parameters from file
Posted: 31 Jan 07 4:15 AM (N/A)
It would be nice to be able to load XSLT parameters from file as well as being able to specify them verbatim on the command line.

I am currently using a stylesheet that loads reference data from an external file using an XInclude element. The drawback of this approach is that the XInclude href attribute cannot be specified dynamically. Being able to load arbitary XML content from an external file into a global XSLT parameter would provide more flexibility.

Regards,
Gerke.
olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: Feature request: Load XSLT parameters from file
Posted: 31 Jan 07 11:24 AM (N/A)

That sounds interesting. I'm going to implement it.

The only question is what would be the format of the file? I was thinking about plain text with a param=value on each line, but then there is a problem with new lines and defining namespaces. May be better idea would be XML file, something like

<params>

    <param name="p1">value</param>

    <param name="foo:p2" xmlns:foo=http://foo.com">val2</param>

</params>

What do you think?


Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
  XML Lab Products  nxslt  Feature request...
Forum Home  Search