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: current() and position()?

Posted 12/3/2019 1:19:36 AM

I think this definition of the ! operator in the XPath 3.0 specification explains exactly why the reported result of the evaluation is observed https://www.w3.org/TR/xpath-30/#id-map-operator : "3.14 Simple map operator (!) [34] SimpleMapExpr <https://www.w3.org/TR/xpath-30/#prod-xpath . . . Read full entry »


Re: current() and position()?

Posted 12/2/2019 11:56:34 PM

Dear Wendell and xsl-list, Thank you (also the others who have responded) for the clarification. You write that it "isn't about current()", but, for what it's worth, it was misunderstanding current() that led me to misunderstand position(). The spec (20.4.1) tells me that "The curr . . . Read full entry »


Re: Why does this XPath expression work fine when run

Posted 12/2/2019 6:40:58 PM

You're confusing two things here. Firstly, there's an absolute rule that an assertion can only look within the subtree of the element on which it is defined. In other words, an assertion on an element can make that element invalid, but it can't make other elements invalid (other than containing el . . . Read full entry »


Re: Why does this XPath expression work fine when run

Posted 12/2/2019 6:12:51 PM

Furthermore, if you put the assertion on a parent element, then by default the XDM instance against which the assertion is run has all comment and PI nodes stripped (on the theory that comments and PIs should not affect the validity of a document). <quote> XSD 1.1 part 1 B'3.13.4.1 clause 1. . . . Read full entry »


Re: Why does this XPath expression work fine when run

Posted 12/2/2019 6:12:32 PM

Thank you Graydon and Ken. If I understand correctly, you are saying that the XPath expression in an XSD 1.1 assert may not reference comment fields. Correct? Okay, I will switch back to XSD 1.0 and express assertions using Schematron. The XPath works fine in Schematron: <sch:rule context=&qu . . . Read full entry »


Re: Why does this XPath expression work fine when run

Posted 12/2/2019 5:50:25 PM

The data model within which an assertion is evaluated is comprised only of the element itself, not its siblings. You are looking at siblings. Per the specification: https://www.w3.org/TR/xmlschema11-1/#sec-cvc-assertion I hope this helps. . . . . . . Ken At 2019-12-02 17:27 +0000, Costello, R . . . Read full entry »


Re: Why does this XPath expression work fine when run

Posted 12/2/2019 5:47:55 PM

On Mon, Dec 02, 2019 at 05:26:37PM -0000, Costello, Roger L. costello@xxxxxxxxx scripsit: > Why does the XPath query work fine when run in Oxygen but fails when > used in an XSD 1.1 assert element? When you assert: *[local-name(.) eq 'style']/following-sibling::comment()[1]/starts-with(., ' . . . Read full entry »


Why does this XPath expression work fine when run in

Posted 12/2/2019 5:26:32 PM

Hi Folks, Below is a sample XHTML document. Immediately following the <style> element is a comment. I want to ensure that the value in the comment starts with this string: [if gte mso 9]><xml> Using Oxygen, I ran the following XPath query (the <head> element is the context . . . Read full entry »


Re: current() and position()?

Posted 12/2/2019 4:53:39 PM

Dear David and XSL-List, Mike points out this isn't about current(): it is a red herring. Nonetheless it might help to keep in mind that while position() is an XPath expression, current() is not. It is defined only by XSLT. This is because its entire purpose is to refer from inside an XPath expre . . . Read full entry »


Re: current() and position()?

Posted 12/2/2019 8:11:34 AM

Basically, if X is a sequence of N items, then X ! position() will return the integer sequence 1 to N. Which means that if X is a singleton (which current() always is) then X! position() will always be 1. This has nothing to do with the peculiarities of the current() function. Within any subexpres . . . Read full entry »


XSL-List Guidelines

Posted 12/2/2019 4:56:26 AM

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: current() and position()?

Posted 12/2/2019 4:07:49 AM

Dear Dimitre (cc xsl-list), Thank you for the quick response. I had misunderstood that, as you write: "'The context position is returned by the XPath expression position().' This has a different, narrower meaning than the definition of position() in XPath, as XPath doesn't know about any XSLT . . . Read full entry »


Re: current() and position()?

Posted 12/2/2019 3:41:08 AM

> <xsl:variable name="letters" as="xs:string+" select="'a', 'b', 'c'"/> > <xsl:for-each select="$letters"> > <xsl:message select="position(), current() ! position()"/> > </xsl:for-e . . . Read full entry »


current() and position()?

Posted 12/2/2019 1:05:11 AM

Dear xsl-list, With apologies for what I suspect is a naive question, I am confused about the context position in: <xsl:variable name="letters" as="xs:string+" select="'a', 'b', 'c'"/> <xsl:for-each select="$letters"> . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/27/2019 5:42:33 AM

On Wed, Nov 27, 2019 at 4:11 AM Liam R. E. Quin liam@xxxxxxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I don't think there are any books on XSLT 3 yet. > An XSLT 3.0 book from Mike (Dr Kay), would be a great resource I think. Mike has done so much for XML community . . . Read full entry »


Re: Using @validation and @type?

Posted 11/27/2019 1:12:58 AM

Dear Michael (cc XSL-list) Thank you for this very helpful response. I realize now that I had failed to understand (that is, I had partially confused) the role of @validation vs @default-validation. And although I should have been attentive to the difference between the type of the item (@row is a . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/26/2019 10:41:16 PM

On Mon, 2019-11-25 at 17:07 +0000, Rick Quatro rick@xxxxxxxxxxxxxx wrote: > Watching part of the course was very helpful and has encouraged me to > explore XSLT/XPath 3 in my own work. I haven't been able to find any > books on XSLT 3.0 yet. I would appreciate any recommendations. I don' . . . Read full entry »


Re: Using @validation and @type?

Posted 11/26/2019 8:26:05 AM

Firstly, it's important to remember that (conceptually at least) tree construction is bottom up. You successfully create an an attribute typed as attribute(*, xs:integer); then you create a <cell> element, and attach a copy of the attribute to this element; then you create a <test> elem . . . Read full entry »


Re: Using @validation and @type?

Posted 11/26/2019 8:10:00 AM

I donbt import a schema, and, for that matter, I donbt transform a document. I create temporary elements inside the stylesheet and I want some of their attributes to be typed as integers. Ibm not trying to validate anything except the typing on these ephemeral elements. > On Nov 25, 2019, at . . . Read full entry »


Re: Using @validation and @type?

Posted 11/26/2019 7:50:06 AM

Am 26.11.2019 um 02:38 schrieb David Birnbaum djbpitt@xxxxxxxxx: Dear XSL-list, I'm beginning to explore schema-aware processing, and for a real project I need to create some temporary elements with attributes that I would like to treat as integers. In the non-schema-aware version I explicitly pas . . . Read full entry »


Re: Best practice for typing?

Posted 11/26/2019 5:01:53 AM

On Tue, Nov 26, 2019 at 12:23 AM Liam R. E. Quin liam@xxxxxxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > There can also be considerable efficiency benefits to using as= as well > I would agree with that Liam. For example I think, certain type errors can be found at c . . . Read full entry »


Using @validation and @type?

Posted 11/26/2019 1:38:37 AM

Dear XSL-list, I'm beginning to explore schema-aware processing, and for a real project I need to create some temporary elements with attributes that I would like to treat as integers. In the non-schema-aware version I explicitly pass the attributes through the number() function when I need intege . . . Read full entry »


Re: Need XPath 2.0 expression which returns a non-empt

Posted 11/26/2019 1:12:26 AM

Does it have to be XPath or will XSLT do? <xsl:for-each-group select="body/*" group-ending-with="p[not(. = '&#x160')]"> <xsl:sequence select="current-group()[last()[. gt 20]][not(. = '&#x160')]"/> <xsl:for-each-group> Michael Kay Saxonica . . . Read full entry »


Re: Need XPath 2.0 expression which returns a non-empt

Posted 11/25/2019 9:14:09 PM

Roger, Try this: //p[.!='&#xA0;'][exists(preceding-sibling::p)] [empty(preceding-sibling::p[position() le 20][not(. ='&#xA0;')])] ... because the preceding-sibling axis is a reverse axis, we can apply a position test backwards. Note that for purposes of this XPath, <p/> is not em . . . Read full entry »


Re: Need XPath 2.0 expression which returns a non-empt

Posted 11/25/2019 8:08:25 PM

On Mon, Nov 25, 2019 at 11:38 AM Costello, Roger L. costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi Folks, > > I want to know if an XHTML document contains a non-empty paragraph (p) element that is preceded by a long, uninterrupted series of paragraph el . . . Read full entry »


Re: Need XPath 2.0 expression which returns a non-empt

Posted 11/25/2019 8:07:54 PM

One solution (not optimized for speed or brevity: /*/p [normalize-space(translate(., ' &#xA0;', '')) and (every $i in 1 to 20 satisfies preceding-sibling::p[position() eq $i and not(normalize-space(translate(., ' &#xA0;', '')))] . . . Read full entry »


Re: Need XPath 2.0 expression which returns a non-empt

Posted 11/25/2019 8:07:50 PM

On 25/11/2019 19:39, Costello, Roger L. costello@xxxxxxxxx wrote: [snip] That is, my XPath query does not account for the requirement that the long series of paragraph elements be uninterrupted. How to write an XPath 2.0 query for this? preceding-sibling() count *any* preceding sibling, not contig . . . Read full entry »


Re: Need XPath 2.0 expression which returns a non-empt

Posted 11/25/2019 8:05:56 PM

May need further explanation ... like why is not just always only the last() one? Kevin -----Original Message----- From: Costello, Roger L. costello@xxxxxxxxx [mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx] Sent: Monday, November 25, 2019 11:39 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Ne . . . Read full entry »


Need XPath 2.0 expression which returns a non-empty p

Posted 11/25/2019 7:38:44 PM

Hi Folks, I want to know if an XHTML document contains a non-empty paragraph (p) element that is preceded by a long, uninterrupted series of paragraph elements, each containing just a non-blocking space character (decimal 160). Let's assume that "long" means 20. For example, here is an e . . . Read full entry »


Re: Best practice for typing?

Posted 11/25/2019 6:53:18 PM

On Mon, 2019-11-25 at 06:06 +0000, Mukul Gandhi gandhi.mukul@xxxxxxxxx wrote: > On Sun, Nov 24, 2019 at 4:10 PM Imsieke, Gerrit, le-tex > gerrit.imsieke@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> > wrote: > > > This is because of implicit document node creation [1] . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/25/2019 5:45:37 PM

On Mon, 25 Nov 2019 at 16:23, Dimitre Novatchev dnovatchev@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Let's establish (off-list) communication on XSLT/XPath etc. teaching-related issues. > > Thanks, > Dimitre (Now I have a licence for xslt 3,) I'd like to be in . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/25/2019 5:21:26 PM

On Mon, 2019-11-25 at 16:24 +0000, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote: > Thank you all guys who watched the courses during this free > Pluralsight weekend. People who registered - looks like you can still watch for a few more hours. > > Thanks for your feedback! > > . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/25/2019 5:07:04 PM

Watching part of the course was very helpful and has encouraged me to explore XSLT/XPath 3 in my own work. I haven't been able to find any books on XSLT 3.0 yet. I would appreciate any recommendations. Thanks. Rick From: Dimitre Novatchev dnovatchev@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxx . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/25/2019 4:23:11 PM

Thank you all guys who watched the courses during this free Pluralsight weekend. Thanks for your feedback! Thanks Liam, and I am sure your own XSLT 3.0 course is remarkable. Let's establish (off-list) communication on XSLT/XPath etc. teaching-related issues. Thanks, Dimitre On Mon, Nov 25, 201 . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/25/2019 8:05:59 AM

Thanks a lot, Dimitre. Your course XSLT 3.0 what's new - Part 1 is really great. I'm looking forward to Part 2 ! Best, Christophe Le 24/11/2019 C 23:31, Dimitre Novatchev dnovatchev@xxxxxxxxx a C)critB : > Hi Christophe, > > > Dimitre, are the course resources - xml files, txt files . . . Read full entry »


Re: Best practice for typing?

Posted 11/25/2019 6:05:52 AM

On Sun, Nov 24, 2019 at 4:10 PM Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Example: > > <xsl:variable name="var1"> > <doc> > <p/> > </doc> > </xsl:variable> > . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/24/2019 11:41:43 PM

On Sat, 2019-11-23 at 11:34 +0000, Alan Painter alan.painter@xxxxxxxxx wrote: > > on XPATH 3.0 and XSLT 3.0. > > https://www.pluralsight.com/offer/2019/november-free-weekend > > https://www.pluralsight.com/courses/xslt-3-0-whats-new-part1 I've watched some of Dmitre's XSLT 3 c . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/24/2019 10:30:57 PM

Hi Christophe, > Dimitre, are the course resources - xml files, txt files, xsl files - available somewhere ? The reader should be able to download these, including a .pdf file with all slides, by clicking on "Exercise Files" on the menu: If you don't see the horizontal menu that co . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/24/2019 9:13:25 PM

Dimitre, are the course resources - xml files, txt files, xsl files - available somewhere ? I've carefully watched introductions, but I wasn't able to found them. Best, Christophe Le 23/11/2019 C 21:58, Dimitre Novatchev dnovatchev@xxxxxxxxx a C)critB : > Tim, > > > Will we ever se . . . Read full entry »


Re: Splitting a paragraph into sentences and keep mark

Posted 11/24/2019 7:49:51 PM

How to handle cases when a punctuation character is used in a second role, such as for ending abbreviations -- as in: "We all admire Dr. Kay's XSLT books" Seems that without dictionaries and even parsing we will not be able to correctly determine if the period character above marks the . . . Read full entry »


Re: Splitting a paragraph into sentences and keep mark

Posted 11/24/2019 7:38:28 PM

I think there are two basic approaches to this kind of problem. One is to convert the punctuation into tags, and then manipulate the resulting tree structure; the other is to turn the embedded tags into punctuation (like "[emphasis]two[/emphasis]") and then manipulate the content as a cha . . . Read full entry »


Re: Best practice for typing?

Posted 11/24/2019 7:05:41 PM

Thanks for that review, Gerrit. > I've seen situations where XSLT developers didn't seem to know how > to select every p from each of the two variable flavors. I'm one of those who don't really know, but at least I know that I don't know. First thing I do almost every time I've created a $ . . . Read full entry »


Re: Splitting a paragraph into sentences and keep mark

Posted 11/24/2019 5:50:43 PM

Hi David, Yes, there shouldn't be any cross-paragraph elements. Rick -----Original Message----- From: David Carlisle d.p.carlisle@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Sunday, November 24, 2019 9:33 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Splitting a paragr . . . Read full entry »


Re: Splitting a paragraph into sentences and keep mark

Posted 11/24/2019 5:15:17 PM

Therebs a package for splitting at arbitrarily deeply nested nodes. It is part of a paper that I presented at XML Prague this year: https://archive.xmlprague.cz/2019/files/xmlprague-2019-proceedings.pdf#page=347 The package itself is at https://subversion.le-tex.de/common/presentations/2019-02 . . . Read full entry »


Re: Splitting a paragraph into sentences and keep mark

Posted 11/24/2019 2:32:18 PM

can we assume the easy case (as in your example) where all the sentences end at the top level? a more challenging example is <root> <p>This has one <span class="zzz">sentence? Actually, it has <emphasis>two</emphasis>. No,</span> it has three.< . . . Read full entry »


Re: Splitting a paragraph into sentences and keep mark

Posted 11/24/2019 2:03:50 PM

Am 24.11.2019 um 14:34 schrieb Rick Quatro rick@xxxxxxxxxxxxxx: > > Hi All, > > I have a situation where I want to split a short paragraph into > sentences and use them in different parts of my output. I am using > <xsl:analyze-string> because I want to account for a sentenc . . . Read full entry »


Splitting a paragraph into sentences and keep markup

Posted 11/24/2019 1:34:26 PM

Hi All, I have a situation where I want to split a short paragraph into sentences and use them in different parts of my output. I am using <xsl:analyze-string> because I want to account for a sentence ending with a . or ?. This will work except if there are any children of the paragaph, l . . . Read full entry »


Re: Best practice for typing?

Posted 11/24/2019 10:40:46 AM

While it has been mentioned that it is generally advisable to add an as attribute to variable and parameter declarations, it might be useful to make novices aware of the fact that adding or omitting type information can change the nature of the beast that they are declaring. Example: <xsl:v . . . Read full entry »


Re: Best practice for typing?

Posted 11/24/2019 8:18:53 AM

On Sat, 2019-11-23 at 01:44 +0000, David Birnbaum djbpitt@xxxxxxxxx wrote: > > Is there a consensus about best practice with respect to possibly > redundant > typing? For example, we can specify a type using @as on corresponding > <xsl:param> and <xsl:with-param> element . . . Read full entry »


Re: Best practice for typing?

Posted 11/24/2019 2:15:08 AM

Dear Dimitre, Pieter, and Michael, Thank you all for the informative and helpful responses! Best, David On Sat, Nov 23, 2019 at 2:18 AM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Declaring the type on xsl:param is always good practice. > > . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/24/2019 1:32:49 AM

On Sat, 2019-11-23 at 20:11 +0000, Tim Thompson timathom@xxxxxxxxx wrote: > Dimitre, > > Will we ever see "What's New in XSLT 3.0: Part 2"? I would be willing > to subscribe to Pluralsight for this :) For sure it's a very different approach than mine in teaching bXSLT Two t . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/23/2019 11:05:16 PM

I'll also put in a vote for "What's New in XSLT 3.0: Part 2". Almost finished with Part 1 and it's really interesting and informative, well exposed and motivated. I'm hoping that we won't have to wait for this as long as Knuth's later books. Thanks for the great training program. -al . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/23/2019 8:52:05 PM

Tim, > Will we ever see "What's New in XSLT 3.0: Part 2"? I would be willing to subscribe to Pluralsight for this :) Maybe after I write a course on XPath 3.1 ? :) Cheers, Dimitre On Sat, Nov 23, 2019 at 12:11 PM Tim Thompson timathom@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxx . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/23/2019 8:11:02 PM

Dimitre, Will we ever see "What's New in XSLT 3.0: Part 2"? I would be willing to subscribe to Pluralsight for this :) -- Tim A. Thompson Discovery Metadata Librarian Yale University Library On Sat, Nov 23, 2019 at 2:52 PM Dimitre Novatchev dnovatchev@xxxxxxxxx < xsl-list-service@xx . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/23/2019 7:51:56 PM

On Sat, Nov 23, 2019 at 11:37 AM Dan Sullivan dsullivan@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > My XML 1.0 course is another XML course available on Pluralsight. > Absolutely!!! I have enjoyed greatly all Dan's courses that I watched -- among these numerou . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/23/2019 7:37:34 PM

My XML 1.0 course is another XML course available on Pluralsight. https://www.pluralsight.com/courses/xml-fund Dan On November 23, 2019 at 6:33:59 AM, Alan Painter alan.painter@xxxxxxxxx ( xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx) wrote: Hello, fellow XSLT enthusiasts, Just a note to mention th . . . Read full entry »


Re: Can Watch XSLT Training during PluralSight Free W

Posted 11/23/2019 6:26:13 PM

Thanks Alan for this reminder: On Sat, Nov 23, 2019 at 3:33 AM Alan Painter alan.painter@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hello, fellow XSLT enthusiasts, > > Just a note to mention that this current weekend (23-24 November 2019) is > a "free wee . . . Read full entry »


Can Watch XSLT Training during PluralSight Free Weeken

Posted 11/23/2019 11:33:56 AM

Hello, fellow XSLT enthusiasts, Just a note to mention that this current weekend (23-24 November 2019) is a "free weekend" for binge-watching Plural Sight courses, including courses on XPATH 3.0 and XSLT 3.0. https://www.pluralsight.com/offer/2019/november-free-weekend https://www.plur . . . Read full entry »


Re: Best practice for typing?

Posted 11/23/2019 10:18:18 AM

Declaring the type on xsl:param is always good practice. Declaring the type on xsl:variable is also good practice, though I don't tend to bother if it's obvious, e.g. <xsl:variable name="x" select="12"/>. Declaring the type on xsl:with-param can be useful documentation f . . . Read full entry »


Re: Best practice for typing?

Posted 11/23/2019 2:26:07 AM

On Fri, Nov 22, 2019 at 5:43 PM David Birnbaum djbpitt@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: . . . > Is there consensus among XSLT developers about whether it might be better to use @as everywhere it is allowed, > or, alternatively, better to avoid using it re . . . Read full entry »


Best practice for typing?

Posted 11/23/2019 1:43:50 AM

Dear xsl-list, Is there a consensus about best practice with respect to possibly redundant typing? For example, we can specify a type using @as on corresponding <xsl:param> and <xsl:with-param> elements, but if the type is specified on <xsl:param>, it seems as if that might make . . . Read full entry »


Re: command line option like -xsltversion:(2.0|3.0) wi

Posted 11/18/2019 4:17:50 AM

Hi Mike, Thanks very much for the clarification. On Sun, Nov 17, 2019 at 7:45 PM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Yes, we've managed to keep the licenses forwards and backwards compatible > over releases (with one exception, namely . . . Read full entry »


Re: command line option like -xsltversion:(2.0|3.0) wi

Posted 11/17/2019 2:15:24 PM

Yes, we've managed to keep the licenses forwards and backwards compatible over releases (with one exception, namely if they contain non-ASCII characters, and in that case we're happy to issue a replacement license). Michael Kay Saxonica > On 17 Nov 2019, at 12:27, Mukul Gandhi gandhi.mukul@xxx . . . Read full entry »


Re: command line option like -xsltversion:(2.0|3.0) wi

Posted 11/17/2019 12:27:39 PM

Hi Mike, Thanks for the answers. I've a little doubt as mentioned below, On Sun, Nov 17, 2019 at 5:10 PM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > If you want to use an old version of XSLT, use an old version of Saxon... > If someone b . . . Read full entry »


Re: command line option like -xsltversion:(2.0|3.0) wi

Posted 11/17/2019 11:40:03 AM

Saxon 9.9 always runs as an XSLT 3.0 processor. The only thing that would be different if it ran as a 2.0 processor is that certain things would cause errors, for example use of xsl:iterate or xsl:map. While it's easy enough to detect most of those things and throw an error if they are used, some . . . Read full entry »


command line option like -xsltversion:(2.0|3.0) with

Posted 11/17/2019 7:16:25 AM

Hi all, I've a question like following, To opt for running one of XSLT 2.0 or 3.0 with Saxon-EE command line, Saxon 9.7 provided a command line option '-xsltversion:(2.0|3.0)'. The following is quoted from Saxon's 9.7 documentation, <quote> -xsltversion:(2.0|3.0) Determines whether an X . . . Read full entry »


Re: [ANN] 20 years of XSLT

Posted 11/16/2019 8:44:33 PM

Hi, Le 16/11/2019 C 21:13, David Carlisle d.p.carlisle@xxxxxxxxx a C)critB : sorry if I lead you astray:-) At least I have fun ;o) Regards -- Jean-FranC'ois MAUREL PIMECA http://www.pimeca.com . . . Read full entry »


Re: [ANN] 20 years of XSLT

Posted 11/16/2019 8:13:07 PM

sorry if I lead you astray:-) David On Sat, 16 Nov 2019 at 19:44, jfrm.maurel@xxxxxxxxx jfrm.maurel@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > Hi, > > Le 15/11/2019 C 09:55, Michael Kay mike@xxxxxxxxxxxx a C)crit : > > The XSLT 1.0 and XPath 1.0 r . . . Read full entry »


Re: [ANN] 20 years of XSLT

Posted 11/16/2019 7:44:49 PM

Hi, Le 15/11/2019 C 09:55, Michael Kay mike@xxxxxxxxxxxx a C)critB : The XSLT 1.0 and XPath 1.0 recommendations were published on 16 November 1999 - twenty years ago on Saturday. To celebrate, and to remind people how far the technology has come since then, we've got a special offer on the Sax . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/16/2019 6:08:41 PM

On Sat, 2019-11-16 at 17:26 +0000, Peter Flynn peter@xxxxxxxxxxx wrote: > On 16/11/2019 13:17, John Lumley john@xxxxxxxxxxxx wrote: > [...] > > My trains run on SVG > > https://markupuk.org/2019/webhelp/index.html#ar08.html ;-) > That was a wonderful presentation. It was! And . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/16/2019 5:31:27 PM

Therebs always reasons for software to have faults. An early example from the late b60bs is something I did. Herebs the story. I was taking a course on machine architecture and programming, and we had an exercise writing an IBM 360 assembler program. I forget what the program was supposed t . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/16/2019 5:25:23 PM

On 16/11/2019 13:17, John Lumley john@xxxxxxxxxxxx wrote: [...] My trains run on SVG https://markupuk.org/2019/webhelp/index.html#ar08.htmlB ;-) That was a wonderful presentation. P . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/16/2019 1:17:21 PM

> On 16 Nov 2019, at 12:08, Peter Flynn peter@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > >> On 16/11/2019 02:30, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx wrote: >> >> Trains use XML but of course need fixed buffer heights. > > I thought they used . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/16/2019 12:53:40 PM

Sometimes they still use Perl: https://twitter.com/gimsieke/status/638620131279507456 On 16.11.2019 13:08, Peter Flynn peter@xxxxxxxxxxx wrote: On 16/11/2019 02:30, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx wrote: Trains use XML but of course need fixed buffer heights. I thought they used Rails :-) . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/16/2019 12:08:46 PM

On 16/11/2019 02:30, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx wrote: Trains use XML but of course need fixed buffer heights. I thought they used Rails :-) P . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/16/2019 7:22:32 AM

> The right question, though, is, surely, does the software do what we > need, sufficiently reliably for our purpose. > > And clearly the answer is yes for a great many applications of XML > technologies. > > Liam > Having said that, I suspect the weak point of most XSLT-ba . . . Read full entry »


Re: [ANN] 20 years of XSLT

Posted 11/16/2019 3:29:26 AM

Thank you, Michael, for this reminder and for your extensive and ongoing contributions to each of these and to the wider XML community. Cheers! Damian -- MOSO Xmplify XML Editor - Xmplary XML for Mac OS X w: http://xmplifyapp.com t: @xmplify On 15 Nov 2019, at 6:55 pm, Michael Kay mike@xxxx . . . Read full entry »


Re: [ANN] 20 years of XSLT

Posted 11/16/2019 2:30:53 AM

On Fri, 2019-11-15 at 08:56 +0000, Michael Kay mike@xxxxxxxxxxxx wrote: > The XSLT 1.0 and XPath 1.0 recommendations were published on 16 > November 1999 - twenty years ago on Saturday. And started an industry. XSLT more than anything else, i think, established XML as a format and toolset . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/16/2019 2:29:48 AM

On Fri, 2019-11-15 at 12:10 +0000, Costello, Roger L. costello@xxxxxxxxx wrote: > Hi Folks, > > Are you using XSLT/XPath in a life-critical application such as > controlling a nuclear power plant or controlling an aircraft flight > system? I'm not... However, i can say that XML ( . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 10:30:16 PM

Saxon+RenderX is used for the second largest pharmacy prescription writer. These are documents that are printed with complete instructions for the patient and how to take their prescribed medication and can be fairly complex in rules, especially for how text can be split in table cells to not chang . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 10:20:49 PM

Publishing authoritative sources of European legislation that contain the allowed residues of toxic pesticides on fruit and vegetables, only to find out that the (jaxb) system in place occasionally dropped the greek mu. The replacing XSLT system now correctly publishes the greek mu everywhere. Not . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 10:07:39 PM

And since webve been reminiscing about 80-column card decks, this note makes be recall: bThis page is intentionally left blank.b b Steve M. > On Nov 15, 2019, at 5:03 PM, Eliot Kimber ekimber@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Or the publishing . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 10:03:21 PM

Or the publishing of aircraft flight manuals--the 737 Max debacle shows the importance of documentation in preventing accidents--in the Boeing case the needed documentation was intentionally omitted but it could just have easily been omitted as the result of a publishing error that wasn't caught du . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 9:53:20 PM

I think the odds of getting an incorrect answer from a mature XPATH/XSLT processor is very tiny b especially compared to the odds of programming it incorrectly and getting the requested XPATHs wrong. However, having once worked on fault tolerant systems, I can say that the only way to engineer fau . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 9:22:16 PM

> Are you using XSLT/XPath in a life-critical application such as controlling a nuclear power plant or controlling an aircraft flight system? > Another observation on this: those are the classic examples of safety-critical systems that everyone uses. But boring administrative systems, like o . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 8:17:36 PM

A friend of mine sent me a similar deck in college. Good times. Cheers, E. -- Eliot Kimber http://contrext.com o;?On 11/15/19, 1:17 PM, "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: At 2019-11-15 17:49 +0000, John Lumley john@xxxxx . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 7:17:11 PM

At 2019-11-15 17:49 +0000, John Lumley john@xxxxxxxxxxxx wrote: How many of the XSL list have ever handled a deck of (computer/Hollerith) cards? Some of us are showing our age.... July 1971 my father gave me a deck in a 3/4-filled box and told me to print the deck the next time I had a chance. T . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 5:59:52 PM

I think this bit here is key: "... always return the correct results when given a valid XSLT/XPath program and a well-formed XML" In particular, "well-formed XML" is not a meaningful qualification because it says nothing about the correctness of the data it contains with respe . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 5:58:08 PM

On Fri, 2019-11-15 at 17:49 +0000, John Lumley john@xxxxxxxxxxxx wrote: > How many of the XSL list have ever handled a deck of > (computer/Hollerith) cards? Some of us are showing our age.... Quite a few of us proably. Don't forget to make a diagonal line on the side so you can see if one is . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 5:55:39 PM

This question can be asked about any programming language and the correct answer would be that this depends on the discipline of testing the software. I am not sure if programs of reasonable size (as used for significant everyday applications) can be proven correct -- e.g. using a system as Alloy. . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 5:49:03 PM

> On 15 Nov 2019, at 17:06, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > (I remember a three-day trial of a mainframe operating system prior to release. The success criterion was that it achieved a mean time between failures above 24 hours. In th . . . Read full entry »


Re: Is there an XSLT/XPath processor good enough to us

Posted 11/15/2019 5:06:41 PM

Hardware fails randomly: it's meaningful to talk about the probability of failure. Sofware fails predictably. With very rare exceptions, a program either works correctly every time, or it never works at all. Probability of failure is therefore a meaningless concept. (The main exceptions are (a) mu . . . Read full entry »


Is there an XSLT/XPath processor good enough to use in

Posted 11/15/2019 12:09:35 PM

Hi Folks, Are you using XSLT/XPath in a life-critical application such as controlling a nuclear power plant or controlling an aircraft flight system? Can an XSLT/XPath processor be relied on to always return the correct results when given a valid XSLT/XPath program and a well-formed XML document? . . . Read full entry »


Re: [ANN] 20 years of XSLT

Posted 11/15/2019 9:18:11 AM

Black Friday comes early for XSLT developers! Hurray and Thanks! On Fri, Nov 15, 2019, 10:11 Peter Flynn peter@xxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Thank you for reminding us, and thank you for your service to the > community over all these years. > > . . . Read full entry »


Re: [ANN] 20 years of XSLT

Posted 11/15/2019 9:17:29 AM

Congratulations :-) On Fri, 15 Nov 2019, 08:55 Michael Kay mike@xxxxxxxxxxxx, < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > The XSLT 1.0 and XPath 1.0 recommendations were published on 16 November > 1999 - twenty years ago on Saturday. > > To celebrate, and to remind peopl . . . Read full entry »


Re: [ANN] 20 years of XSLT

Posted 11/15/2019 9:11:49 AM

Thank you for reminding us, and thank you for your service to the community over all these years. Peter On 15 November 2019 08:56:09 "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > The XSLT 1.0 and XPath 1.0 recommendations were published on . . . Read full entry »


[ANN] 20 years of XSLT

Posted 11/15/2019 8:55:38 AM

The XSLT 1.0 and XPath 1.0 recommendations were published on 16 November 1999 - twenty years ago on Saturday. To celebrate, and to remind people how far the technology has come since then, we've got a special offer on the Saxonica online shop: for this weekend only, you can buy a full Saxon-EE lic . . . Read full entry »


[ANN] course, XSLT: Two to Three

Posted 11/14/2019 6:52:01 AM

For anyone still interested, there are two places still available. The course is now at the Cambria Hotel in Rockville, MD, starting on Monday. If you're registered, you should have received mail from me about the new venue; if not, check your spam folder :) If you're using XSLT 2, you need to k . . . Read full entry »


[ANN] XML Prague 2020 - Call for Proposals

Posted 11/11/2019 11:26:55 AM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, we are glad to announce that call for proposals for XML Prague 2020 conference is open now. The XML Prague conference will include two full days of single track sessions as well as a multitrack unconference day. The conference is held on the . . . Read full entry »


Re: Comparing node-sets or groups. Deep-equal with an

Posted 11/7/2019 6:49:42 PM

Hi, Another approach is to bind your signature (aka fingerprint) to your elements using a key declaration, then use an old-fashioned key-based test to see to it you get only one of each. This can even work under XSLT 1.0, at least if your signature logic is not too bad. Cheers, Wendell -----Orig . . . Read full entry »


Re: Comparing node-sets or groups. Deep-equal with an

Posted 11/6/2019 6:03:31 PM

On Wed, 2019-11-06 at 14:50 +0000, Flanders, Charles E (US) charles.flanders@xxxxxxxxxxxxxx wrote: > I have a long list of <mac-group-2lvl> structures as below. Most are > unique. However in some cases, they are identical except for the > "ref" attribute value on the <t . . . Read full entry »


Re: Comparing node-sets or groups. Deep-equal with an

Posted 11/6/2019 3:48:27 PM

Am 06.11.2019 um 16:39 schrieb Flanders, Charles E (US) charles.flanders@xxxxxxxxxxxxxx: Using Saxon HE 9.6.0.7 in Oxygen 18.1. Have access to EE and PE that are part of Oxygen. So then you should be able to use Saxon's serialize function instead of the XPath 3 one: B <xsl:output name="el . . . Read full entry »


Re: Comparing node-sets or groups. Deep-equal with an

Posted 11/6/2019 3:40:03 PM

Am 06.11.2019 um 16:23 schrieb Martin Honnen martin.honnen@xxxxxx: Am 06.11.2019 um 15:50 schrieb Flanders, Charles E (US) charles.flanders@xxxxxxxxxxxxxx: I need help with an issue that I haven't come across before and I'm not even sure that I have the subject correct. I am working with XSLT 2.0. . . . Read full entry »


Re: Comparing node-sets or groups. Deep-equal with an

Posted 11/6/2019 3:39:37 PM

Using Saxon HE 9.6.0.7 in Oxygen 18.1. Have access to EE and PE that are part of Oxygen. Charles FlandersB B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B Sr Principal Tech Manual Developer | Vasont Architect | Certified XML Deve . . . Read full entry »


Re: Comparing node-sets or groups. Deep-equal with an

Posted 11/6/2019 3:23:28 PM

Am 06.11.2019 um 15:50 schrieb Flanders, Charles E (US) charles.flanders@xxxxxxxxxxxxxx: I need help with an issue that I haven't come across before and I'm not even sure that I have the subject correct. I am working with XSLT 2.0. Please no 3.0 solutions. Which XSLT 2 processor do you use, any acc . . . Read full entry »


Comparing node-sets or groups. Deep-equal with an exc

Posted 11/6/2019 2:49:50 PM

I need help with an issue that I haven't come across before and I'm not even sure that I have the subject correct. I am working with XSLT 2.0. Please no 3.0 solutions. I have a long list of <mac-group-2lvl> structures as below. Most are unique. However in some cases, they are identical exce . . . Read full entry »


Re: White space strategies for mixed content

Posted 11/5/2019 11:00:33 PM

Hi, To emphasize what Gerrit has noted: it's not necessarily a trivial exercise to do it correctly even when we have prior knowledge regarding whitespace-related semantics of elements (element-only content, mixed-content ... .'preformat'?). When we do, however, we have a chance. I usually think i . . . Read full entry »


Re: White space strategies for mixed content

Posted 11/5/2019 4:08:00 PM

A specific problem in this category of "intra-para WS normalization", in particular when normalizing nested emphasis elements, are embedded notes. Suppose your XSLT already pulls out whitespace at the beginning or end of potentially nested emphasis elements like this: <p>text< . . . Read full entry »


Re: White space strategies for mixed content

Posted 11/5/2019 4:00:47 PM

On Tue, 5 Nov 2019 at 15:46, Peter Flynn peter@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On 05/11/2019 15:36, David Carlisle d.p.carlisle@xxxxxxxxx wrote: > [...] > > Why do you drop the white space nodes if handling mixed content? > > Dropping them . . . Read full entry »


Re: White space strategies for mixed content

Posted 11/5/2019 3:46:53 PM

On 05/11/2019 15:36, David Carlisle d.p.carlisle@xxxxxxxxx wrote: [...] Why do you drop the white space nodes if handling mixed content? Dropping them (at the xml parse or xsl levels) is optional. I'm dealing with someone else's (huge, ancient) XSLT here and I'm trying to make as few changes as po . . . Read full entry »


Re: White space strategies for mixed content

Posted 11/5/2019 3:35:48 PM

Peter wrote > Michael has explained the dropping of insignificant white-space. I don't > need that because I'm typically outputting to LaTeX which does that by > itself, but I do need the reverse: to reinsert the deleted > white-space-only nodes which fall between subelements Why do . . . Read full entry »


Re: White space strategies for mixed content

Posted 11/5/2019 3:29:07 PM

On 05/11/2019 01:00, Rick Quatro rick@xxxxxxxxxxxxxx wrote: Hi All, I have inherited some "interesting" xml that has mixed content and I am trying to figure out some strategies for getting "cleaner" output in my XSLT workflow without removing any needed whitespace. This is a . . . Read full entry »


Re: White space strategies for mixed content

Posted 11/5/2019 11:57:37 AM

xsl:strip-space only affects the handling of whitespace-only text nodes. It won't affect handling of whitespace within a text node that also contains printable characters. Equally, indent=yes won't achieve what's required (assuming we're talking about using the XML output method). If you want to d . . . Read full entry »


White space strategies for mixed content

Posted 11/5/2019 12:59:52 AM

Hi All, I have inherited some "interesting" xml that has mixed content and I am trying to figure out some strategies for getting "cleaner" output in my XSLT workflow without removing any needed whitespace. In the simple example below, I want to normalize the white space and . . . Read full entry »


XSL-List Guidelines

Posted 11/1/2019 1:48:14 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: Feedback on grouping solution

Posted 10/28/2019 12:52:19 PM

Hi Dimitre, Thanks for the follow up. Yes, the children of adjacent step elements have to be treated as one group and that lead me to discover another possibility: the first para in each step in the group has to start on the "left" (an odd-numbered position in the output group). I modi . . . Read full entry »


Re: Feedback on grouping solution

Posted 10/27/2019 7:14:54 PM

I have finally understood the problem ... The previous two solutions that I posted can be proven incorrect, although it is quite challenging to construct the necessary XML document for this purpose. Having a good set of test cases is essential for producing correct solutions -- in this case the p . . . Read full entry »


Re: Feedback on grouping solution

Posted 10/27/2019 1:24:16 AM

Actually, we don't need 2-pass processing! Below is a really short and simple *XSLT 1* transformation -- it is just 26 lines -- *40% shorter* than the XSLT 3.0 transformation provided by Martin. Enjoy: <xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transfo . . . Read full entry »


Re: Feedback on grouping solution

Posted 10/26/2019 11:22:14 PM

> Now waiting for Dimitre posting a less "fancy" > but equally compact XSLT 1 solution :) The following is a 48-lines XSLT 2.0 solution (2 passes -- equivalent XSLT 1.0 solution is easy to produce but will need the vendor:node-set() extension function). Martin's XSLT 3.0 solution . . . Read full entry »


Re: Feedback on grouping solution

Posted 10/26/2019 7:06:18 PM

On 26.10.2019 19:03, Rick Quatro rick@xxxxxxxxxxxxxx wrote: I need to process the <step> child elements so that the <figure> elements are always on the "right" (even-numbered position) in the output. Immediate children of the <procedure> do not factor into the odd/even . . . Read full entry »


Re: Feedback on grouping solution

Posted 10/26/2019 5:57:26 PM

Fantastic Martin! Thank you very much. -----Original Message----- From: Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Saturday, October 26, 2019 1:49 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Feedback on grouping solution On 26.10.2019 19:45, . . . Read full entry »


Re: Feedback on grouping solution

Posted 10/26/2019 5:48:43 PM

On 26.10.2019 19:45, Rick Quatro rick@xxxxxxxxxxxxxx wrote: That's an oversight on my part. Any elements outside of step elements have to be processed individually. Can I change the for-each-group to just group adjacent <step> elements? Yes, it looks there you just want <xsl:for-each-gro . . . Read full entry »


Re: Feedback on grouping solution

Posted 10/26/2019 5:45:11 PM

Hi Martin, That's an oversight on my part. Any elements outside of step elements have to be processed individually. Can I change the for-each-group to just group adjacent <step> elements? Thank you very much. Rick -----Original Message----- From: Martin Honnen martin.honnen@xxxxxx <xsl- . . . Read full entry »


Re: Feedback on grouping solution

Posted 10/26/2019 5:38:08 PM

On 26.10.2019 19:03, Rick Quatro rick@xxxxxxxxxxxxxx wrote: I need to process the <step> child elements so that the <figure> elements are always on the "right" (even-numbered position) in the output. Immediate children of the <procedure> do not factor into the odd/even . . . Read full entry »


Feedback on grouping solution

Posted 10/26/2019 5:02:59 PM

Hi All, I have the following input: <?xml version="1.0" encoding="UTF-8"?> <procedure> <title/> <step> <para/> <important/> <figure/> <figure/> </step> <note . . . Read full entry »


Re: LF and serialize()?

Posted 10/25/2019 4:17:07 PM

On 25 October 2019 16:12:23 Michael Kay <mike@xxxxxxxxxxxx> wrote: > Heaven only knows who thought that was a good idea This would be a good title for an article all about all the markup stuff that should have been done differently p P . . . Read full entry »


Re: LF and serialize()?

Posted 10/25/2019 3:11:44 PM

The newline characters are destroyed by the XML parser long before the XSLT processor gets to see the data, under the rules for Attribute Value Normalization. Heaven only knows who thought that was a good idea, but you can't change it. (It's a wretched nuisance when you use multiline XPath expressi . . . Read full entry »


Re: LF and serialize()?

Posted 10/25/2019 1:22:16 PM

Am 25.10.2019 um 15:08 schrieb Martin Honnen martin.honnen@xxxxxx: Am 25.10.2019 um 15:04 schrieb Birnbaum, David J djbpitt@xxxxxxxx: When I run serialize() (in Saxon-HE 9.9.1.4J XSLT) over an XML snippet, it does what I need, except that it replaces LF inside attribute values with SP. This seems t . . . Read full entry »


Re: LF and serialize()?

Posted 10/25/2019 1:08:12 PM

Am 25.10.2019 um 15:04 schrieb Birnbaum, David J djbpitt@xxxxxxxx: When I run serialize() (in Saxon-HE 9.9.1.4J XSLT) over an XML snippet, it does what I need, except that it replaces LF inside attribute values with SP. This seems to be consistent with what I read at https://www.w3.org/TR/REC-xml/# . . . Read full entry »


LF and serialize()?

Posted 10/25/2019 1:03:44 PM

Dear XSL-List, When I run serialize() (in Saxon-HE 9.9.1.4J XSLT) over an XML snippet, it does what I need, except that it replaces LF inside attribute values with SP. This seems to be consistent with what I read at https://www.w3.org/TR/REC-xml/#AVNormalize, and the workaround described there (us . . . Read full entry »


W3C specifications on GitHub

Posted 10/24/2019 5:46:27 PM

Some of you may be aware that the W3C specifications (source XML plus build scripts as well as published HTML) were moved a while ago from the W3C servers to GitHub: https://github.com/w3c/qtspecs. There is of course no active development taking place on the specs, but I do have a plan (somewhere . . . Read full entry »


Re: Is this a grouping task?

Posted 10/24/2019 10:34:44 AM

B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B Dimitre, Th . . . Read full entry »


Re: How to unescape slash character using xml-to-json

Posted 10/24/2019 8:12:22 AM

Hi Tim, Hi Michael, Thanks for your answers, links and explanations. I applied Martinbs solution as suggested: xml-to-json(.) => parse-json() => serialize(map {'method': 'json', 'use-character-maps' : map {'/' : '/'}}) Parsing the json to serialize it back with character-maps looks quite . . . Read full entry »


Re: How to unescape slash character using xml-to-json

Posted 10/24/2019 5:14:16 AM

Note: the reason that solidus is escaped by default is because the JSON can then be embedded in an HTML5 script tag. See explanation here: https://stackoverflow.com/questions/1580647/json-why-are-forward-slashes-esca ped There was considerable debate about this decision, as you can imagine: it's . . . Read full entry »


Re: Is this a grouping task?

Posted 10/24/2019 2:05:13 AM

> Rick, > This will solve your problem using xsl version 2 using 2 for-each-groups. Almost close, with the exception of the problem in this snippet: > <xsl:copy> > <xsl:attribute name="rev" select=&qu . . . Read full entry »


Re: Is this a grouping task?

Posted 10/24/2019 1:47:29 AM

Rick, This will solve your problem using xsl version 2 using 2 for-each-groups. B B <?xml version="1.0" encoding="UTF-8"?> <!-- Terry Badger 2019-10-23 --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.o . . . Read full entry »


Re: How to unescape slash character using xml-to-json

Posted 10/24/2019 12:25:35 AM

Hi, Matthieu, See Martin Honnen's answer here: https://stackoverflow.com/questions/44610431/json-serialization-with-xpath-3- 1-fnserialize Updated example: https://xsltfiddle.liberty-development.net/bwdwrV/2 -- Tim A. Thompson Discovery Metadata Librarian Yale University Library On Wed, Oct 2 . . . Read full entry »


Re: Separator for xsl:number @format

Posted 10/24/2019 12:06:15 AM

Thank you Michael. I took your advice and used a series of <xsl:number> instructions so I don't have to use the zero-width space. From: Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, October 23, 2019 11:47 AM To: xsl-list <xsl-list@xxxxx . . . Read full entry »


How to unescape slash character using xml-to-json ?

Posted 10/23/2019 10:59:25 PM

Hi all, I need to generate this json output : {"test":"foo/bar"} I use XSLT3 function fn:xml-to-json to do this. My input is : <fn:map xmlns:fn="http://www.w3.org/2005/xpath-functions"> <fn:string key="test" escaped="false">foo/b . . . Read full entry »


Re: Separator for xsl:number @format

Posted 10/23/2019 3:46:53 PM

I don't think this can be achieved directly; you'll need to use some workaround. For example, generate the number as A#1 and then post-process to strip out the '#'. Alternatively, I sometimes find it works better not to use level=multiple, and instead use a series of calls to xsl:number for the ind . . . Read full entry »


Separator for xsl:number @format

Posted 10/23/2019 2:40:44 PM

Hi, I am using xsl:number to format some sections. Here is my instruction: <xsl:number level="multiple" count="part|subpart" format="A1"/> I want my subparts to number A1, A2, A3, etc. Instead, I get A.A, A.B, A.C. <xsl:number level="multi . . . Read full entry »


Re: Is this a grouping task?

Posted 10/23/2019 7:56:51 AM

Am 22.10.2019 um 21:10 schrieb Martin Honnen martin.honnen@xxxxxx: On 22.10.2019 20:41, Martin Honnen martin.honnen@xxxxxx wrote: On 22.10.2019 20:07, Rick Quatro rick@xxxxxxxxxxxxxx wrote: I am using XSLT 2 and think this may require a for-each-group solution. Any advice would be appreciated. Tha . . . Read full entry »


Re: Is this a grouping task?

Posted 10/22/2019 7:55:54 PM

Instead of trying to do fancy things -- even using XSLT 3.0 accumulators ! here is a short and simple XSLT 1.0 solution -- 36 lines with all formatting for readability: <xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-x . . . Read full entry »


Re: Is this a grouping task?

Posted 10/22/2019 7:09:59 PM

On 22.10.2019 20:41, Martin Honnen martin.honnen@xxxxxx wrote: On 22.10.2019 20:07, Rick Quatro rick@xxxxxxxxxxxxxx wrote: I am using XSLT 2 and think this may require a for-each-group solution. Any advice would be appreciated. Thank you very much. As an alternative, if you can move to XSLT 3, the . . . Read full entry »


Re: Is this a grouping task?

Posted 10/22/2019 6:41:44 PM

On 22.10.2019 20:07, Rick Quatro rick@xxxxxxxxxxxxxx wrote: I am using XSLT 2 and think this may require a for-each-group solution. Any advice would be appreciated. Thank you very much. As an alternative, if you can move to XSLT 3, then I think it is also easy with "xsl:iterate": <?xm . . . Read full entry »


Re: Is this a grouping task?

Posted 10/22/2019 6:17:27 PM

On 22.10.2019 20:07, Rick Quatro rick@xxxxxxxxxxxxxx wrote: I am using XSLT 2 and think this may require a for-each-group solution. Any advice would be appreciated. Thank you very much. Nest two xsl:for-each-group, the outer select="*" group-starting-with="revst", the inner sel . . . Read full entry »


Is this a grouping task?

Posted 10/22/2019 6:07:20 PM

Hi All, Here is my input document: <root> <topic id="idm140322603719792"> <chgdesc revnbr="42">Content</chgdesc> <title line-break="0">Content</title> <revst/> <para>Conten . . . Read full entry »


Re: Suggestion for handling an endless loop

Posted 10/18/2019 11:09:18 PM

You're in oXygen though, aren't you? I think oXygen chooses a different XSLT processor based on the version attribute you specify. With this kind of thing the devil is always in the detail. I've seen similar problems, for example, because a stylesheet did <xsl:if test="contains(//title, ' . . . Read full entry »


Re: Suggestion for handling an endless loop

Posted 10/18/2019 10:34:46 PM

Text change in stylesheet only, so I changed this: <xsl:stylesheet version="2.0"> to this: <xsl:stylesheet version="1.0"> That's the entire fix. I did not change XSLT processors or any other code. On 10/18/2019 2:54 PM, Michael Kay mike@xxxxxxxxxxxx wrote: > . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/18/2019 10:00:59 PM

On Fri, Oct 18, 2019 at 5:57 PM I wrote: > Of course, both can also be used together -- BaseX can serve up SaxonJS -- I should add, BaseX is not the only XQuery database application that can do this. (But that isn't exactly an XSLT question so maybe it's off topic. :-) Cheers, Wendell . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/18/2019 9:56:45 PM

Hi, I too have had some success embedding XSLT in XQuery inside BaseX. Here is a demo project, showing BaseX and XSLT inside Docker - https://github.com/wendellpiez/XMLLunchbox. It includes a demo application that uses XQuery and XSLT to draw an I Ching hexagram thrown at random (with yarrow stal . . . Read full entry »


Re: Suggestion for handling an endless loop

Posted 10/18/2019 9:54:01 PM

When you say you "change it to 1.0", do you mean that you change the version number in the xsl:stylesheet element, or that you change the XSLT processor you are using, or both? Michael Kay Saxonica > On 18 Oct 2019, at 22:06, Mark Giffin m1879@xxxxxxxxxxxxx <xsl-list-service@xxxxx . . . Read full entry »


Suggestion for handling an endless loop

Posted 10/18/2019 9:06:21 PM

I'm getting what appears to be an endless loop while running XSLT 2.0. It hangs when transforming a certain XML file, and I can watch the memory consumption rise to as much as 9 GB, and it apparently will never end. I have to force it to stop. When I change it back to XSLT 1.0, it runs fine, an . . . Read full entry »


Re: accumulators and continuous numbering

Posted 10/18/2019 8:41:58 PM

On Fri, Oct 18, 2019 at 08:21:28PM -0000, Martin Honnen martin.honnen@xxxxxx scripsit: > On 18.10.2019 21:08, Graydon graydon@xxxxxxxxx wrote: > > Is there a better way to get the single continuous sequence of numbers? > > If don't want to create a result tree then I think instead o . . . Read full entry »


Re: accumulators and continuous numbering

Posted 10/18/2019 8:39:43 PM

On Fri, Oct 18, 2019 at 08:16:36PM -0000, Michael Kay mike@xxxxxxxxxxxx scripsit: > Yes, that's how accumulators work. To quote the spec: Thank you! I had somehow formed the impression that if one had multiple huge documents, they could be stream-processed in the context of a single accumulato . . . Read full entry »


Re: accumulators and continuous numbering

Posted 10/18/2019 8:21:23 PM

On 18.10.2019 21:08, Graydon graydon@xxxxxxxxx wrote: So I'm converting a bunch of OOXML into DITA using XSLT 3 in oXygen with Saxon 9.8.0.12 PE. There's a requirement to use short (4 digit) unique identifiers for the resuling files and for these to be unique across the content set. There are man . . . Read full entry »


Re: accumulators and continuous numbering

Posted 10/18/2019 8:16:30 PM

Yes, that's how accumulators work. To quote the spec: Informally, an accumulator is evaluated by traversing a tree, as follows. Each node is visited twice, once before processing its descendants, and once after processing its descendants.... Before the traversal starts, a variable (called the ac . . . Read full entry »


accumulators and continuous numbering

Posted 10/18/2019 7:08:13 PM

So I'm converting a bunch of OOXML into DITA using XSLT 3 in oXygen with Saxon 9.8.0.12 PE. There's a requirement to use short (4 digit) unique identifiers for the resuling files and for these to be unique across the content set. There are many resulting DITA files per source OOXML document. &qu . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/18/2019 3:51:48 PM

BaseX had an XSLT module, so you can use both methods where appropriate. By default, it uses Java XSLT 1.0, but if you drop Saxon into /lib, it will use that and give you XSLT 2 and 3. Ibm using (WIP) RESTXQ and typeswitch to dispatch on document root node to XSLT transform for that document type . . . Read full entry »


[ANN] course, XSLT: Two to Three

Posted 10/18/2019 5:38:53 AM

Note: *** Course dates changed New dates: 18th, 19th, 20th November. It's now a three-day course (it was too much for two days to begin with, but i had wanted it to fit in with a three-day course Mulberry Technologies had planned to run). Location: Rockville, MD If you're using XSLT 2, you need . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/18/2019 5:09:16 AM

Am 18.10.2019 um 07:02 schrieb Mukul Gandhi gandhi.mukul@xxxxxxxxx: > On Thu, Oct 17, 2019 at 9:39 PM Martin Honnen martin.honnen@xxxxxx > <mailto:martin.honnen@xxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx > <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote: > . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/18/2019 5:02:08 AM

On Thu, Oct 17, 2019 at 9:39 PM Martin Honnen martin.honnen@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Well, Saxon 9 does both XSLT and XQuery. 9.8 and > later HE supports XSLT 3 (without streaming and higher-order-functions) > I think that, Saxon HE also doesn't su . . . Read full entry »


Re: XSLT 3: Possible to Get Unescaped Markup in Messag

Posted 10/17/2019 6:32:21 PM

Yes, I was just generating literal strings for the markup--it didn't occur to me to generate a new XML tree, but that would almost certainly do what I want (and be easier to boot). Cheers, E. -- Eliot Kimber http://contrext.com o;?On 10/17/19, 12:16 PM, "Michael Kay mike@xxxxxxxxxxxx" . . . Read full entry »


Re: XSLT 3: Possible to Get Unescaped Markup in Messag

Posted 10/17/2019 5:15:57 PM

According to the spec, a message produced by xsl:message is an XML document. Saxon passes this document to the callback MessageListener2.message(XdmNode content, QName errorCode, boolean terminate, SourceLocator locator) where content is the XML document, errorCode is the requested error code on x . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/17/2019 5:14:31 PM

Ah, that's right--it's called type-switching in XQuery, and it's something I experimented with a year or two ago to see if I could really do everything in XQuery that I do in XSLT. I love both, but I tend to use XQuery for pulling and visualizing data from complex documents, and if I need to repres . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/17/2019 5:02:58 PM

XQuery Update facility [ https://www.w3.org/TR/xquery-update-10/ <https://www.w3.org/TR/xquery-update-10/> ] is an extension. Saxon supports in only with licenses Saxon EE, not available in free Saxon HE. XQuery Update is included in BaseX implementation: http://docs.basex.org/wiki/XQuery . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/17/2019 4:51:17 PM

Yes, you can either write a type-switch transformation in XQuery to create a new document by filtering the content of your original document, or you could use XQuery Update if your processor supports it. For typeswitches, this might be useful - https://en.wikibooks.org/wiki/XQuery/Typeswitch_Trans . . . Read full entry »


Re: XSLT 3: Possible to Get Unescaped Markup in Messag

Posted 10/17/2019 4:36:58 PM

To continue, if the XML is already serialized as a good-looking string, then it just needs to be re-parsed (use the standard parse-xml() orparse-xml-fragment() function) and the result of this parse is what should be output with <xsl:message> Cheers, Dimitre On Thu, Oct 17, 2019 at 9:32 AM . . . Read full entry »


Re: XSLT 3: Possible to Get Unescaped Markup in Messag

Posted 10/17/2019 4:32:12 PM

> wrote some templates to generate the formatted markup I want but the <xsl:message> o;?result has all the angle brackets escaped I don't see what is the problem... Even with XSLT 2.0, given this XML document: <t/> And this transformation: <xsl:stylesheet version="1.0& . . . Read full entry »


Re: XSLT 3: Possible to Get Unescaped Markup in Messag

Posted 10/17/2019 4:25:39 PM

On 17.10.2019 18:21, Eliot Kimber ekimber@xxxxxxxxxxxx wrote: This may be a Saxon-specific question but I thought I would start here. Using Saxon 9.9 and XSLT 3, I want to emit nicely-formatted XML markup in my messages where the base markup has lots of noise I don't want to see (in this case Offi . . . Read full entry »


XSLT 3: Possible to Get Unescaped Markup in Message R

Posted 10/17/2019 4:21:34 PM

This may be a Saxon-specific question but I thought I would start here. Using Saxon 9.9 and XSLT 3, I want to emit nicely-formatted XML markup in my messages where the base markup has lots of noise I don't want to see (in this case Office Open XML which is oversupplied with namespace declarations . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/17/2019 4:08:58 PM

On 17.10.2019 17:55, Costello, Roger L. costello@xxxxxxxxx wrote: It's been a long time since I've looked at XQuery. I need to identify certain elements in XHTML documents and then either remove the elements or modify their values. Can XQuery do this? Are there free XQuery tools? Ever heard about . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/17/2019 4:06:05 PM

On Thu, Oct 17, 2019 at 03:55:17PM -0000, Costello, Roger L. costello@xxxxxxxxx scripsit: > I need to identify certain elements in XHTML documents and then either remove the elements or modify their values. Can XQuery do this? Are there free XQuery tools? Yes. Also yes. I'd look at BaseX, htt . . . Read full entry »


Re: Does XQuery allow you to modify the XML? (remove

Posted 10/17/2019 4:01:19 PM

XQuery pattern matching can handle this, and indeed has a dedicated following. For myself, schooled in both XSLT and XQuery, I really think XSLT identity transformation is much easier to deploybfewer lines of code. I look forward to debate on this... I havenbt been happy with how much more work I . . . Read full entry »


Does XQuery allow you to modify the XML? (remove elem

Posted 10/17/2019 3:55:11 PM

Hi Folks, It's been a long time since I've looked at XQuery. I need to identify certain elements in XHTML documents and then either remove the elements or modify their values. Can XQuery do this? Are there free XQuery tools? XHTML --> XQuery --> XHTML' (a modified version of the input XHTM . . . Read full entry »


Re: Need an XPath 2.0 expression that identifies a lon

Posted 10/15/2019 6:02:54 AM

On Mon, Oct 14, 2019 at 10:38 PM Costello, Roger L. costello@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I came up with this XPath expression: > > //p[o:p eq '&#160;'][count(following-sibling::*[position() le 10][name() > eq 'p'][o:p eq '&#160;']) ge 10] . . . Read full entry »


Re: Need an XPath 2.0 expression that identifies a lon

Posted 10/14/2019 6:01:08 PM

There was a problem when pasting. One correct expression is this: for $nb in '&#160;' return (p[. eq $nb and not(following-sibling::*[position() le 10][not(self::p)]) and following-sibling::*[position() le 10][. eq $nb] ])[1] On Mon, Oct 14, 2019 at 10:55 . . . Read full entry »


Re: Need an XPath 2.0 expression that identifies a lon

Posted 10/14/2019 5:55:14 PM

for $nb in '&#160;' return (p[. eq $nb and following-sibling::*[position() le 10][self::p]][. eq $nb])[1] On Mon, Oct 14, 2019 at 10:08 AM Costello, Roger L. costello@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi Folks, > > As you may know, when . . . Read full entry »


Re: Need an XPath 2.0 expression that identifies a lon

Posted 10/14/2019 5:36:59 PM

Well, a predicate using name()='p' is bad news because it depends on namespace prefixes, which are arbitrary. Use self::p, assuming it's a no-namespace element, or self::xhtml:p if its in the XHTML namespace. You could also do something like > //p[o:p eq '&#160;'][every $p in following-sib . . . Read full entry »


Re: Need an XPath 2.0 expression that identifies a lon

Posted 10/14/2019 5:18:43 PM

On Mon, Oct 14, 2019 at 05:08:53PM -0000, Costello, Roger L. costello@xxxxxxxxx scripsit: > Outlook generates HTML like that shown below. The non-blocking space > character is nested inside an <o:p> element, which is nested inside a > <p> element. [snip] > 2. Is there a bett . . . Read full entry »


Need an XPath 2.0 expression that identifies a long bl

Posted 10/14/2019 5:08:47 PM

Hi Folks, As you may know, when a formatted email message is created in Outlook, Outlook generates HTML under the hood. I am trying to determine if a formatted email message has text at the bottom of the email message that is separated from the rest of the email by a lot of space. In other words, . . . Read full entry »


Re: Constructing complex xs:string in variable

Posted 10/10/2019 3:18:23 PM

On Thu, 2019-10-10 at 12:45 +0000, Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx wrote: > Also let's not forget > > <xsl:variable name="var" select="''prefix' || $somevar || 'part'"/> Or one of the examples from my XSLT 3 course - fold-left( ("boy", . . . Read full entry »


Re: Constructing complex xs:string in variable

Posted 10/10/2019 12:44:28 PM

Also let's not forget <xsl:variable name="var" select="''prefix' || $somevar || 'part'"/> (as long as we are on the topic) I agree that the distinction between strings and text nodes is a fine one, but useful and important to understand. It represents one of the boundar . . . Read full entry »


Re: Constructing complex xs:string in variable

Posted 10/9/2019 3:23:19 PM

> On 09 Oct 2019, at 16:43, Eliot Kimber ekimber@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Looking at this now I realize it never occurred to me that xsl:value-of can have content and not just a @select attribute. Learn something new every day. Exactly what I . . . Read full entry »


Re: Constructing complex xs:string in variable

Posted 10/9/2019 3:08:19 PM

> Looking at this now I realize it never occurred to me that xsl:value-of can have content and not just a @select attribute. Yes, it's a very rarely used construct but very handy on the few occasions you need it. Of course text value templates are also handy in this kind of scenario. Michael . . . Read full entry »


Re: Constructing complex xs:string in variable

Posted 10/9/2019 2:56:17 PM

On Wed, 2019-10-09 at 13:28 +0000, Christian Roth mulberrytech- lists@xxxxxxxx wrote: > <xsl:variable name="var" as="xs:string"> > <xsl:text>prefix</xsl:text> > <xsl:value-of select="'part1'"/> > <!-- follows more complex co . . . Read full entry »


Re: Constructing complex xs:string in variable

Posted 10/9/2019 2:43:28 PM

And to explain why David's version works: value-of and xsl:text both result in text nodes, not strings. So a sequence of xsl:value-of and xsl:text instructions will result in a sequence of text nodes when are then converted to strings resulting in a sequence of strings. Wrapping everything in a si . . . Read full entry »


Re: Constructing complex xs:string in variable

Posted 10/9/2019 1:30:37 PM

On Wed, 9 Oct 2019 at 14:27, Christian Roth mulberrytech-lists@xxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > [re-sending - initial one didn't make it to the listb&?] > > Hello, > > I'm using XSLT2. > > I need to construct a complex string in a varia . . . Read full entry »


Constructing complex xs:string in variable

Posted 10/9/2019 1:27:19 PM

[re-sending - initial one didn't make it to the listb&?] Hello, I'm using XSLT2. I need to construct a complex string in a variable. I wanted to use XSLT instructions for this, not pure XPath. I'm struggling with coercing the result of the <xsl:variable> body to a single xs:string, not . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/7/2019 8:39:21 AM

> On 3 Oct 2019, at 22:17, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > My unpopular take is that maps are not my favorite feature within XSLT 3.0. > > One reason is that I found it hard to process maps in an XSLT-idiomat . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/4/2019 10:02:39 AM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3.10.2019 22:15, Rick Quatro rick@xxxxxxxxxxxxxx wrote: > I am finding this thread interesting because I am still mainly > using XSLT 2. Besides Liam's upcoming course, are there any > definitive guides on XSLT 3/XPath 3.1? My too best curr . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/4/2019 7:52:03 AM

Interestingly, we introduced xsl:mode/@on-no-match because the conventional forms of identity template weren't streamable. As the streamability analysis improved, this justification largely disappeared [*], but by then we had become accustomed to the convenience of this short-cut. Michael Kay Saxo . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/4/2019 7:37:20 AM

I think it's useful to distinguish (a) features that appeal immediately to existing users because they make it easier to do the things that you do a lot, and (b) features that are more strategic in nature, making it possible to do new things that you weren't doing before, or to get significant bene . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/4/2019 7:05:33 AM

<xsl:mode on-no-match="..."/> It reduces significantly the quantity of stupid code we had in XSLT 2. Christophe Le 03/10/2019 C 19:06, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx a C)critB : While i was preparing for a course on XSLT 3 later this month, i wondered whether other people . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/4/2019 3:31:10 AM

On Thu, 2019-10-03 at 17:00 +0000, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx wrote: > What do you find most useful? Or like the best? Many thanks to everyone who has answered so far - itbs been really interesting. maps, fn:transform, arrays, expand-text, streaming, seem to be the top few, with ar . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/3/2019 9:47:15 PM

And here's some really low-hanging fruit that we inexplicably failed to put in: * @select attribute on xsl:when and xsl:otherwise (and perhaps xsl:if) as an alternative to a contained xsl:sequence instruction * @as attribute on xsl:mode to define the return type of all template rules in that mode . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/3/2019 9:17:56 PM

Hi again, To agree with John (the spec is not so bad as that) but also to add, threads like this one are invaluable. For example, I just looked at Jirka's slides and how can I have missed xsl:where-populated and xsl:on-empty/on-non-empty? I will use those. Cheers, Wendell On Thu, Oct 3, 2019 at . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/3/2019 9:16:58 PM

My unpopular take is that maps are not my favorite feature within XSLT 3.0. One reason is that I found it hard to process maps in an XSLT-idiomatic way. But I guess I havenbt done enough research yet because, as I found out just now, I can actually write template rules like this: <xsl:templ . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/3/2019 9:05:48 PM

Acknowledging my possible bias, if you are quite happy with most of the content and detail of Michael Kaybs 2.0 book, then I suggest you gently read your way through the XSLT3.0 and XPath3.1 specs.... Youbll have enough background to understand the general concepts and the bwhatbs newb section . . . Read full entry »


Re: What's the best feature in XSLT 3?

Posted 10/3/2019 8:15:31 PM

I am finding this thread interesting because I am still mainly using XSLT 2. Besides Liam's upcoming course, are there any definitive guides on XSLT 3/XPath 3.1? My too best current resources are Michael Kay's book and Ken Holman's course on Udemy.com, which cover versions 1 and 2. Thanks for any p . . . 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