Subject: Re: [xsl] another beginner question - strip directory info from variable From: "B Tommie Usdin btusdin@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 14 Oct 2018 18:42:51 -0000 |
Hi Dave b It looks like the list is being helpful to you. There is something you could do in the future to be helpful to the list: focus your subject lines on the topic of the question. In this case, "strip directory info from variable" would have been a far better subject line than "another beginner question - strip directory info from variableb. This is because many people refer to the list archives and third-party list archives by scanning subject lines to find discussions that may help them. By making the subject line about you and not about your topic you make reuse of the discussion much more difficult. It seems to me that many people may have your question and this discussion would be helpful to them, too. Thanks for making a moment to think about subject lines before your future posts to XSL-list. b Tommie > On Oct 13, 2018, at 9:49 PM, Dave Lang emaildavelang@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi again everyone - back with another beginner question. > > I'm working in Oxygen and am using Saxon. > > I'm searching through a bunch of xml files in search of jpg names. I'm creating variables as follows: > > <xsl:variable name="allxml" select="collection('..//xml/?select=*.xml;recurse=yes')"/> > <xsl:variable name="jpgs" select="$allxml//element/@n"/> > > $jpgs looks like: > > dir1/jpg001.jpg dir1/jpg002.jpg dir1/jpg003.jpg > > etc. > > I want to strip away the dir info, but am having a hard time. I've tried using tokenize and substring-after but both return similar errors. > > "A sequence of more than one item is not allowed as the first argument of fn:tokenize() ("dir1/jpg001.jpg", "dir1/jpg002.jpg")." > > Because I don't know what I'm doing, I don't know what I'm doing wrong. :) > > Can anyone help me figure out how to solve this problem? > > thanks! > dave > ====================================================================== B. Tommie Usdin mailto:btusdin@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. https://www.mulberrytech.com 17 West Jefferson Street Phone: 301/315-9631 Suite 207 Direct Line: 301/315-9634 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in XML and SGML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] another beginner question, Dave Lang emaildavel | Thread | [xsl] how to create variable by com, Dave Lang emaildavel |
Re: [xsl] another beginner question, Dave Lang emaildavel | Date | [xsl] how to create variable by com, Dave Lang emaildavel |
Month |