Subscribe to the XSL-List Blog in XML format
RSS 2.0
Atom 0.3

The XSL-LIST Blog

The XSL-List Blog's mission is to increase the level of XSL knowledge and usage in the software development community. It's a service by Mulberry Technologies, and the list is by far the most popular XSL development forum in the world — in fact, some of the inventors of XSL hang out there and respond to questions. Got a stylesheet emergency? Want to contribute to the XSL community? visit the XSL-List blog today!


Re: Jaxen 2.0.0 Beta 1

Posted 11/21/2022 7:15:21 PM

1.0. I suppose the docs date from the time when there was only one version to support. :-) On Mon, Nov 21, 2022 at 9:51 AM Joe Wicentowski joewiz@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi Elliotte, > > I'm curious, which version of XPath does Jaxen support . . . Read full entry »


Re: Jaxen 2.0.0 Beta 1

Posted 11/21/2022 3:51:25 PM

Hi Elliotte, I'm curious, which version of XPath does Jaxen support? Joe Indeed, I was a little surprised not to see that information right on the front page. Michael Kay Saxonica . . . Read full entry »


Re: Jaxen 2.0.0 Beta 1

Posted 11/21/2022 2:51:51 PM

Hi Elliotte, I'm curious, which version of XPath does Jaxen support? Joe On Sun, Nov 20, 2022 at 12:58 PM Elliotte Rusty Harold elharo@xxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I've posted the first beta of the Jaxen XPath engine 2.0 on Maven > Central. The coo . . . Read full entry »


Jaxen 2.0.0 Beta 1

Posted 11/20/2022 5:58:08 PM

I've posted the first beta of the Jaxen XPath engine 2.0 on Maven Central. The coordinates are: <dependency> <groupId>jaxen</groupId> <artifactId>jaxen</artifactId> <version>2.0.0-beta-1</version> </dependency> Despite the major version . . . Read full entry »


Re: help with random number generation

Posted 11/18/2022 6:48:07 PM

Dimitre, thank you for your note. You write: > Or maybe I don't understand the requirements well? I think you probably understand the requirements at least as well as I do -- although as I have struggled with this problem my understanding has certainly changed. Ultimately, my goal is to hav . . . Read full entry »


Re: help with random number generation

Posted 11/18/2022 1:57:39 AM

Michael, Reading the requirements you listed, it seems to me that you need: Num-TimeSlices * NumNodesPerTimeSlice different random numbers. Why not generate a sequence of random numbers with this length? This will require a single seed, that you could use based on the current time (the s . . . Read full entry »


Re: help with random numbers

Posted 11/17/2022 5:28:07 PM

"Michael Kay michaelkay90@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > Beware of the natural tendency to distrust your analysis because it > doesn't produce the answers you were expecting. That is a good warning: gut feelings can be helpful, but cannot usu . . . Read full entry »


Re: help with random number generation

Posted 11/17/2022 4:02:12 PM

"Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > On 11/16/2022 8:31 PM, C. M. Sperberg-McQueen cmsmcq@xxxxxxxxxxxxxxxxx > wrote: >> Some readers of this list may know enough about pseudo-random number >> generators and their . . . Read full entry »


Re: help with random numbers

Posted 11/17/2022 9:25:17 AM

> That's a good question. The main symptom so far is that the first > hundred times I ran the simulation, 80 of the runs produced the same > trivial result: a birth-and-death process in which the initial > individual died before reproducing - the runs differed on how long that > ind . . . Read full entry »


Re: help with random numbers

Posted 11/17/2022 2:57:04 AM

I hope this information might be useful: https://fxsl.sourceforge.net/articles/Random/Casting%20the%20Dice%20with%20FX SL-htm.htm#3._Testing_randomness_with_Monte_Carlo_integration A test with 65536 random points is carried out using FXSL (XSLT 1.0) , that calculates with the Monte-Carlo method t . . . Read full entry »


Re: help with random numbers

Posted 11/17/2022 2:25:54 AM

Thanks for your reply. "Michael Kay michaelkay90@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > ... > > Worth noting in passing that there's a bug in the spec: it says that > every xs:double value in the range 0 to 1 should be equally likely to > app . . . Read full entry »


Re: help with random numbers

Posted 11/17/2022 12:35:28 AM

[Trying again from a new email address, xsl-list is rejecting postings from my shiny new Office 365 mail account. Probably with good reason...] Worth noting in passing that there's a bug in the spec: it says that every xs:double value in the range 0 to 1 should be equally likely to appear, but tha . . . Read full entry »


Re: help with random number generation

Posted 11/16/2022 8:45:30 PM

I would implement/use (even from the 20-years old FXSL) a random-sequence() function that produces a sequence of $N random numbers. Thus, if you know the total number of nodes, for which random numbers are needed, then you could use this as the value for $N. As for using time for a seed, new ()di . . . Read full entry »


Re: help with random number generation

Posted 11/16/2022 8:09:19 PM

On 11/16/2022 8:31 PM, C. M. Sperberg-McQueen cmsmcq@xxxxxxxxxxxxxxxxx wrote: Some readers of this list may know enough about pseudo-random number generators and their use to advise me. I hope so! I am writing an XSLT program to simulate a process, with the aim of using it to make Monte Carlo esti . . . Read full entry »


help with random number generation

Posted 11/16/2022 7:30:44 PM

Some readers of this list may know enough about pseudo-random number generators and their use to advise me. I hope so! I am writing an XSLT program to simulate a process, with the aim of using it to make Monte Carlo estimates of the probability that the process will produce different kinds of res . . . Read full entry »


Re: unpacking percent-escaped URI components

Posted 11/7/2022 11:12:30 PM

Im surprised that there is not the inverse of encode-for-uri() but I do not find anything the XPath 3.1 functions and operators. Cheers, E. _____________________________________________ Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<https://www.serviceno . . . Read full entry »


Re: unpacking percent-escaped URI components

Posted 11/7/2022 9:53:14 PM

On Mon, Nov 07, 2022 at 09:36:47PM -0000, Martin Honnen martin.honnen@xxxxxx scripsit: > On 11/7/2022 10:29 PM, Martin Honnen martin.honnen@xxxxxx wrote: > > On 11/7/2022 9:55 PM, Graydon graydon@xxxxxxxxx wrote: > > > Unpacking RFC 4122 percent-escaped strings for code points les . . . Read full entry »


Re: unpacking percent-escaped URI components

Posted 11/7/2022 9:36:40 PM

On 11/7/2022 10:29 PM, Martin Honnen martin.honnen@xxxxxx wrote: On 11/7/2022 9:55 PM, Graydon graydon@xxxxxxxxx wrote: Unpacking RFC 4122 percent-escaped strings for code points less than 256 is straightforward -- tokenize($value,'%')[normalize-space()] ! local:H2D(.) ! codepoints-to-string(.) whe . . . Read full entry »


Re: unpacking percent-escaped URI components

Posted 11/7/2022 9:29:09 PM

On 11/7/2022 9:55 PM, Graydon graydon@xxxxxxxxx wrote: Unpacking RFC 4122 percent-escaped strings for code points less than 256 is straightforward -- tokenize($value,'%')[normalize-space()] ! local:H2D(.) ! codepoints-to-string(.) where local:H2D is a hex-digits-to-decimal-integer function. When t . . . Read full entry »


unpacking percent-escaped URI components

Posted 11/7/2022 8:54:47 PM

Hello -- Unpacking RFC 4122 percent-escaped strings for code points less than 256 is straightforward -- tokenize($value,'%')[normalize-space()] ! local:H2D(.) ! codepoints-to-string(.) where local:H2D is a hex-digits-to-decimal-integer function. When the escaped value goes above 255, as with U+ . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/3/2022 11:39:48 AM

Hi, To Dave C's remark, indeed, I have been noticing a general pattern in parameterization - an external parameter coupled to an internal variable that represents that parameter meaningfully. <xsl:param name="verbose" as="xs:string">no</xsl:param> <xsl:variable . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 5:50:43 PM

"Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > [a brief somewhat pedantic side-track] [And .. a brief thoroughly pedantic side-track from the side-track:] > On Wed, 2022-11-02 at 14:19 +0000, Graydon graydon@xxxxxxxxx wrote: > . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 4:34:00 PM

[a brief somewhat pedantic side-track] On Wed, 2022-11-02 at 14:19 +0000, Graydon graydon@xxxxxxxxx wrote: > On Wed, Nov 02, 2022 at 02:10:09PM -0000, Eliot Kimber > eliot.kimber@xxxxxxxxxxxxxxx scripsit: > > The second argument to tokenize() is a regular expression, so b, *b > &g . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 4:00:50 PM

On Wed, 2 Nov 2022 at 13:01, Dave Pawson dave.pawson@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On Wed, 2 Nov 2022 at 12:34, David Carlisle d.p.carlisle@xxxxxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > > > > > > On Wed, . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 2:18:47 PM

On Wed, Nov 02, 2022 at 02:10:09PM -0000, Eliot Kimber eliot.kimber@xxxxxxxxxxxxxx scripsit: > The second argument to tokenize() is a regular expression, so b, *b means > bcomma followed by zero or more spacesb. > > I would write it as b,\s*b, which is clearer and handles all whit . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 2:18:42 PM

On Wed, 2 Nov 2022 at 14:10, Eliot Kimber eliot.kimber@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > The second argument to tokenize() is a regular expression, so b, *b means bcomma followed by zero or more spacesb. > > > > I would write it as b,\s . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 2:10:01 PM

The second argument to tokenize() is a regular expression, so , * means comma followed by zero or more spaces. I would write it as ,\s*, which is clearer and handles all white space (space, tab, etc.). Cheers, E. _____________________________________________ Eliot Kimber Sr Staff Content . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 1:38:46 PM

On Wed, 2 Nov 2022 at 13:11, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Which seems to tokenize once rather than n times? Agreed more > > efficient (not a concern with my use) > > I don't understand > > select=" token . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 1:11:34 PM

Am 11/2/2022 um 2:01 PM schrieb Dave Pawson dave.pawson@xxxxxxxxx: On Wed, 2 Nov 2022 at 12:34, David Carlisle d.p.carlisle@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: On Wed, 2 Nov 2022 at 12:13, Dave Pawson dave.pawson@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx&g . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 1:01:34 PM

On Wed, 2 Nov 2022 at 12:34, David Carlisle d.p.carlisle@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > > On Wed, 2 Nov 2022 at 12:13, Dave Pawson dave.pawson@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > You should use xs:string not xs:s . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 12:34:23 PM

On Wed, 2 Nov 2022 at 12:13, Dave Pawson dave.pawson@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > For the archive: My solution > > <xsl:param name="types" as="xs:string*"/> > > You should use xs:string not xs:string* as if you passe . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/2/2022 12:13:49 PM

For the archive: My solution Called from command line (Linux, bash) > sax2 seq.xml seq.xsl op.xml types=dog,cat output *** Match on A *** Match on dog *** Match on B *** Match on cat mouse No match found (My) learning points (Old MK cry) <xsl:param name="types" as="xs:s . . . Read full entry »


XSL-List Guidelines

Posted 11/1/2022 3:12:40 PM

This information is posted to the XSL-List (and the XSL-List Digest) at intervals under the subject line "XSL-List guidelines". INTRODUCTION TO XSL-LIST XSL-List hosts discussion of XSL itself, XSL applications and implementation, and XSL user questions. XSL-List is open to everyone, us . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/1/2022 1:00:54 PM

On Tue, 1 Nov 2022 at 09:01, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > It sounds as if you tried > > ?types=A,B > > where the XPath evaluation kicks in. Quite right Martin. Now working and I can apply to my problem. Many than . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/1/2022 9:01:13 AM

Am 11/1/2022 um 9:57 AM schrieb Dave Pawson dave.pawson@xxxxxxxxx: Thanks Martin. Nearly there <xsl:param name="types" as="xs:string"/> If you declare the type as a single string item, then it doesn't make sense to attempt to use the "?param-name" syntax fu . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/1/2022 8:57:21 AM

Thanks Martin. Nearly there > > <xsl:param name="types" as="xs:string"/> > > If you declare the type as a single string item, then it doesn't make > sense to attempt to use the "?param-name" syntax further below to pass > in an XPath expres . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/1/2022 8:53:34 AM

It appears the second option is working from bash. You simply need to change the param definition in the stylesheet. <xsl:param name="types" as="xs:string*"/> (i.e. add the asterisk "*" to have a sequence of strings) On Tue, Nov 1, 2022, 09:44 Dave Pawson d . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/1/2022 8:50:24 AM

Am 11/1/2022 um 9:44 AM schrieb Dave Pawson dave.pawson@xxxxxxxxx: I suspect it is a shell issue (Using Bash on Linux) Test case <?xml version="1.0" encoding="utf-8"?> <set> <data> <name>A</name> <type>dog</type> </dat . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 11/1/2022 8:44:21 AM

I suspect it is a shell issue (Using Bash on Linux) Test case <?xml version="1.0" encoding="utf-8"?> <set> <data> <name>A</name> <type>dog</type> </data> <data> <name>B</name> <type>ca . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 9:06:59 PM

Thank you. Ibll set up a test case for my use. Regards On Mon, 31 Oct 2022 at 20:06, Christophe Marchand cmarchand@xxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > sequence-equals, opposate to eq > > ('a', 'b', 'c') = 'b' => true() > > ('a', 'b', 'c') eq . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 8:06:55 PM

sequence-equals, opposate to eq ('a', 'b', 'c') = 'b' => true() ('a', 'b', 'c') eq 'b' => false() Christophe Le 31/10/2022 C 18:24, Dave Pawson dave.pawson@xxxxxxxxx a C)critB : On Mon, 31 Oct 2022 at 16:47, Graydon graydon@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 6:54:23 PM

On Mon, Oct 31, 2022 at 06:41:49PM -0000, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx scripsit: > On Mon, 2022-10-31 at 17:50 +0000, Graydon graydon@xxxxxxxxx wrote: > > > > (I believe I have found where in the specs it discusses this before, > > implicit existential quantification . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 6:41:44 PM

On Mon, 2022-10-31 at 17:50 +0000, Graydon graydon@xxxxxxxxx wrote: > > (I believe I have found where in the specs it discusses this before, implicit existential quantification is the phrase to look for. I think in the spec it's actually now, [[ General comparisons are existentially quantifi . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 6:41:14 PM

On 10/31/2022 7:24 PM, Martin Honnen martin.honnen@xxxxxx wrote: > > On 10/31/2022 6:27 PM, Dave Pawson dave.pawson@xxxxxxxxx wrote: >> On Mon, 31 Oct 2022 at 16:56, Martin Honnen martin.honnen@xxxxxx >> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: >> >> > . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 6:33:04 PM

> Sequence-equals? 3.0? function? > Google hasn't found this Graydon? Has been proposed for XPath 4.0 F&O: https://github.com/qt4cg/qtspecs/issues/99 As for the original problem, this has even a simple XPath 1.0 solution: contains(concat(',', $membership, ','), concat(',', memb . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 6:24:22 PM

On 10/31/2022 6:27 PM, Dave Pawson dave.pawson@xxxxxxxxx wrote: On Mon, 31 Oct 2022 at 16:56, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: On the command line, you prefix the parameter name with a question mark to indicate you provide an XPath expressio . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 6:10:45 PM

On Mon, Oct 31, 2022 at 01:49:11PM -0400, Graydon Saunders scripsit: > (I believe I have found where in the specs it discusses this before, but > it's not easy to find and I do not presently recall which specification > I should be looking at. Making this easier to find would be a useful . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 5:53:05 PM

On Mon, 31 Oct 2022 at 17:49, Graydon graydon@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On Mon, Oct 31, 2022 at 05:24:11PM -0000, Dave Pawson dave.pawson@xxxxxxxxx scripsit: > > On Mon, 31 Oct 2022 at 16:47, Graydon graydon@xxxxxxxxx > > <xsl-list-ser . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 5:49:24 PM

On Mon, Oct 31, 2022 at 05:24:11PM -0000, Dave Pawson dave.pawson@xxxxxxxxx scripsit: > On Mon, 31 Oct 2022 at 16:47, Graydon graydon@xxxxxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On Mon, Oct 31, 2022 at 04:35:10PM -0000, Dave Pawson dave.pawson@xxxxxxxxx scrips . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 5:27:16 PM

On Mon, 31 Oct 2022 at 16:56, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I have literally tested now a > > membership=a,b,c > > with Saxon HE 11 and the command line, both with Bash and with > Powershell, and the parameter can b . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 5:24:05 PM

On Mon, 31 Oct 2022 at 16:47, Graydon graydon@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On Mon, Oct 31, 2022 at 04:35:10PM -0000, Dave Pawson dave.pawson@xxxxxxxxx scripsit: > > <grin/> Not yet (will I ever be?) familiar with xslt 3.0 > > Two has t . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 4:56:28 PM

Am 10/31/2022 um 5:35 PM schrieb Dave Pawson dave.pawson@xxxxxxxxx: On Mon, 31 Oct 2022 at 16:22, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: Am 10/31/2022 um 5:16 PM schrieb Dave Pawson dave.pawson@xxxxxxxxx: Input xml contains <data> ... &l . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 4:47:48 PM

On Mon, Oct 31, 2022 at 04:35:10PM -0000, Dave Pawson dave.pawson@xxxxxxxxx scripsit: > <grin/> Not yet (will I ever be?) familiar with xslt 3.0 Two has the sequence concept. param="a;b;c;d" <xsl:param name="rawMatch" as="xs:string" /> <xsl:variabl . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 4:35:02 PM

<grin/> Not yet (will I ever be?) familiar with xslt 3.0 On Mon, 31 Oct 2022 at 16:22, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > Am 10/31/2022 um 5:16 PM schrieb Dave Pawson dave.pawson@xxxxxxxxx: > > Input xml contains > . . . Read full entry »


Re: Filtering, xslt 2.0

Posted 10/31/2022 4:22:23 PM

Am 10/31/2022 um 5:16 PM schrieb Dave Pawson dave.pawson@xxxxxxxxx: Input xml contains <data> ... <membership>....</membership> </data> where membership can be one of a b c d cmd line param membership=a could be membership=a,b,c How to 'choose' only those matching the pa . . . Read full entry »


Filtering, xslt 2.0

Posted 10/31/2022 4:16:09 PM

Input xml contains <data> ... <membership>....</membership> </data> where membership can be one of a b c d cmd line param membership=a could be membership=a,b,c How to 'choose' only those matching the param values? <xsl:template match="data"> <xsl:if . . . Read full entry »


Re: xmlns:xi attributes getting into HTML output

Posted 10/26/2022 3:03:56 PM

On Wed, Oct 26, 2022 at 10:56 AM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Firstly, I suspect that that "..." is hiding an identity template that > uses xsl:copy. The xsl:copy instruction copies namespace nodes from the > source docu . . . Read full entry »


Re: xmlns:xi attributes getting into HTML output

Posted 10/26/2022 2:55:57 PM

Firstly, I suspect that that "..." is hiding an identity template that uses xsl:copy. The xsl:copy instruction copies namespace nodes from the source document to the result document. In 2.0+ you can suppress that with a copy-namespaces="no" attribute. Secondly, why doesn't the . . . Read full entry »


xmlns:xi attributes getting into HTML output

Posted 10/26/2022 2:44:45 PM

Hello, Why is the xmlns:xi attribute ending up in my HTML and how do I exclude it? XML: <?xml version="1.0"?> ... <html xmlns:xi="http://www.w3.org/2001/XInclude"> ... <header> <a href="somepage.html" alt="SOMECOMPANY"> . . . Read full entry »


Re: How to select elements containing ARPT but not el

Posted 10/24/2022 11:04:35 PM

On Mon, Oct 24, 2022 at 10:51:42PM -0000, Roger L Costello costello@xxxxxxxxx scripsit: > Okay, so this for-loop does the job: > > <xsl:for-each select="//row[tokenize(affected_tables,'; ') = 'ARPT' > ][normalize-space(column_header)]"> <column_header><xsl:valu . . . Read full entry »


Re: How to select elements containing ARPT but not el

Posted 10/24/2022 10:51:35 PM

Hi Folks, Okay, so this for-loop does the job: <xsl:for-each select="//row[tokenize(affected_tables,'; ') = 'ARPT' ][normalize-space(column_header)]"> <column_header><xsl:value-of select="column_header"/></column_header> </xsl:for-each> That . . . Read full entry »


Re: How to select elements containing ARPT but not el

Posted 10/24/2022 10:33:45 AM

> For my education, would you please explain why this XPath expression selects all <row> elements: > //row[matches(affected_tables, '[ ;]?ARPT[ ;]?')] matches(affected_tables, '[ ;]?ARPT[ ;]?' ) is the same as matches(affected_tables, 'ARPT') which is same as contains( affected_tab . . . Read full entry »


Re: How to select elements containing ARPT but not el

Posted 10/24/2022 9:51:19 AM

Hi Folks, Thank you for your excellent responses. The code you provided works perfectly. For my education, would you please explain why this XPath expression selects all <row> elements: //row[matches(affected_tables, '[ ;]?ARPT[ ;]?')] Recall the input: <test> <row> < . . . Read full entry »


Re: How to select elements containing ARPT but not el

Posted 10/22/2022 9:17:36 PM

Here is a pure XPath 1.0 solution: /*/*[column_header[text()]]/affected_tables[contains(concat('; ',., '; '), '; ARPT;')] Thanks, Dimitre On Sat, Oct 22, 2022 at 11:21 AM Roger L Costello costello@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi Folks, > > Here i . . . Read full entry »


Re: How to select elements containing ARPT but not el

Posted 10/22/2022 6:37:02 PM

On 10/22/22 14:21, Roger L Costello costello@xxxxxxxxx wrote: I want to output b& all rows whose affected_tables contain ARPT. The precise XPath of that discriminator is //row[tokenize(affected_tables,';\s') = 'ARPT']. But that is insensitive to the content of the column_header. The precise . . . Read full entry »


Re: How to select elements containing ARPT but not el

Posted 10/22/2022 6:32:27 PM

On Sat, Oct 22, 2022 at 06:21:20PM -0000, Roger L Costello costello@xxxxxxxxx scripsit: > Hi Folks, > > Here is my input: > > <test> > <row> > <column_header>A</column_header> > <affected_tables>ARPT_RMK</affected_tables> > . . . Read full entry »


How to select elements containing ARPT but not element

Posted 10/22/2022 6:21:13 PM

Hi Folks, Here is my input: <test> <row> <column_header>A</column_header> <affected_tables>ARPT_RMK</affected_tables> </row> <row> <column_header>B</column_header> <affected_tables>APPC_ARPT</affected_table . . . Read full entry »


[ANN] Oxygen XML Editor version 25 has been released!

Posted 10/14/2022 6:45:54 AM

Hi everyone, We are excited to announce that Oxygen XML Developer/Editor version 25 is now available! Listing below some new features which may be useful for the XSL community: XSLT/XQuery ================================== * The Saxon built-in XSLT processor used for XSLT transformations and . . . Read full entry »


Fwd: Free Week of XSLT, XPath Pluralsight courses

Posted 10/12/2022 5:18:10 AM

Sent from my iPhone Begin forwarded message: > From: Amrendra Kumar Gupta <amrendra858@xxxxxxxxx> > Date: October 11, 2022 at 9:52:32 PM PDT > To: Dimitre Novatchev <dnovatchev@xxxxxxxxx> > Subject: Re: Free Week of XSLT, XPath Pluralsight courses > > o;? > Yes! . . . Read full entry »


Re: Free Week of XSLT, XPath Pluralsight courses

Posted 10/12/2022 4:25:31 AM

> It's not free saying upgrade account needed fir access course Dear friends, I just personally verified this on the computer of my wife. She was asked to create an account with Pluralsight, and after this she got full access to all Pluralsight courses for the week. This is **free** ! She w . . . Read full entry »


Re: Free Week of XSLT, XPath Pluralsight courses

Posted 10/12/2022 2:48:34 AM

It's not free saying upgrade account needed fir access course On Wed, 12 Oct, 2022, 2:04 am Dimitre Novatchev dnovatchev@xxxxxxxxx, < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Enjoy: All my XSLT and XPath Pluralsight courses are free this week: > https://app.pluralsight.com/pr . . . Read full entry »


Free Week of XSLT, XPath Pluralsight courses

Posted 10/11/2022 8:34:24 PM

Enjoy: All my XSLT and XPath Pluralsight courses are free this week: https://app.pluralsight.com/profile/author/dimitre-novatchevb& <https://t.co/LYS0zPZedy>: What's New in XSLT 3.0 - https://app.pluralsight.com/library/courses/xslt-3-0-whats-new-part1 The Evolution of XPath: Whatbs New . . . Read full entry »


Re: [ANN] XSLT courses upcoming at Delightful Computin

Posted 10/10/2022 8:00:15 AM

On Mon, 2022-10-10 at 06:19 +0000, Christophe Marchand cmarchand@xxxxxxxxxx wrote: > No more discount for bare-foot attendees ? Well, winter's starting in > Canada ! Haha i was barefoot when i walked the dogs today. The barefoot discount is partly because people do much better in a classroom . . . Read full entry »


Re: [ANN] XSLT courses upcoming at Delightful Computin

Posted 10/10/2022 6:18:19 AM

No more discount for bare-foot attendees ? Well, winter's starting in Canada ! Be safe, Christophe Le 09/10/2022 C 07:29, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx a C)critB : Hello! i'm back running courses again :) (although with some limits because i'm still recovering from a major illness). (1) . . . Read full entry »


[ANN] XSLT courses upcoming at Delightful Computing

Posted 10/9/2022 5:29:45 AM

Hello! i'm back running courses again :) (although with some limits because i'm still recovering from a major illness). (1) XSLT Three for XSLT Two Users (three days) - November (2) XSLT From Scratch (four days) (3) Web Accessibility for XML People (one day) Custom (bespoke) courses are also poss . . . Read full entry »


Saxonica announces the release of SaxonJS 2.5

Posted 10/4/2022 10:33:08 AM

Hello, Saxonica is pleased to announce the release of SaxonJS 2.5 for both Node.js and the browser. The SaxonJS 2.5 release is a maintenance release containing more than twenty bug fixes. Notable bug fixes in this SaxonJS release: + Fixed #5695 where sorting produced different results on Firefo . . . Read full entry »


Re: clever ways to dynamically copy/create element st

Posted 10/2/2022 5:38:16 PM

Using parse-xml() to parse a literal string at run-time is going to be pretty inefficient (although it might be optimiser if you're lucky). It might be a bit more wordy, but a global variable <xsl:variable name="empty-prolog" as="element(prolog)"> <prolog/> </x . . . Read full entry »


Re: clever ways to dynamically copy/create element st

Posted 10/2/2022 3:04:11 PM

Aaand posting again because I forgot the <xsl:copy> on the bmetadatab template: <xsl:mode name="add-data" on-no-match="shallow-copy"/> <xsl:template match="topic" mode="add-data"> <xsl:copy> <xsl:apply-templates s . . . Read full entry »


Re: clever ways to dynamically copy/create element st

Posted 10/2/2022 2:58:21 PM

Hi everyone, The moded templates can be simplified a bit to create the empty elements using parse-xml() instead of a variable: <xsl:mode name="add-data" on-no-match="shallow-copy"/> <xsl:template match="topic" mode="add-data"> <xsl: . . . Read full entry »


Re: clever ways to dynamically copy/create element st

Posted 10/1/2022 9:04:39 PM

I tried implementing your suggested using a moded template. From the default stylesheet mode, I match the topmost element of the element path I know will exist, then call an badd-datab moded template on it: <xsl:mode on-no-match="shallow-copy"/> <xsl:template match=" . . . Read full entry »


Re: clever ways to dynamically copy/create element st

Posted 10/1/2022 5:50:10 PM

I don't have a specific sample and may not be clever. What I have done with this is to match on the prolog element and then process by the pieces I expect to be there. So checking for the various child elements of prolog. Test for their existence and if not there insert what you want. You need to a . . . Read full entry »


Re: clever ways to dynamically copy/create element st

Posted 10/1/2022 5:02:11 PM

I forgot to mention one fun aspect. Sometimes the content models are order-specific: topic = element topic { title, titlealts?, (shortdesc | abstract)?, prolog?, body?, related-links?, topic* } prolog = element prolog { author*, source?, publisher?, copyright*, critdates?, permissions?, (metadata . . . Read full entry »


clever ways to dynamically copy/create element structu

Posted 10/1/2022 4:28:18 PM

Hi everyone, I want to use XSLT to add a piece of <data> metadata to a DITA topic. The DITA content model lets me place it at "topic/prolog/metadata/data": <topic id="topic"> <title>My Topic</title> <prolog> <metadata> <data . . . Read full entry »


XSL-List Guidelines

Posted 10/1/2022 3:32:11 PM

This information is posted to the XSL-List (and the XSL-List Digest) at intervals under the subject line "XSL-List guidelines". INTRODUCTION TO XSL-LIST XSL-List hosts discussion of XSL itself, XSL applications and implementation, and XSL user questions. XSL-List is open to everyone, us . . . Read full entry »


Re: sort collation

Posted 10/1/2022 12:29:39 PM

Well....that's clever and practical. Two things I am not :) On Sat, Oct 1, 2022 at 1:58 PM Martin Honnen martin.honnen@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Am 10/1/2022 um 1:53 PM schrieb Jean-Paul Rehr rehrjb@xxxxxxxxx: > > Dear all, > > > > . . . Read full entry »


Re: sort collation

Posted 10/1/2022 11:58:02 AM

Am 10/1/2022 um 1:53 PM schrieb Jean-Paul Rehr rehrjb@xxxxxxxxx: Dear all, I have a <xsl:sort> which is applied to footnote numbering. The footnotes are numbered a,b,c....aa,ab,ac...ba,bb,bc, etc With no collation applied, the footnotes are sorted a, aa, ab, b, ba, bb, bc, etc. I am having t . . . Read full entry »


sort collation

Posted 10/1/2022 11:53:36 AM

Dear all, I have a <xsl:sort> which is applied to footnote numbering. The footnotes are numbered a,b,c....aa,ab,ac...ba,bb,bc, etc With no collation applied, the footnotes are sorted a, aa, ab, b, ba, bb, bc, etc. I am having trouble identifying the collation to use to get them into the ord . . . Read full entry »


Re: XML > XSL > PHP possible?

Posted 9/30/2022 2:43:11 AM

On Thu, Sep 29, 2022 at 8:49 PM Michael B Allen ioplex@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > <xsl:template match="processing-instruction('php')"> > <xsl:processing-instruction name="php"> > <xsl:value-of disable-o . . . Read full entry »


Re: XML > XSL > PHP possible?

Posted 9/30/2022 1:43:32 AM

Here is my post and the answer from Dr. Kay. https://saxonica.plan.io/issues/4321 On 9/30/2022 10:22 AM, Toshihiko Makita tmakita@xxxxxxxxxxxxx wrote: I'm using following template with xsl:output/@method="html". It's works fine now in user projects. B B B <!-- B B B function:B B . . . Read full entry »


Re: XML > XSL > PHP possible?

Posted 9/30/2022 1:22:04 AM

I'm using following template with xsl:output/@method="html". It's works fine now in user projects. B B B <!-- B B B function:B B Processing instruction output template B B B param:B B B B B prmPiName, prmPiContent B B B return:B B B B text()+ B B B note:B B B B B B Saxon doe . . . Read full entry »


XML > XSL > PHP possible?

Posted 9/30/2022 12:49:41 AM

Hi, I'm trying to generate PHP from XML. This seems like something that should be possible but I fear it is not. Consider the following test.xml > test.xsl > test.php example: >>>>>>>> XSL <<<<<<<<< <?xml version="1.0"?> . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 10:27:49 PM

russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx wrote on 2022-09-28 17:16: > Ibll look into that. This isnbt my doc. Ibm trying to help a writer out!! > > Thx > > Russ It's what I do all day long, I support nearly 100 writers, so I see all sorts of stuff like this. Good luck . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 10:16:22 PM

Ibll look into that. This isnbt my doc. Ibm trying to help a writer out!! Thx Russ Sent from the all new AOL app for iOS On Wednesday, September 28, 2022, 5:11 PM, Wayne Brissette wayneb@xxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: You've got these listed: <ph conref=& . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 10:16:04 PM

On 9/28/2022 10:13 PM, russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx wrote: > > When i try this on a DITA xml file I get: > > russurquhart_boomi ~/Downloads/SaxonHE11-4JB $ java -jar > saxon-he-11.4.jar -t -s:Cloud_Object.xml -xsl:rem_para.xsl > -o:Cloud_Object_Out.xml > . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 10:11:06 PM

You've got these listed: <ph conref="lib-AtomSphere_API_9a0b3cc6-0758-45f9-b2cc-04932561d53c.xml#GUID-3B92F5CD-0A69-4191-BF29-297025332DDB/Supported" /> All of those are throwing errors in oXygen about not being able to find them. Is it possible this is your issue? By the way, . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 9:46:52 PM

I found reference.dtd and put it into my directory but no change! Thanks for the suggestion! Russ On Wednesday, September 28, 2022 at 04:21:04 PM CDT, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: It's got a reference to a file called "reference.dt . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 9:39:22 PM

Another qq, do i need to change the xsl:output method to DITA in order to keep that a valid DITA file? Thanks again, Russ On Wednesday, September 28, 2022 at 04:21:04 PM CDT, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: It's got a reference to a file c . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 9:32:02 PM

Ok, I'll look for that and try that then! Thanks everyone! Russ On Wednesday, September 28, 2022 at 04:21:04 PM CDT, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: It's got a reference to a file called "reference.dtd" so that file must exist in . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 9:20:42 PM

It's got a reference to a file called "reference.dtd" so that file must exist in the same directory as the XML. Michael Kay Saxonica > On 28 Sep 2022, at 22:03, russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Ibve . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 9:03:08 PM

Ibve attached the zip file.B Sent from the all new AOL app for iOS On Wednesday, September 28, 2022, 3:57 PM, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: What form does the DTD reference take? Michael KaySaxonica On 28 Sep 2022, at 21:37, russurquh . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 8:57:36 PM

What form does the DTD reference take? Michael Kay Saxonica > On 28 Sep 2022, at 21:37, russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > As it is a DITA file and points to that dtd I have to download that dtd locally? > > . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 8:37:02 PM

As it is a DITA file and points to that dtd I have to download that dtd locally? Sent from the all new AOL app for iOS On Wednesday, September 28, 2022, 3:33 PM, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: There's nothing wrong with the stylesheet, it's . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 8:33:11 PM

There's nothing wrong with the stylesheet, it's obviously a problem with the source document. The error comes from the XML parser, not from the XSLT processor. Does the XML file refer to other resources such as a DTD or external entities? Michael Kay Saxonica > On 28 Sep 2022, at 21:13, russur . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 8:32:57 PM

Unless I am wrong, that error has nothing to do with XSL although you shared the XSL. It looks like the XML file is corrupt OR given the naming like bCloud_Object.xmlb are you sure it is not some download from the cloud that injected special characters or was encoded wrong or was not complete bef . . . Read full entry »


Re: Simple style sheet erroring on Dita fle

Posted 9/28/2022 8:15:23 PM

Hi Russ, Does the DITA file validate as valid XML with bxmllintb or another similar checker? * Chris From: russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, September 28, 2022 4:13 PM To: Xsl-list <xsl-list@xxxxxxxxxxx . . . Read full entry »


Simple style sheet erroring on Dita fle

Posted 9/28/2022 8:12:42 PM

Hi All, It's been awhile but I have the opportunity to get back to xslt land. I have a small xslt: <xsl:stylesheet version="1.0"B xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" version="1.0" encoding="UTF-8" inden . . . Read full entry »


Declarative Amsterdam 2022 - Register now!

Posted 9/19/2022 11:54:21 AM

On 7 and 8 November Declarative Amsterdam is going to take place at CWI, Science Park, Amsterdam. The Program for Declarative Amsterdam 2022 <https://declarative.amsterdam/program> is official. It features tutorials and presentations on languages and tools such as RumbleDB, Schematron, Fore . . . Read full entry »


Re: Checking if a variable has a value

Posted 9/18/2022 8:33:17 AM

XPath exists function is a good solution. It returns true if the value is not an empty sequence. https://www.w3.org/TR/xpath-functions-31/#func-exists Best regards, Christophe Le 18/09/2022 C 10:05, Mukul Gandhi mukulg@xxxxxxxxxxxxxxxxx a C)critB : > Hi Mark, > > On Wed, 31 Aug, 2022, . . . Read full entry »


Re: Checking if a variable has a value

Posted 9/18/2022 8:05:09 AM

Hi Mark, On Wed, 31 Aug, 2022, 06:57 Mark Giffin m1879@xxxxxxxxxxxxx, < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > XSLT 2.0, Saxon processor. > > > > What's a good way to check if a variable has a value? I want to print > something if a variable has a value, and not . . . Read full entry »


XSL-List Guidelines

Posted 9/1/2022 4:25:48 PM

This information is posted to the XSL-List (and the XSL-List Digest) at intervals under the subject line "XSL-List guidelines". INTRODUCTION TO XSL-LIST XSL-List hosts discussion of XSL itself, XSL applications and implementation, and XSL user questions. XSL-List is open to everyone, us . . . Read full entry »


Re: Checking if a variable has a value

Posted 8/31/2022 11:10:24 AM

Am 8/31/2022 um 10:26 AM schrieb Jean-Paul Rehr rehrjb@xxxxxxxxx: >A variable always has a value. I'm trying to reconcile this statement with Xquery, which I use more frequently. In Xquery the following returns false: let $x := () return B B B if (exists($x)) then true() else false() Are yo . . . Read full entry »


Re: Checking if a variable has a value

Posted 8/31/2022 10:55:41 AM

"Jean-Paul Rehr rehrjb@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > In Xquery the following returns false: > > let $x := () > return > if (exists($x)) then true() else false() > > Are you stating that the equivalent cannot happen in XSL v . . . Read full entry »


Re: Checking if a variable has a value

Posted 8/31/2022 9:19:43 AM

> On 31 Aug 2022, at 02:27, Mark Giffin m1879@xxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > When the variable has no value, the following is output instead of nothing: > git hash: ${git-hash} This suggests that the problem might lie upstream, as it looks as i . . . Read full entry »


Re: Checking if a variable has a value

Posted 8/31/2022 8:26:26 AM

>A variable always has a value. I'm trying to reconcile this statement with Xquery, which I use more frequently. In Xquery the following returns false: let $x := () return if (exists($x)) then true() else false() Are you stating that the equivalent cannot happen in XSL variables? I'm a . . . Read full entry »


Re: Checking if a variable has a value

Posted 8/31/2022 8:10:56 AM

A variable always has a value. If a parameter is declared as `<xsl:param name="git-hash"/>`, with no `select` or `as` attribute, then its default value (if you don't supply one) is a zero-length string. There is no way of distinguishing this from the case where the user supplied a . . . Read full entry »


Re: Checking if a variable has a value

Posted 8/31/2022 5:22:24 AM

Thanks Syd and Graydon, I tried all of these and none can detect when $git-hash is empty, to avoid firing the xsl:if. That's too weird. It must be something else. If it makes any difference, the $git-hash variable is not defined in the stylesheet I am using it in, it is defined in another file that . . . Read full entry »


Re: Checking if a variable has a value

Posted 8/31/2022 1:44:20 AM

On Wed, Aug 31, 2022 at 01:27:20AM -0000, Mark Giffin m1879@xxxxxxxxxxxxx scripsit: > XSLT 2.0, Saxon processor. > > What's a good way to check if a variable has a value? > I tried this and others: > <xsl:if test="matches($git-hash, '\d|[a-z]')"> > <dc:su . . . Read full entry »


Re: Checking if a variable has a value

Posted 8/31/2022 1:36:21 AM

<xsl:if test="$git-hash eq ''"> ... </xsl:if> does the trick, at least for me. I think this is because <xsl:param name="git-hash"/> sets $git-hash to the empty string if a value was not supplied. So the point is that the parameter is defined, but it happens . . . Read full entry »


Checking if a variable has a value

Posted 8/31/2022 1:27:13 AM

XSLT 2.0, Saxon processor. What's a good way to check if a variable has a value? I want to print something if a variable has a value, and not print it if it is not given a value. This must be extremely simple but I don't see it. Variable is declared: <xsl:param name="git-hash"/> . . . Read full entry »


Re: Looking for a cleaner way of auditing table cell d

Posted 8/30/2022 11:43:23 AM

Hi Chris I figured out the is-whitespace function but thanks for showing me yours! Like you, I don't think I want to insist on table cells having no inline content. There are far too many tables in this library which contain dozens of single value cells and forcing them all into paragraphs . . . Read full entry »


Re: Looking for a cleaner way of auditing table cell d

Posted 8/30/2022 11:04:07 AM

Hi Trevor, If you are strictly disallowing inline content in all table cells, then putting <td> into the "disallow-inline" list should be sufficient. For us, I do not want to strictly disallow inline content in table cells, but I would like to catch and fix the intermingling of in . . . Read full entry »


Re: Looking for a cleaner way of auditing table cell d

Posted 8/29/2022 6:09:01 PM

Thanks Chris, that looks like something I can work with; I hadn't thought of functions. You say your stylesheet was intended to modify <li> elements; funnily enough that was something I asked them to do to the schema earlier in the project and now simple content list items are not allowed . . . Read full entry »


Re: Looking for a cleaner way of auditing table cell d

Posted 8/29/2022 3:11:55 PM

Hi Trevor, I have an existing stylesheet for DITA source that wraps plaintext in <li> elements in <p>; perhaps you can adjust it to your needs: <!-- define what elements are considered inline elements --> <xsl:function name="mine:is-inline" as="xs:boolean&qu . . . Read full entry »


Looking for a cleaner way of auditing table cell data

Posted 8/29/2022 2:36:49 PM

Hi I have a substantial library of XML documents which include a great number of tables. As it happens the content model for table cells is promiscuous; a table cell may contain "block" data: <td> <para>blah blah.</para> </td> even to the extent of . . . Read full entry »


Re: emulating sprintf in XSLT

Posted 8/29/2022 1:19:35 PM

On Mon, 2022-08-29 at 06:45 +0000, Wegmann, Frank frank.wegmann@xxxxxxxxxxxxxx wrote: > > I guess, using text value templates is a better choice regarding > performance, or...? Probably faster, but more importantly clearer for this use case at least. Whether creating a text node is faster . . . Read full entry »


Re: emulating sprintf in XSLT

Posted 8/29/2022 7:55:52 AM

Thanks Liam, that's even more direct and efficient! - Chris -----Original Message----- From: Liam R. E. Quin liam@xxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Sunday, August 28, 2022 7:52 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: emulating sprintf in XSLT O . . . Read full entry »


Re: emulating sprintf in XSLT

Posted 8/29/2022 6:44:27 AM

I guess, using text value templates is a better choice regarding performance, or...? Frank -----Original Message----- From: Liam R. E. Quin liam@xxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, 29 August 2022 01:53 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: em . . . Read full entry »


Re: emulating sprintf in XSLT

Posted 8/28/2022 11:52:27 PM

On Sun, 2022-08-28 at 23:06 +0000, Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx wrote: > Hi everyone, > > If you need sprintf()-like functionality in XSLT, one approach is to > use the arrow (=>) operator to apply a series of replace() > operations: Another, in XS . . . Read full entry »


emulating sprintf in XSLT

Posted 8/28/2022 11:06:04 PM

Hi everyone, If you need sprintf()-like functionality in XSLT, one approach is to use the arrow (=>) operator to apply a series of replace() operations: <xsl:if test="$word-count > 0"> <xsl:variable name="minutes" select="xs:integer(ceiling($word- . . . Read full entry »


Re: select the word to the left of the current node

Posted 8/25/2022 5:21:05 PM

I think I solved my own problem. In place of group-adjacent I used group-ending-with: I also had to return "n/a" in groups that contained no fnTerm so that only groups with fnTerms are selected in the main choose/when. <xsl:template match="p[var]"> <xsl:copy&g . . . Read full entry »


select the word to the left of the current node

Posted 8/25/2022 4:18:14 PM

I have the following situation. Certain paragraphs in my document contain one or more footnote nodes referencing the word immediately before the node. (Text has been shortened for readability.) <div> <p class="body_text">...she turned just in time to seize a small boy...and . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/24/2022 8:47:37 PM

I believe XSLT debuggers and more in general XSLT editors, can be incredibly useful. Here some of features that can improve the developer's life dramatically: Test XSLT with multiple processors Test XSLT with multiple inputs Preview result into multiple viewer Back mapping from the transformation . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/24/2022 11:40:12 AM

Hi, I have a colleague, a Java programmer, who likes the oXygen debugger for coding XSLT, because he likes the way it shows source and result, but I mainly only use it when I am deep into some kind of purgatory (places I am better at staying out of these days), or to run a one-off transformation w . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 9:17:35 PM

Given that you said "there was one that was Windows only" and that you couldn't "remember the name", I had rather expected you to throw in the name of an ancient product like Xselerator :) On 23.08.2022 21:42, russurquhart1@xxxxxxxxxxx wrote: > https://www.altova.com/xmlspy- . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 7:42:32 PM

https://www.altova.com/xmlspy-xml-editor/xslt-debugger -----Original Message----- From: russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Sent: Tue, Aug 23, 2022 11:22 am Subject: Re: Do you run your XSLT code . . . Read full entry »


Re: Why are these two template rules ambiguous?

Posted 8/23/2022 5:25:09 PM

Firstly, it's not at all clear that one of these rules is "more specific". If you draw the Venn diagram, the two patterns define two sets of elements, neither of which is a subset of the other. Secondly, XSLT does not say that the more specific rule wins. It says (see https://www.w3.org/ . . . Read full entry »


Re: Why are these two template rules ambiguous?

Posted 8/23/2022 5:20:19 PM

Hi, Yes, what David C says, plus the first template matches any "airport//procedureLeg" while the second template matches only those that have element children. A rule of thumb is, "if you are unsure of how priority is being assigned by default, use @priority". There is no har . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 4:53:47 PM

This is quite interesting that most experts here do not make use of XSLT Debugging. In the past, I did that from time to time, but tried to avoid it, because it's so time consuming. But I remember that I had a few lengthy debugging sessions when trying to understand exactly how the DocBook XSL wor . . . Read full entry »


Re: Why are these two template rules ambiguous?

Posted 8/23/2022 4:41:51 PM

On Tue, 23 Aug 2022 at 17:35, Roger L Costello costello@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi Folks, > > I have these two template rules: > > <xsl:template match="procedureLeg[ancestor::airport]"> > <xsl:template match="*[c . . . Read full entry »


Why are these two template rules ambiguous?

Posted 8/23/2022 4:35:32 PM

Hi Folks, I have these two template rules: <xsl:template match="procedureLeg[ancestor::airport]"> <xsl:template match="*[child::*]"> When the <procedureLeg> element is encountered in the instance document, Saxon throws a warning, saying that it is ambiguous . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 4:32:46 PM

It was called Altova I think Sent from the all new AOL app for iOS On Tuesday, August 23, 2022, 11:22 AM, russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: There was one that was Windows only B I canbt remember the name but it helped m . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 4:21:50 PM

There was one that was Windows only B I canbt remember the name but it helped me a lot and I think it could debug Xpaths. Sorry I oulsnt remember the name.B Russ Sent from the all new AOL app for iOS On Tuesday, August 23, 2022, 11:02 AM, Dimitre Novatchev dnovatchev@xxxxxxxxx <xsl-list-s . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 4:10:45 PM

"Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: [b&] > Do you run your XSLT code from a debugger? If so, what debugger do you use? I donbt think the answer is bneverb, but itbs pretty dang rare and I donbt actually remember the la . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 4:02:14 PM

> Do you run your XSLT code from a debugger? If so, what debugger do you use? Extremely rarely - almost never. If most important processing is done within an XPath expression, then an XSLT debugger is of little help. Does someone offer an XPath debugger? Thanks, Dimitre On Tue, Aug 23, 202 . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 3:44:16 PM

> On Aug 23, 2022, at 11:21 AM, Steven D. Majewski steve.majewski@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > I recall Oxygen has a capability to generate sample code from schemas, I meant to say bsample documentsb there. But that may be limited usefulness. I . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 3:20:55 PM

I agree here. I do use Oxygen debugger a lot, but I use it mostly as a shortcut b not stepping thru code, but clicking on output so Oxygen will go to the template among a bunch of imported stylesheets that produces that output. XSLT is usually pretty declarative and not difficult to reason about, . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 3:08:58 PM

I use interactive debugging all the time with Java, but very rarely with XSLT. Debuggers are useful because they tell you which branches are taken in your code, and what the values of variables are. They're not much use for two of the key problems with XSLT debugging, which are working out why you . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 3:00:49 PM

Im with MartinI find the XSLT debugger in Oxygen to be less useful than for other languages. This may in part be because I do a lot of my work in DITA Open Toolkit which doesnt lend itself to easy debugging but I also get a lot of mileage out of using messages to see whats happening where. Thi . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 3:00:42 PM

When we teach XSLT, we always use the oXygen debugger, and especially the "output to source mapping" feature because it helps to show which portions of the output document are processed by which templates. And when I'm composing XSLT I pretty much always work in the oXygen XSLT debugger v . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 2:43:23 PM

On Tue, 23 Aug 2022 at 15:10, Roger L Costello costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > When I'm working on code I'm always running it from the debugger. The first thing I do after writing code is set a breakpoint and step through the code and see if it's actua . . . Read full entry »


Re: Do you run your XSLT code from a debugger? What d

Posted 8/23/2022 2:34:01 PM

Am 23.08.2022 um 16:10 schrieb Roger L Costello costello@xxxxxxxxx: Do you run your XSLT code from a debugger? If so, what debugger do you use? Sometimes I (need to/tend to) use the debugger in oXygen. But often, I try to find my way around with adding e.g. xsl:message or <debug><xsl:seq . . . Read full entry »


Do you run your XSLT code from a debugger? What debugg

Posted 8/23/2022 2:10:01 PM

Hi Folks, . . . Read full entry »


Re: Where is 'intersect' Operator Defined in XPath 3?

Posted 8/20/2022 9:42:28 PM

Christof, The QuickRefs are copyrighted as indicated on their fronts (they are designed to be printed and folded) which means you can't print them and sell them. You can print them and use them, however, or pass them out (for free), or pass the link around. Thanks, they deserve a long life - it w . . . Read full entry »


Re: Including precediing-siblings with the first group

Posted 8/20/2022 7:55:50 AM

Am 18.08.2022 um 16:27 schrieb rick@xxxxxxxxxxxxxx: > > > I have an input file that I want to split into files at each section. > The first section should include everything before it. Below are my > input, desired output, and stylesheet. I am pretty sure this is the > simplest ap . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/19/2022 9:32:01 AM

"Joel Kalvesmaki director@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > Here's another approach, if the XPath expression has icaoCode as the > context. Forget about path(). Just string-join the local names of the > ancestors and self, e.g., > > st . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/18/2022 8:46:32 PM

I would probably do: (//info[1]/ancestor-or-self::* => tail()) ! local-name(.) => string-join('/') To get all the but the root element in the path. The => appears to put the ancestor nodes into document order. Cheers, E. _____________________________________________ Eliot Kimber S . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/18/2022 8:40:18 PM

-----Original Message----- From: Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, August 18, 2022 4:37 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: XPath expression which converts the output of path() into an abbreviated path? Unl . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/18/2022 8:36:47 PM

Hi, Joel is right: that is a much better approach. ancestor-or-self::*[position() = (1 to 3)]/local-name(.) => string-join('/') Unless I am not mistaken this will collect three levels up - while the / provides for the return sequence to be read top-down (document order) not bottom up. (Correc . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/18/2022 7:03:14 PM

Here's another approach, if the XPath expression has icaoCode as the context. Forget about path(). Just string-join the local names of the ancestors and self, e.g., string-join(for $i in (ancestor-or-self::* except /*) return local-name($i), '/') jk On 2022-08-17 08:22, Roger L Costello coste . . . Read full entry »


Re: Including precediing-siblings with the first group

Posted 8/18/2022 3:15:05 PM

Hi Martin, I have to check the DTD, but I am pretty sure that is the allowed sequence. Thank you for the feedback. Your suggestion is much simpler than grouping. Rick Is the content of chapter always some unknown elements plus a sequence of section elements? In that case you could of cour . . . Read full entry »


Re: Including precediing-siblings with the first group

Posted 8/18/2022 2:56:48 PM

Am 18.08.2022 um 16:27 schrieb rick@xxxxxxxxxxxxxx: > > > I have an input file that I want to split into files at each section. > The first section should include everything before it. Below are my > input, desired output, and stylesheet. I am pretty sure this is the > simplest ap . . . Read full entry »


Including precediing-siblings with the first group

Posted 8/18/2022 2:27:35 PM

Hi All, I have an input file that I want to split into files at each section. The first section should include everything before it. Below are my input, desired output, and stylesheet. I am pretty sure this is the simplest approach, but any suggestions would be appreciated. Thank you. Rick . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/18/2022 2:08:27 PM

Am 17.08.2022 um 14:45 schrieb Martin Honnen martin.honnen@xxxxxx: Am 17.08.2022 um 14:38 schrieb Alan Painter alan.painter@xxxxxxxxx: Suggesting similar: For variable $s with string text ... tokenize($s, '/')[position() = (last()-2 to last())]!replace(., '.*\}(.*)\[.*', '$1')=>string-join('/' . . . Read full entry »


Re: Performance differences between xsl:for-each and

Posted 8/18/2022 5:12:41 AM

> Well, this appears to be working code, and attempting to improve the performance > of working code is not "premature" - provided that you have clear evidence that > the working code doesn't meet the performance requirements. Actually, even with working code it is premature to . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 8:17:04 PM

IMHO you should take everyonebs badviceb b& which means you should look at them all and decide what works best for you b& in your environment b& with you and your users b& and then make a decision based on your specific requirements. Of course that is my opinion (MHO). I would n . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 6:24:26 PM

An option: You say you are scanning / ocrbing? If you have an html output optionb& Use Saxon with the tidy option to strip out all attributes / css / script etc., then rebuild with the markup you want. I find that route preferable Hth On Wed, 17 Aug 2022 at 18:55, Trevor Nicholls tr . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 5:55:48 PM

Thank you all for a very useful discussion. Our technical author uses structured FrameMaker for the heavy lifting but for quick and casual editing I have been using emacs and sublime text. I've had the nxml emacs module enabled which is XML-aware but I had never heard of the relax-NG option, so th . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 4:29:30 PM

Hi Steve - Phil Fearon's DeltaXML Ltd extensions may be helpful (caveat: I am not a VSCode user so can't speak about the extensions, but I do see him post about the extensions on different channels). The github for these is https://github.com/DeltaXML. HTH Best, Bridger On Wed, Aug 17, 2022 at 1 . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 3:55:49 PM

Do you have recommendations for XML extensions for Visual Studio Code ? Or how to configure the extensions ? On my first attempt to set it up for XML editing, I loaded too many extensions and had trouble getting them to work together (or to figure out which extension wasnbt working properly) Now . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 3:44:15 PM

Ibll add that another nice feature of Oxygen is the ability to do XML aware regex search and replace, for example, to restrict search and replace to contents of specific elements or to exclude element tags and only do replacement on text elements. > On Aug 17, 2022, at 10:05 AM, Chris Papadem . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 3:44:09 PM

On 17/08/2022 14:06, C. M. Sperberg-McQueen cmsmcq@xxxxxxxxxxxxxxxxx wrote: [...] At the moment I mostly use nxml mode, with key bindings modified to be closer to those of psgml mode. (Are the psgml mode bindings better designed? Or did I just get used to them first? Possibly.) I believe so, but . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 3:40:35 PM

On 17/08/2022 14:49, Michele R Combs mrrothen@xxxxxxx wrote: Thatbs pretty basic functionality for an XML editor.B I canbt speak to the other suggestions, but Oxygen for sure will do exactly that. All XML editors should be able to do this. I did a comparison of the features of document editor . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 3:36:32 PM

On 17/08/2022 12:51, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx wrote: I use emacs with an xml mode enabled, but this only assists me with syntax errors (unterminated elements, etc) and not semantic errors (document doesn't conform to its declared schema). Is there an emacs package which can do b . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 3:06:38 PM

Another powerful feature of Oxygen is XML refactors, where you can use XSLT or XQuery to do in-place updates to one or more files. Ive become a big fan of XQuery refactors because XQuery update lets you do surgical updates to documents, so the code is very compact, as compared to the equivalent X . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 3:05:30 PM

"Massimiliano Volpi maxvolpi@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > One thing that would be very nice to have is the ability to select a > section of the text and assign it a code (the start and end of an xml > tag, I mean) as that would speed up . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 2:04:38 PM

Building on what Michele says, Oxygen also provides various element/attribute rename/unwrap/deletion refactoring actions that let you perform more advanced actions that use XPath-like expressions (renaming attributes in certain elements, unwrapping elements in certain parent elements, etc.). Two o . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 2:03:39 PM

I'm generally inclined to open source. But as Syd has said, Oxygen is one application where the value for money is really top notch, particularly if you are a student or academic with reduced license cost. In terms of functions, in Oxygen XML documents you can select text (or mixed node content), . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 2:02:17 PM

Am 17.08.2022 um 15:42 schrieb Massimiliano Volpi maxvolpi@xxxxxxxxxxx: > > One thing that would be very nice to have is the ability to select a > section of the text and assign it a code (the start and end of an xml > tag, I mean) as that would speed up the job quite a bit. > > I . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 1:52:12 PM

In Oxygen, as soon as the file is a XML file (starts with an openning element, ends with its closing element), you can select some text, cut it, write your starting tag (editor automatically writes the closing tag) and paste text inside. And I'm not sure you have to cut / paste it... Have a lo . . . Read full entry »


Re: Ris: suggestion for an xml editor, please?

Posted 8/17/2022 1:48:46 PM

Thatbs pretty basic functionality for an XML editor. I canbt speak to the other suggestions, but Oxygen for sure will do exactly that. You select a chunk of text and then just double-click on the element you want to wrap it in. You can also switch back and forth between XML-encoding mode and p . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 1:42:42 PM

My top two recommendations are: 1. oXyen XML Editor 2. Visual Studio Code With Visual Studio Code there are extensions to add functionality for XML, XSLT/XPath, and a wide variety of other things. Cheers, Vincent ________________________________ From: Bauman, Syd s.bauman@xxxxxxxxxxxxxxxx . . . Read full entry »


Ris: suggestion for an xml editor, please?

Posted 8/17/2022 1:42:33 PM

Thanks All, this is all very useful. One thing that would be very nice to have is the ability to select a section of the text and assign it a code (the start and end of an xml tag, I mean) as that would speed up the job quite a bit. I will explore the suggestions received thus far, but if one of th . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 1:22:16 PM

Or, to be more precise, Emacs/nxml-mode (editing an XML document and validating it against a RELAX NG compact syntax grammar as you go); there is also Emacs/psgml-mode for editing an XML document and validating it against a DTD. I think what has been posted here about Emacs is correct  it is in s . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 1:06:13 PM

"Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > I use emacs with an xml mode enabled, but this only assists me with > syntax errors (unterminated elements, etc) and not semantic errors > (document doesn't conform to its decla . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 1:04:28 PM

I've used Oxygen as well as notepad++, both with and without the XML plugin. Michele From: Massimiliano Volpi maxvolpi@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, August 17, 2022 2:20 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: suggestion for an xml editor, p . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/17/2022 12:54:25 PM

> This works, but I canbt immediately think of a way to avoid the $parts > variable. But someone cleverer than me will probably post a purely > functional answer thatbs eluding me. *blush* Just tokenize first rather than last. Be seeing you, . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/17/2022 12:52:24 PM

> I am using the path() function and it is generating paths like this: > > /Q{}AeroPublication[1]/Q{}airports[1]/Q{}airport[1]/Q{}icaoCode[1] > > Now I want to convert that full path into an abbreviated path, consisting of just the last 3 names: > > airports/airport/icaoCode &g . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/17/2022 12:45:26 PM

Am 17.08.2022 um 14:38 schrieb Alan Painter alan.painter@xxxxxxxxx: Suggesting similar: For variable $s with string text ... tokenize($s, '/')[position() = (last()-2 to last())]!replace(., '.*\}(.*)\[.*', '$1')=>string-join('/') Looks way better, I always feel I shoot myself into the foot if . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/17/2022 12:40:14 PM

On Wed, Aug 17, 2022 at 12:22:15PM -0000, Roger L Costello costello@xxxxxxxxx scripsit: > I am using the path() function and it is generating paths like this: > > /Q{}AeroPublication[1]/Q{}airports[1]/Q{}airport[1]/Q{}icaoCode[1] > > Now I want to convert that full path into an abb . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/17/2022 12:38:12 PM

Suggesting similar: For variable $s with string text ... tokenize($s, '/')[position() = (last()-2 to last())]!replace(., '.*\}(.*)\[.*', '$1')=>string-join('/') On Wed, Aug 17, 2022 at 2:34 PM Martin Honnen martin.honnen@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/17/2022 12:34:29 PM

Am 17.08.2022 um 14:22 schrieb Roger L Costello costello@xxxxxxxxx: Hi Folks, I am using the path() function and it is generating paths like this: /Q{}AeroPublication[1]/Q{}airports[1]/Q{}airport[1]/Q{}icaoCode[1] Now I want to convert that full path into an abbreviated path, consisting of just . . . Read full entry »


Re: XPath expression which converts the output of path

Posted 8/17/2022 12:26:11 PM

Hi Roger, At the risk of having rotten produce thrown at me, I might consider a replace() for this. It wouldn't be pretty (to remove the optional positional predicates) but it would get the job done. I'm sure there are better ways... -----Original Message----- From: Roger L Costello costello@xx . . . Read full entry »


XPath expression which converts the output of path() i

Posted 8/17/2022 12:22:09 PM

Hi Folks, I am using the path() function and it is generating paths like this: /Q{}AeroPublication[1]/Q{}airports[1]/Q{}airport[1]/Q{}icaoCode[1] Now I want to convert that full path into an abbreviated path, consisting of just the last 3 names: airports/airport/icaoCode I can write a bunch of . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 11:53:07 AM

On Wed, 17 Aug 2022 at 12:51, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I use emacs with an xml mode enabled, but this only assists me with syntax > errors (unterminated elements, etc) and not semantic errors (document > doesn't co . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 11:51:34 AM

I use emacs with an xml mode enabled, but this only assists me with syntax errors (unterminated elements, etc) and not semantic errors (document doesn't conform to its declared schema). Is there an emacs package which can do both? cheers T From: Christophe Marchand cmarchand@xxxxxxxxxx <x . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 11:32:13 AM

On 17/08/2022 12:13, Christophe Marchand cmarchand@xxxxxxxxxx wrote: Right ! But the point here was EMacs is able to work on very large files, Yes, that is always a big benefit when doing this. and is a little bit easier than vi (according to some EMacs fans...) I stay away from that debate the . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 10:13:02 AM

Right ! But the point here was EMacs is able to work on very large files, and is a little bit easier than vi (according to some EMacs fans...) that as also some XML extensions... Christophe Le 17/08/2022 C 12:05, Peter Flynn peter@xxxxxxxxxxx a C)critB : > On 17 August 2022 09:51:25 "C . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 10:05:24 AM

On 17 August 2022 09:51:25 "Christophe Marchand cmarchand@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > [b&] For this kind of documents, prefer some simple text editors, like EMacs > or others that are able to work woth large files. Not forgetting that . . . Read full entry »


Re: Performance differences between xsl:for-each and

Posted 8/17/2022 8:51:20 AM

On Wed, 17 Aug 2022 at 08:10, Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > But let's ignore the critique of methodology and try to answer the > question. There is no reason to believe that using apply-templates and > template rules should be fas . . . Read full entry »


Re: suggestion for an xml editor, please?

Posted 8/17/2022 8:51:04 AM

Hum... difficult to answer ! There are many editors, and many various use cases ! In my opinion, best editor for XML-related technologies is Oxygen (https://www.oxygenxml.com/) suite. Fonto XML (https://www.fontoxml.com/fonto-xml-editor/) is also a great editor. They are both commercial. If . . . Read full entry »



PURCHASE STYLUS STUDIO ONLINE TODAY!!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

What's New for X14?

New XQuery & Web Services Tools, Support for MySQL, PostgreSQL, HL7 EDI, Microsoft .NET Code Generation and much more!

Ask Someone You Know

Does your company use Stylus Studio? Do your competitors? Engineers from over 100,000 leading companies use Stylus Studio, and now you can ask someone from your own organization about their experiences using Stylus Studio.

 
Free Stylus Studio XML Training:
W3C Member