Re: xsltproc xalan:write problem
Aaron Gray <[email protected]> Thu, 1 Mar 2018 17:27:02 +0000
| Newsgroups | gmane.comp.gnome.lib.xslt |
|---|---|
| Message-ID | <CANkmNDf0C5C8fdh6F9SFPY2s8hLGcj4YF4AEBiC5Rgvhf+e2Tg@mail.gmail.com> |
--===============3641942795104037187== Content-Type: multipart/alternative; boundary="001a1140647634ed3505665d2c69" --001a1140647634ed3505665d2c69 Content-Type: text/plain; charset="UTF-8" On 28 February 2018 at 20:16, Nick Wellnhofer <[email protected]> wrote: > 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 > > <xsl:document href="{$directory}/{$file}.xml"> 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. --001a1140647634ed3505665d2c69 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 2= 8 February 2018 at 20:16, Nick Wellnhofer <span dir=3D"ltr"><<a href=3D"= mailto:[email protected]" target=3D"_blank">[email protected]</a>></= span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e= x;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"">On 28/02/20= 18 16:01, Aaron Gray wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> I needed the 'select' in order to allow XPath generation of filenam= es rather than them being a set constant filename with 'href'.<br> </blockquote> <br></span> The `href` attribute of xsl:document and exsl:document is interpreted as at= tribute value template. Strings in curly braces are evaluated as XPath expr= essions, for example<br> <br> =C2=A0 =C2=A0 <xsl:document href=3D"{$directory}/{$file}.xml<wbr>&q= uot;></blockquote><div><br></div><div>Thanks Nick, thats brilliant, and = makes things simple again !=C2=A0<br></div></div><div class=3D"gmail_extra"= ><br></div>Regards,</div><div class=3D"gmail_extra"><br clear=3D"all"><div>= Aaron</div><div><br></div>-- <br><div class=3D"gmail_signature" data-smartm= ail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div>Aaron G= ray</div><div><br></div><div>Independent Open Source Software Engineer, Com= puter Language Researcher, Information Theorist, and amateur computer scien= tist.<br></div></div></div></div></div> </div></div> --001a1140647634ed3505665d2c69-- --===============3641942795104037187== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ [email protected] https://mail.gnome.org/mailman/listinfo/xslt --===============3641942795104037187==--