Re: [xslt] xsltproc xalan:write problem
On 28 February 2018 at 20:16, Nick Wellnhoferwrote: > On 28/02/2018 16:01, Aaron Gray wrote: > >> I needed the 'select' in order to allow XPath generation of filenames >> rather than them being a set constant filename with 'href'. >> > > The `href` attribute of xsl:document and exsl:document is interpreted as > attribute value template. Strings in curly braces are evaluated as XPath > expressions, for example > > Thanks Nick, thats brilliant, and makes things simple again ! Regards, Aaron -- Aaron Gray Independent Open Source Software Engineer, Computer Language Researcher, Information Theorist, and amateur computer scientist. ___ xslt mailing list, project page http://xmlsoft.org/XSLT/ xslt@gnome.org https://mail.gnome.org/mailman/listinfo/xslt
Re: [xslt] xsltproc xalan:write problem
On 28/02/2018 16:01, Aaron Gray wrote: I needed the 'select' in order to allow XPath generation of filenames rather than them being a set constant filename with 'href'. The `href` attribute of xsl:document and exsl:document is interpreted as attribute value template. Strings in curly braces are evaluated as XPath expressions, for example Nick ___ xslt mailing list, project page http://xmlsoft.org/XSLT/ xslt@gnome.org https://mail.gnome.org/mailman/listinfo/xslt
Re: [xslt] xsltproc xalan:write problem
On 28 February 2018 at 11:12, Nick Wellnhoferwrote: > On 28/02/2018 11:15, Thomas Schraitle wrote: > >> I would like to point you to another alternative: the exsl:document[1] >> extension element. It does the same and is also supported by libxslt. >> > > libxslt also supports xsl:document (in the standard XSLT namespace) from > XSLT 1.1: > > https://www.w3.org/TR/xslt11/#multiple-output Hi Thomas and other Nick, I needed the 'select' in order to allow XPath generation of filenames rather than them being a set constant filename with 'href'. Cheers anyway, Aaron -- Aaron Gray Independent Open Source Software Engineer, Computer Language Researcher, Information Theorist, and amateur computer scientist. ___ xslt mailing list, project page http://xmlsoft.org/XSLT/ xslt@gnome.org https://mail.gnome.org/mailman/listinfo/xslt
Re: [xslt] xsltproc xalan:write problem
On 28 February 2018 at 02:08, Nicolas Grégoirewrote: > > > I am trying to get xalan:write to work with libxslt's xsltproc. I > > have looked at the source code and found code pertaining to its > > implemetation but cannot get it to work from input. > > You simply have an incorrect namespace. > > > xmlns:xalan="http://xml.apache.org/xalan/redirect; > > That should be "org.apache.xalan.xslt.extensions.Redirect" (tested with > libxslt 10128 + libexslt 817): > > 8< > http://www.w3.org/1999/XSL/Transform; > xmlns:redir="org.apache.xalan.xslt.extensions.Redirect" > extension-element-prefixes="redir" > version='1.0'> > > > > Just a PoC > > > > 8< > Nicolas, Great that does the job nicely with the trailing '>' added :) Thanks a lot, Aaron -- Aaron Gray Independent Open Source Software Engineer, Computer Language Researcher, Information Theorist, and amateur computer scientist. ___ xslt mailing list, project page http://xmlsoft.org/XSLT/ xslt@gnome.org https://mail.gnome.org/mailman/listinfo/xslt
Re: [xslt] xsltproc xalan:write problem
On 28/02/2018 11:15, Thomas Schraitle wrote: I would like to point you to another alternative: the exsl:document[1] extension element. It does the same and is also supported by libxslt. libxslt also supports xsl:document (in the standard XSLT namespace) from XSLT 1.1: https://www.w3.org/TR/xslt11/#multiple-output Nick ___ xslt mailing list, project page http://xmlsoft.org/XSLT/ xslt@gnome.org https://mail.gnome.org/mailman/listinfo/xslt
Re: [xslt] xsltproc xalan:write problem
> I am trying to get xalan:write to work with libxslt's xsltproc. I > have looked at the source code and found code pertaining to its > implemetation but cannot get it to work from input. You simply have an incorrect namespace. > xmlns:xalan="http://xml.apache.org/xalan/redirect; That should be "org.apache.xalan.xslt.extensions.Redirect" (tested with libxslt 10128 + libexslt 817): 8< http://www.w3.org/1999/XSL/Transform; xmlns:redir="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="redir" version='1.0'> Just a PoC http://xmlsoft.org/XSLT/ xslt@gnome.org https://mail.gnome.org/mailman/listinfo/xslt