DesignLiquido / xslt-processor

A JavaScript XSLT processor without native library dependencies
GNU Lesser General Public License v3.0
95 stars 30 forks source link

Is there a way to provide arguments? #46

Closed coder-mike closed 1 year ago

coder-mike commented 3 years ago

The .NET equivalent XSLT transformer allows you to provide arguments to satisfy <xsl:param name="..."> in the XSLT doc.

public void Transform(System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList? arguments, System.IO.TextWriter results);

I'm wondering if there's any equivalent with xslt-processor or a work-around?

ForbiddenEra commented 2 years ago

I also want to know?

You, could, in theory, force them into your xml before processing..but shouldn't have to