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: 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: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/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 »


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

Posted 10/3/2019 8:03:05 PM

Hi, My list so far: Functions including one of my favorites, fn:transform() Operators including ! and => Map and array datatypes xsl:mode xsl:iterate JSON I/O support Text value templates Streaming Packaging Ibve used all of them except packaging. (Like John Lumley: Real Soon Now.) Some fea . . . Read full entry »


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

Posted 10/3/2019 7:59:03 PM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3.10.2019 18:59, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx wrote: > What do you find most useful? Or like the best? Long answer: https://www.kosek.cz/xml/2019xmlss/Kosek_XSLT4DailyCoding.pdf Short one: ! => || operators text value templates - . . . Read full entry »


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

Posted 10/3/2019 7:31:02 PM

Maps. On Thu, Oct 3, 2019 at 12:59 PM Liam R. E. Quin liam@xxxxxxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > While i was preparing for a course on XSLT 3 later this month, i > wondered whether other people would have favourite features that were > introduced in . . . Read full entry »


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

Posted 10/3/2019 7:30:05 PM

For me itbs probably maps, as it allows structured results. Iterate helps a lot in some cases (e.g. processing static variables in an XSLT compiler ;-)). Dark horses might be accumulators (though I admit to never having used keys in 2.0) which are slowly growing on me. And without xsl:evaluate a . . . Read full entry »


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

Posted 10/3/2019 7:08:59 PM

To me I think it's streaming, because it enables transformations on large data which simply were not possible before. But it's probably the most complex, too. On Thu, Oct 3, 2019 at 8:19 PM Graydon graydon@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On Thu, Oct 03, 2 . . . Read full entry »


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

Posted 10/3/2019 6:19:27 PM

On Thu, Oct 03, 2019 at 04:59:28PM -0000, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx scripsit: > While i was preparing for a course on XSLT 3 later this month, i > wondered whether other people would have favourite features that were > introduced in XSLT 3. I know i do. > > What do you f . . . Read full entry »


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

Posted 10/3/2019 6:16:01 PM

> ... favourite features that were > introduced in XSLT 3. I know i do. > > What do you find most useful? Or like the best? XPath 3.1 (though in this unfinished form) -- of course Cheers, Dimitre On Thu, Oct 3, 2019 at 9:59 AM Liam R. E. Quin liam@xxxxxxxxxxxxxxxx < xsl-list-ser . . . Read full entry »


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

Posted 10/3/2019 6:12:15 PM

It depends. b Deborah A. Lapeyre On 03.10.2019 18:59, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx wrote: While i was preparing for a course on XSLT 3 later this month, i wondered whether other people would have favourite features that were introduced in XSLT 3. I know i do. What do you find most usefu . . . Read full entry »


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

Posted 10/3/2019 6:03:19 PM

* XPath 3.1: - Maps and arrays (but mostly maps) - "!" and "->" operators * xsl:iterate * text value templates I haven't tried to do much with packages and I haven't done anything with streaming. I have used the JSON features but they're not top of my list (probably bec . . . Read full entry »


What's the best feature in XSLT 3?

Posted 10/3/2019 4:59:22 PM

While i was preparing for a course on XSLT 3 later this month, i wondered whether other people would have favourite features that were introduced in XSLT 3. I know i do. What do you find most useful? Or like the best? Liam -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Do . . . Read full entry »


[ANN] XML, Schematron, XSLT classes -- LAST CALL

Posted 9/30/2019 2:01:47 PM

Mulberry Technologies announces the LAST CALL for our scheduled hands-on face-to-face classes Mulberry will teach each of the following public classes ONE MORE TIME. After that, our classes will be available only by special arrangement. Our Last Call class sc . . . Read full entry »


Re: XSL | index-of()

Posted 9/27/2019 3:50:23 PM

Your style sheet uses for-each to do the processing and in the context of this very small example that seems OK but probably worth mentioning that in a larger transform that's doing more than just generating the narrow result here you would normally prefer an apply-templates solution, i.e., somethi . . . Read full entry »


Aw: Re: XSL | index-of()

Posted 9/27/2019 12:05:33 PM

Hello everybody and thank you very much for your good answers. They help me to better understand XSL. I was also able to help myself with two for-each loops: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" . . . Read full entry »


Re: XSL | index-of()

Posted 9/27/2019 10:46:27 AM

Hi Janine, Here's the stylesheet that works, <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xm . . . Read full entry »


Re: XSL | index-of()

Posted 9/27/2019 9:30:42 AM

Am 27.09.2019 um 11:14 schrieb Janine Lantzsch loderndesfeuer@xxxxxx: > Hello community, > I am new in this list and hope very much that someone can help me or > give me an input with which I can continue to work. > > I would like to use XSL to check whether a abbreviation from a lis . . . Read full entry »


Re: XSL | index-of()

Posted 9/27/2019 9:29:35 AM

index-of(A, B) tests whether the sequence A includes the value B, and if so, it returns the list of positions where it appears. If it doesn't appear anywhere, the returned list is empty. The sequence ('ABG', 'AGI', 'BBL', 'ECK') doesn't include the value 'The abbreviation (ABG) appears in this doc . . . Read full entry »


XSL | index-of()

Posted 9/27/2019 9:07:50 AM

Hello community, I am new in this list and hope very much that someone can help me or give me an input with which I can continue to work. I would like to use XSL to check whether a abbreviation from a list appears in a certain string of recurring elements. The abbreviation is always written in brac . . . Read full entry »


Re: how to make a group-by multiple attributes motionl

Posted 9/26/2019 1:35:07 PM

Thank you Michael, the copy-of() used this way makes perfect sense. Works like a charm now, thanks a lot Met vriendelijke groeten, Best regards, Geert Bormans Van: "Abel Braaksma, (Exselt) abel@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Aan: "xsl-list" . . . Read full entry »


Re: how to make a group-by multiple attributes motionl

Posted 9/25/2019 10:55:44 PM

This code passes Saxon's streamability tests: <xsl:stylesheet version="3.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:mode streamable="yes"/> <xsl:template match="/"& . . . Read full entry »


Aw: how to make a group-by multiple attributes motionl

Posted 9/25/2019 10:07:16 PM

Use a composite grouping key that spells out attributes in the required order if the names are known. -- Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 25.09.19, 23:44, "Geert Bormans geert@xxxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> . . . Read full entry »


how to make a group-by multiple attributes motionless

Posted 9/25/2019 9:43:54 PM

All, I a streaming XSLT 3.0, I have to group a series of elements by their attribute names and values I have issues making the group-by motionless In a simplified example <rows> <row a="val-a-1" b="b-val"/> <row a="val-a-2" b="b-val"/& . . . Read full entry »


[ANN] course, XSLT: Two to Three

Posted 9/19/2019 7:30:56 PM

31st October, 1st Nov, Rockville MD, USA If you're using XSLT, you need to know about XSLT 3. Find out why on this course. Learn the major new features - streaming, fn:transform, new instructions, new functions, new data structures, new types. fn:transform() changes what you can do with XSLT; str . . . Read full entry »


Re: How to restrict xsl:key

Posted 9/12/2019 10:04:39 PM

On 12.09.2019 23:55, Mark Wilson mark@xxxxxxxxxxxx wrote: I have established a key: B <xsl:key name="placement-index" match="Stamp" use="concat(CatNumbers/@pofis-prefix, CatNumbers/@pofis-number, CatNumbers/@pofis-suffix)"/> It uses an XML file that contains the . . . Read full entry »


Re: How to restrict xsl:key

Posted 9/12/2019 10:02:13 PM

Thanks, Michael, I think that it is. I have been away from XSLT for a couple of years and did not see that very easy solution. Regards, Mark On 9/12/2019 2:59 PM, Michael Kay mike@xxxxxxxxxxxx wrote: > It looks as if this can be done simply by changing the match attribute to > > match=&q . . . Read full entry »


Re: How to restrict xsl:key

Posted 9/12/2019 9:59:41 PM

It looks as if this can be done simply by changing the match attribute to match="Period[@domain='c']//Stamp" Or have I misunderstood? Michael Kay Saxonica > On 12 Sep 2019, at 22:55, Mark Wilson mark@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > I ha . . . Read full entry »


How to restrict xsl:key

Posted 9/12/2019 9:55:08 PM

I have established a key: B <xsl:key name="placement-index" match="Stamp" use="concat(CatNumbers/@pofis-prefix, CatNumbers/@pofis-number, CatNumbers/@pofis-suffix)"/> It uses an XML file that contains the element Stamp. It worked until today. What changed is that . . . Read full entry »


Re: W3C Test Suites

Posted 9/12/2019 7:21:26 AM

The XSLT3, QT3, and XSD11 test suites are all now on GitHub under the w3c project, under informal "community" management. There are (lightweight and informal) readme files suggesting how changes should be handled. I have commit access to all three and am very happy to consider pull reques . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/12/2019 2:46:59 AM

On Thu, 2019-09-12 at 00:32 +0000, Michael Kay mike@xxxxxxxxxxxx wrote: > Sadly, I am unable to research an answer to historical questions, > because I no longer have member access to W3C's archives. Nor i... > The likely reason, though, will be a negative: the spec is the way it > is . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/12/2019 1:00:54 AM

Because we are discussing "quality of work" in this thread (among other things), here is a question: Can anyone provide new tests to be added to the test suites? If so, how to do this? Where is this described? Thanks, Dimitre On Wed, Sep 11, 2019 at 5:31 PM Michael Kay mike@xxxxxxxxxxx . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/12/2019 12:31:35 AM

> On 12 Sep 2019, at 00:04, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On Wed, 2019-09-11 at 22:03 +0000, Dimitre Novatchev > dnovatchev@xxxxxxxxx wrote: >> Why on >> earth did they provide **this** implementation and not . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/11/2019 11:04:32 PM

On Wed, 2019-09-11 at 22:03 +0000, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote: > Why on > earth did they provide **this** implementation and not something > better Two plausible reasons - the person who wrote it did so before some of the other XPath 3 features had settled down or been a . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/11/2019 10:02:39 PM

> To my mind the solution is to add to the literature, not try to repeal > the past. Of course, you are doing that (as will your forthcoming > papers on the topic). Which is the part I find interesting and > instructive, not the fault-finding. Wendell -- Absolutely! I was just try . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/11/2019 9:17:02 PM

Dimitre -- even if we were to concede the truth of everything you are saying, no standards committee can operate forever can it? To my mind the solution is to add to the literature, not try to repeal the past. Of course, you are doing that (as will your forthcoming papers on the topic). Which is t . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/9/2019 10:43:15 PM

> The alternative formulation wouldn't change anything. It would still have the same theoretical weakness that the rewritten > expression might use different resources and therefore fail under different circumstances. It might make it less likely that the > two formulations would differ in . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/9/2019 2:12:52 PM

The alternative formulation wouldn't change anything. It would still have the same theoretical weakness that the rewritten expression might use different resources and therefore fail under different circumstances. It might make it less likely that the two formulations would differ in practice, but . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/9/2019 1:20:37 PM

> I'm aware that some languages have attempted to formulate rules in the language semantics making tail call optimization mandatory. The XSL and > XQuery WGs considered several times whether to try and make the whole "errors and optimization" rules more formal and rigorous, and we . . . Read full entry »


[Annon] - XSpec 1.4.0 is out

Posted 9/9/2019 7:23:45 AM

XSpec, unit-test framework for XSLT, XQuery and Schematron, has been released under 1.4.0. Available at https://github.com/xspec/xspec/releases and on maven central : <dependency> B <groupId>io.xspec</groupId> B <artifactId>xspec</artifactId> B <version>1.4 . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/9/2019 5:22:19 AM

The "errors and optimization" rule in XPath says that processors can quite legitimately rewrite one expression with another that has different resource requirements and that therefore has different failure characteristics. This is by design. It means that either of these formulations coul . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/9/2019 2:18:41 AM

Forgot to provide the truly equivalent XPath - only implementation -- here is one that is even non-recursive: let $filter := function($f as function(item()) as xs:boolean, $list as item()*) as item()* { $list ! .[$f(.)] } return $filter(function($n) {$n idiv 2 * 2 eq $n}, 1 to 10000) On . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/9/2019 1:43:44 AM

> You can never guarantee that two expressions are equivalent in your > sense, because of "errors and optimization". Any construct might raise > an error - in the case of this example, stack overflow if the recursion > gets too deep. What about tail-recursion? For years we . . . Read full entry »


Re: W3C Specification of fn:filter() -- is this a bug

Posted 9/9/2019 12:54:07 AM

On Mon, 2019-09-09 at 00:18 +0000, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote: > The W3C F&O 3.1 spec (at > https://www.w3.org/TR/xpath-functions-31/#func-filter ) says: > > Rules > > The effect of the function is equivalent to the following [...] > > Because " . . . Read full entry »


W3C Specification of fn:filter() -- is this a bug in t

Posted 9/9/2019 12:17:23 AM

The W3C F&O 3.1 spec (at https://www.w3.org/TR/xpath-functions-31/#func-filter ) says: Rules The effect of the function is equivalent to the following implementation in XQuery: . . . . . . . . . or its equivalent in XSLT: <xsl:function name="fn:filter" as="item()* . . . Read full entry »


Re: PASSING> Michael Beddow (-2019)

Posted 9/8/2019 2:58:50 AM

Dear Colleagues, Michael Beddow's DOB has been kindly located from the list's archives: 1947. Thanks, David Charles -- --------------------------- A. Charles Muller, Professor Buddhist Culture Research Center Musashino University 1-1-20 Shinmachi, Nishitokyo-shi Tokyo 202-8585, Japan Office Ph . . . Read full entry »


Re: load-xquery-module(): Request for working code ex

Posted 9/7/2019 5:13:29 PM

Thanks Dr. Kay. On Fri, Sep 6, 2019 at 11:57 PM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > The XSLT3 and QT3 test suites are now on GitHub: w3c/xslt30-test and > w3c/qt3tests. The schema tests are there too at w3c/xsdtests. > > Tests for lo . . . Read full entry »


Re: load-xquery-module(): Request for working code ex

Posted 9/7/2019 5:11:51 PM

Thanks Martin. Dimitre On Sat, Sep 7, 2019 at 4:37 AM Martin Honnen martin.honnen@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Am 07.09.2019 um 04:00 schrieb Dimitre Novatchev dnovatchev@xxxxxxxxx: > > Could someone please, provide a working code example of calling t . . . Read full entry »


Re: load-xquery-module(): Request for working code ex

Posted 9/7/2019 11:37:43 AM

Am 07.09.2019 um 04:00 schrieb Dimitre Novatchev dnovatchev@xxxxxxxxx: Could someone please, provide a working code example of calling the standard XPath 3.1 functionB B load-xquery-module() ? <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" B B B xmlns:xs="http:/ . . . Read full entry »


Re: PASSING> Michael Beddow (-2019)

Posted 9/7/2019 6:58:10 AM

Thanks for that Chuck. Makes for quite an impressive CV. regards Dave P On Sat, 7 Sep 2019 at 05:26, Charles Muller acmuller@xxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Dear Colleagues, > > Many Mulberry-XSL old-timers will remember Michael Beddow, a g . . . Read full entry »


Re: load-xquery-module(): Request for working code ex

Posted 9/7/2019 6:57:33 AM

The XSLT3 and QT3 test suites are now on GitHub: w3c/xslt30-test and w3c/qt3tests. The schema tests are there too at w3c/xsdtests. Tests for load-xquery-module can be found at https://github.com/w3c/qt3tests/blob/master/fn/load-xquery-module.xml Most of the tests were written before the "?& . . . Read full entry »


PASSING> Michael Beddow (-2019)

Posted 9/7/2019 4:26:20 AM

Dear Colleagues, Many Mulberry-XSL old-timers will remember Michael Beddow, a great TEI-XML-XSLT practitioner who was active on this forum in earlier days. He passed away on Sept. 2. I have written up a piece consisting of my own remembrance of Michael here: https://networks.h-net.org/node/606 . . . Read full entry »


load-xquery-module(): Request for working code example

Posted 9/7/2019 1:59:51 AM

Could someone please, provide a working code example of calling the standard XPath 3.1 function load-xquery-module() ? The official specification at: https://www.w3.org/TR/xpath-functions-31/#func-load-xquery-module doesn't provide any examples. Also, do any official and public-available test su . . . Read full entry »


XSLT 3.0 Opportunity at Apple

Posted 9/6/2019 10:31:45 PM

Hello XSLT People, We have an exciting opportunity developing internal tools and workflows for silicon engineers designing chips at the core of future Apple products! Webre looking for a high-energy, highly motivated software engineer to develop code in XSLT 3.0 and Scala. Extensive knowledge o . . . Read full entry »


Re: how to remove xmls=""

Posted 9/4/2019 8:04:22 AM

You have copied the <front> and <body> elements from the source document, where they are in no namespace, so the serializer has to add the xmlns="" attribute to prevent the elements inheriting the namespace of their new parent. It seems you actually want the <front> and . . . Read full entry »


Re: how to remove xmls=""

Posted 9/4/2019 7:34:20 AM

one thing i try that adding a default namespace in xsl:stylesheet and got this error resolved. Please try once like: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2 . . . Read full entry »


AW: how to remove xmls=""

Posted 9/4/2019 6:21:12 AM

Hi, It seems like you misinterpret xmlns to be an ordinary attribute. Instead it is a namespace declaration for the element. With your first template you create a new article element *with* namespace. When the other elements of the input document are copied with your second template no namespace . . . Read full entry »


Re: how to remove xmls=""

Posted 9/4/2019 6:17:31 AM

On Wed, 2019-09-04 at 06:04 +0000, Joga Singh Rawat jrawat@xxxxxxxxxxxxxx wrote: > Dear Expert, > I am getting <front xmlns=""> and <body xmlns=""> as output from > below combination of input xml and xslt. Please let us know how to > remove xmlns=bb. T . . . Read full entry »


how to remove xmls=""

Posted 9/4/2019 6:03:20 AM

Dear Expert, I am getting <front xmlns=""> and <body xmlns=""> as output from below combination of input xml and xslt. Please let us know how to remove xmlns=bb. INPUT <article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://ww . . . Read full entry »


[ANN] Course, CSS for XML People - Amsterdam, Netherl

Posted 9/3/2019 6:36:14 AM

1st, 2d, 3rd October 2019; Amsterdam CSS For XML People https://www.delightfulcomputing.com/course-css-for-xml-people.html [note: also ask me about the XSLT 3 course for XSLT 2 users; i'll post about that separately] Do you work with complex documents, long documents, or with lots of consisten . . . Read full entry »


Re: Question for a code example of <xsl:evaluate> in

Posted 9/2/2019 9:40:50 PM

Fixed -- had to include: visibility="public" Thanks for the code example! Dimitre On Mon, Sep 2, 2019 at 2:33 PM Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote: > Thanks Martin, > > > So what happened with your "attempts to call such an existing > > xsl:fu . . . Read full entry »


Re: Question for a code example of <xsl:evaluate> in

Posted 9/2/2019 9:35:31 PM

Forgot to include: XSLT processor: Saxon-EE 9.8.0.12 executed with Oxygen Thanks, Dimitre On Mon, Sep 2, 2019 at 2:33 PM Dimitre Novatchev dnovatchev@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Thanks Martin, > > > So what happened with your "attempts t . . . Read full entry »


Re: Question for a code example of <xsl:evaluate> in

Posted 9/2/2019 9:33:26 PM

Thanks Martin, > So what happened with your "attempts to call such an existing > xsl:function", any error? Severity: fatal Description: Static error in XPath expression supplied to xsl:evaluate: Function {http://my.namespace}doSomething#1 not found. In the target text, among othe . . . Read full entry »


Re: Question for a code example of <xsl:evaluate> in

Posted 9/2/2019 9:03:17 PM

On 02.09.2019 22:55, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote: I need to call an existing xsl:function from within the xpath (target-expression ) attribute of <xsl:evaluate>. 1. Is this possible / allowed? From reading the W3C XSLT 3.0 Spec it seems so -- https://www.w3.org/TR/xslt-30/#dy . . . Read full entry »


Question for a code example of <xsl:evaluate> in which

Posted 9/2/2019 8:55:31 PM

I need to call an existing xsl:function from within the xpath (target-expression ) attribute of <xsl:evaluate>. 1. Is this possible / allowed? From reading the W3C XSLT 3.0 Spec it seems so -- https://www.w3.org/TR/xslt-30/#dynamic-xpath has a bullet in the list of available function signat . . . Read full entry »


XSL-List Guidelines

Posted 9/1/2019 2:45:38 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: Using sibling value in streaming mode

Posted 8/31/2019 10:30:11 AM

> Does xsl:fork as outlined above really help for the below wanted output > where you need the "id" to construct the "item" for each of the > string[not(@key='id')] elements? I may have misunderstood the specification... I don't think it's clear. Michael Kay Saxonica . . . Read full entry »


Re: Using sibling value in streaming mode

Posted 8/31/2019 10:11:57 AM

Thanks a lot for your suggestions Martin and Michael, very helpful to understand how streaming works. The maps are not that large, they are JSON objects coming from an API. I see that reusing IDs should be possible but incurs some complexity nonetheless. Which made me question, do I really need t . . . Read full entry »


Re: Using sibling value in streaming mode

Posted 8/31/2019 8:36:33 AM

Am 31.08.2019 um 10:25 schrieb Michael Kay mike@xxxxxxxxxxxx: If you want to achieve some level of streaming within the map, then clearly it's not going to be perfect streaming; in the worst case, if the "id" comes last, then you're going to have to buffer something in memory. Burst-mode . . . Read full entry »


Re: Using sibling value in streaming mode

Posted 8/31/2019 8:25:36 AM

I think Martin has provided several options quite well, but perhaps another angle will also be helpful. If the maps are reasonably small, then the simplest approach is "burst-mode" or "windowed" streaming: In the template rule with match="map", bind a variable to sele . . . Read full entry »


Re: Using sibling value in streaming mode

Posted 8/31/2019 6:58:28 AM

Am 30.08.2019 um 23:18 schrieb Martynas JuseviD ius martynas@xxxxxxxxxxxxx: Hi, I've started looking into streaming recently (using Saxon 9.9). I have a use case like this: Input: <array> <map> <string key="key1">value1</string> ... & . . . Read full entry »


Re: Using sibling value in streaming mode

Posted 8/30/2019 10:38:17 PM

On 30.08.2019 23:49, Martin Honnen martin.honnen@xxxxxx wrote: On 30.08.2019 23:18, Martynas JuseviD ius martynas@xxxxxxxxxxxxx wrote: The value of <string key="id"> is used as <id> in <item> elements. The problem is that <string key="id"> can occur in a . . . Read full entry »


Re: Using sibling value in streaming mode

Posted 8/30/2019 9:49:26 PM

On 30.08.2019 23:18, Martynas JuseviD ius martynas@xxxxxxxxxxxxx wrote: The value of <string key="id"> is used as <id> in <item> elements. The problem is that <string key="id"> can occur in any position in the <map>. I've tried using an accumulator . . . Read full entry »


Using sibling value in streaming mode

Posted 8/30/2019 9:18:32 PM

Hi, I've started looking into streaming recently (using Saxon 9.9). I have a use case like this: Input: <array> <map> <string key="key1">value1</string> ... <string key="id">123456789</string> ... < . . . Read full entry »


Re: Attributes disappear in XHTML output

Posted 8/30/2019 3:31:22 PM

This is great, Gerrit, it fixed my problem. Also thanks to Martin for looking at this. The DITA Open Toolkit had a template that removed my data-* attributes. Unfortunately it did not work to try to override this behavior in the best-practice DITA OT plugin way, so I just commented it out in th . . . Read full entry »


Re: Attributes disappear in XHTML output

Posted 8/30/2019 7:24:17 AM

Hi Mark, Therebs this comment by Radu on Github: https://github.com/dita-ot/dita-ot/issues/2955#issuecomment-388341287 So if you have an importing stylesheet (which I assume you have), you can try to override the default behavior like this: <xsl:template match="@*[starts-with(name(), . . . Read full entry »


Aw: Attributes disappear in XHTML output

Posted 8/30/2019 7:01:08 AM

You talk about processing XHTML but I don't see its namespace used on any element. Perhaps that is the reason that the attributes are missing. -- Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 30.08.19, 08:47, "Mark Giffin m1879@xxxxxxxxxxxxx" <xsl-list- . . . Read full entry »


Attributes disappear in XHTML output

Posted 8/30/2019 6:47:11 AM

When I do the following simple XHTML output, I can get any attribute I want in the XHTML output: XML input: <x> B <p>Here is my text.</p> </x> XSLT: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" B B B xmlns:xs="http://www.w3.org/2001/ . . . Read full entry »


Re: Re: For each child, create a new parent node incl

Posted 8/28/2019 12:06:35 PM

Hi Ruud, I can also run now my last version ( https://xsltfiddle.liberty-development.net/6rewNxx/10) okay, with command: java -jar /mnt/c/Apps/saxon6-5-5/saxon.jar -o output.tmx input.tmx ~/path/to/unmerge_tuvs_xsl2.xsl And the same stylesheet seems to work both as XSLT 1 and as XSLT 2. Thank y . . . Read full entry »


Re: Re: For each child, create a new parent node incl

Posted 8/28/2019 12:01:56 PM

On 8/28/19 1:34 PM, Manuel Souto Pico terminolator@xxxxxxxxx wrote: > One more update. > > I think I have managed more or less in this version of the stylesheet: > https://xsltfiddle.liberty-development.net/6rewNxx/8 > > It works in XSLTFiddle, but not when I run it in the command . . . Read full entry »


Re: Re: For each child, create a new parent node incl

Posted 8/28/2019 11:36:17 AM

Thanks, Ruud. Yes, that seems simpler than what I was trying to do now with a regex. It seems to work: https://xsltfiddle.liberty-development.net/6rewNxx/9 Cheers, Manuel Ruud GROSMANN r.grosmann@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> escreveu no dia quarta, 28/08/2019 C (s) 13:2 . . . Read full entry »


Re: Re: For each child, create a new parent node incl

Posted 8/28/2019 11:34:19 AM

One more update. I think I have managed more or less in this version of the stylesheet: https://xsltfiddle.liberty-development.net/6rewNxx/8 It works in XSLTFiddle, but not when I run it in the command line with SaxonEE9-9-1-4J or saxon6-5-5, e.g. java -jar /mnt/c/Apps/saxon6-5-5/saxon.jar -o ou . . . Read full entry »


Re: Re: For each child, create a new parent node incl

Posted 8/28/2019 11:27:29 AM

On 8/28/19 1:03 PM, Manuel Souto Pico terminolator@xxxxxxxxx wrote: > A quick update. > > I think I am closer in this version: > https://xsltfiddle.liberty-development.net/6rewNxx/4. The second problem > is fixed in it, the other two problems remain. > > I keep working on it, a . . . Read full entry »


Re: For each child, create a new parent node including

Posted 8/28/2019 11:02:55 AM

A quick update. I think I am closer in this version: https://xsltfiddle.liberty-development.net/6rewNxx/4. The second problem is fixed in it, the other two problems remain. I keep working on it, any tips are most welcome. Cheers, Manuel Manuel Souto Pico <terminolator@xxxxxxxxx> escreve . . . Read full entry »


For each child, create a new parent node including onl

Posted 8/28/2019 10:53:17 AM

Dear all, What I am trying to do should be quite easy but I need some help. Here you can see the kind of input I have and my first attempt: https://xsltfiddle.liberty-development.net/6rewNxx So: - tu -- tuv en (1) -- tuv pt (1) -- tuv pt (2) -- tuv pt (n) In that input you can see that . . . Read full entry »


Re: How to design XPath queries and XSLT code that can

Posted 8/3/2019 10:25:19 AM

Building on this excellent answer, Ibd say that the last part - transforming the data into a form that is better suited for a specific task - is also one major aspect when trying to reuse code. I tend to ask: what kind of questions do I try to solve? And then transforming my data in the first plac . . . Read full entry »


Re: How to design XPath queries and XSLT code that can

Posted 8/3/2019 8:49:47 AM

> My initial task was to display the gas stations at rest stops on the routes from Boston to NYC. I wrote some XPath queries and XSLT code. It worked - yea! > > Then I was tasked to display, for each route, the gas stations at rest stops. For example, display the gas stations at the rest s . . . Read full entry »


Re: How to design XPath queries and XSLT code that can

Posted 8/3/2019 7:46:05 AM

Designing software with potential for change is pretty much what 90% of software engineering is all about. There will always be some changes in requirements that can be accommodated easily and some that can't. I don't have time today to look at this specific example, but one of the best techniques . . . Read full entry »


Re: How to design XPath queries and XSLT code that can

Posted 8/2/2019 6:34:31 PM

Regardless of what data techniques you decide to use, look into the use of <xsl:import> and the writing of "core" stylesheet libraries that are exploited by "shell" stylesheet contexts that deliver results based on the core. Here is a case study of a stylesheet library . . . Read full entry »


Re: How to design XPath queries and XSLT code that can

Posted 8/2/2019 6:32:09 PM

On Fri, Aug 02, 2019 at 06:08:00PM -0000, Costello, Roger L. costello@xxxxxxxxx scripsit: [snip] > The complete XSLT program is shown below. I also show the code to > implement the second task (display, for each route, the gas stations > at rest stops); notice that the code is essentially . . . Read full entry »


How to design XPath queries and XSLT code that can be

Posted 8/2/2019 6:07:53 PM

Hi Folks, How to design XPath queries and XSLT code so that a complete rewrite isn't required every time there is a small change in requirements? Stated another way, how to design XPath queries and XSLT code that can be readily repurposed? Allow me to explain what I mean with a concrete example, . . . Read full entry »


XSL-List Guidelines

Posted 8/1/2019 1:20: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: How to iterate over all XML files in all subfolder

Posted 7/31/2019 4:33:26 PM

See page 261 of my XSLT book that is free on my web site. The feature you want is recurse=yes. You may wish to use on-error=ignore. collection('folder/?select=*.xml;recurse=yes;on-error=ignore') I hope this helps. . . . . . Ken At 2019-07-31 13:58 +0000, Costello, Roger L. costello@xxxxxxxxx . . . Read full entry »


Re: How to iterate over all XML files in all subfolder

Posted 7/31/2019 2:06:24 PM

On 31.07.2019 15:58, Costello, Roger L. costello@xxxxxxxxx wrote: I have a folder that contains subfolders. Within each subfolder is a bunch of XML files. I want to iterate over all the XML files in all the subfolders. I tried the following and it doesn't work: <xsl:for-each select="collec . . . Read full entry »


How to iterate over all XML files in all subfolders in

Posted 7/31/2019 1:57:48 PM

Hi Folks, I have a folder that contains subfolders. Within each subfolder is a bunch of XML files. I want to iterate over all the XML files in all the subfolders. I tried the following and it doesn't work: <xsl:for-each select="collection('folder/*?select=*.xml')"> <xsl:mes . . . Read full entry »


Re: XSpec and XSL Testing

Posted 7/27/2019 9:16:47 PM

On a much smaller scale, the Oxygen editor has good built-in support for XSpec, and I've grown to like it a great deal; when I write function libraries in XSLT nowadays I always pair them with XSpec. Cheers, Martin On 2019-07-27 2:06 p.m., Christophe Marchand cmarchand@xxxxxxxxxx wrote: At Editi . . . Read full entry »


Re: XSpec and XSL Testing

Posted 7/27/2019 9:06:00 PM

At Editions Lefebvre Sarrut - France - we have a strong requirement on XSLT unit testing. We use XSpec, with xspec-maven-plugin [1], which produces JUnit / Surefire test report, that is perfectly integrated in CI tools (Jenkins, SonarQube). All our projects, even XSL-only projects, are maven pr . . . Read full entry »


Re: XSpec and XSL Resting I'll

Posted 7/26/2019 9:57:24 PM

Pool On Fri, Jul 26, 2019, 4:48 PM Edward Porter edward.porter@xxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Therebs been some renewed interest in the possibility of unit testing in > my organization, and some folks have brought up XSpec as a possible avenue > toward . . . Read full entry »


XSpec and XSL Testing

Posted 7/26/2019 8:48:57 PM

There's been some renewed interest in the possibility of unit testing in my organization, and some folks have brought up XSpec as a possible avenue towards more robust testing during development. We leverage a fairly large number of Java extensions, our pipeline is all Java, and we've extended Saxo . . . Read full entry »


Re: exslt.org

Posted 7/26/2019 5:00:28 PM

I believe the files can still be found on Github. On Thu, Jul 25, 2019, 20:39 Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > We had some talk a couple of months ago in the XML Guild about taking this > on, but it went quiet. > > Michael Kay > . . . Read full entry »


Re: exslt.org

Posted 7/25/2019 6:39:03 PM

We had some talk a couple of months ago in the XML Guild about taking this on, but it went quiet. Michael Kay Saxonica > On 25 Jul 2019, at 19:17, Martynas JuseviD ius martynas@xxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi, > > is exslt.org still maint . . . Read full entry »


exslt.org

Posted 7/25/2019 6:17:11 PM

Hi, is exslt.org still maintained? The .zip files are all not found. Can they be found somewhere else? Martynas . . . Read full entry »


[ANN] Balisage 2019 Call for Encore Presentations

Posted 7/19/2019 5:02:06 PM

The Balisage Program consists of all new material on a wide variety of topics related to Markup. At the time the program was assembled the conference committee believed that every one of the speakers who accepted a spot on the program would be able to come to Balisage and make a presentation. And w . . . Read full entry »


Re: Getting a sequence of attribute names

Posted 7/18/2019 6:27:48 AM

@*/local-name() should give you the attribute names. Then you can join them with whitespaces. Have a look at the XSLT 2.0 string functions. Untested as written from phone... Regards Christoph > Am 17.07.2019 um 20:03 schrieb Rick Quatro rick@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxx . . . Read full entry »


Re: Getting a sequence of attribute names

Posted 7/17/2019 6:15:46 PM

Excellent, Martin, thank you! I was trying local-name(@*), which didn't work. Thank you for the fast response. From: Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> On 17.07.2019 20:03, Rick Quatro rick@xxxxxxxxxxxxxx wrote: > For each of the <em> elem . . . Read full entry »


Re: Getting a sequence of attribute names

Posted 7/17/2019 6:08:23 PM

On 17.07.2019 20:03, Rick Quatro rick@xxxxxxxxxxxxxx wrote: For each of the <em> elements, I am trying to get a space-delimited list (or string) of attribute names. For example, the first one would be "italic" and the second would be "italic bold". My output would be simi . . . Read full entry »


Getting a sequence of attribute names

Posted 7/17/2019 6:02:52 PM

Hi, I am using XSLT 2 and I think I am trying to get a "sequence" but I am not sure. I have this as my input: <?xml version="1.0" encoding="UTF-8"?> <root> <p> <em italic="yes">first paragraph</em> < . . . Read full entry »


Re: Syntax error in regex pattern

Posted 7/13/2019 9:36:09 PM

Liam, I think you know this would be evil, however brilliant. Different semantics for different quote marks? What will be next, *stars* for emphasis? Cheers, Wendell On Sat, Jul 13, 2019 at 1:36 PM Liam R. E. Quin liam@xxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > . . . Read full entry »


Re: question on standards and xml/json

Posted 7/13/2019 9:32:38 PM

Brian, I get you. So in general, there are two ways, it seems to me, to deal with the impedance mismatch. The first is to work around it with syntactic elaboration. As you note, this makes ugly results in the target language. The other is to constrain one's usage in the host language such that it . . . Read full entry »


Re: question on standards and xml/json

Posted 7/13/2019 5:36:29 PM

Thanks Wendell, I think this is kind of similar. Basically, I work with a number of people/groups that are pretty much JSON-only. I commonly find the need to take some sort of XML that we've been using and provide them with an extract of that data in the JSON format. While it's not that difficult . . . Read full entry »


Re: Syntax error in regex pattern

Posted 7/13/2019 5:36:15 PM

On Sat, 2019-07-13 at 16:38 +0000, Martin Honnen martin.honnen@xxxxxx wrote: > The attribute value is treated as an attribute value template where > an expression in curly braces is evaluated as an XPath expression. Off-topic really, but (like Simon St.Laurent) i still kinda wish we could di . . . Read full entry »


Re: Syntax error in regex pattern

Posted 7/13/2019 5:11:56 PM

On 7/13/2019 10:04 AM, Martin Honnen martin.honnen@xxxxxx wrote: I am trying to use a regex pattern with properties in an xsl:analyze statement, like this: B B B B <xsl:analyze-string select="$stringtoproc" regex="\p{L}"> with the intention of capturing letters only. Ho . . . Read full entry »


Re: Syntax error in regex pattern

Posted 7/13/2019 4:45:21 PM

On Sat, Jul 13, 2019 at 04:32:39PM -0000, Scott Vanderbilt lists@xxxxxxxxxxxxx scripsit: > <xsl:analyze-string select="$stringtoproc" regex="\p{L}"> It's usually safest to use the pattern: <xsl:variable name="search" as="xs:string" select=&q . . . Read full entry »


Re: Syntax error in regex pattern

Posted 7/13/2019 4:37:44 PM

On 13.07.2019 18:32, Scott Vanderbilt lists@xxxxxxxxxxxxx wrote: I am trying to use a regex pattern with properties in an xsl:analyze statement, like this: B B B <xsl:analyze-string select="$stringtoproc" regex="\p{L}"> with the intention of capturing letters only. How . . . Read full entry »


Syntax error in regex pattern

Posted 7/13/2019 4:32:33 PM

Hello. I am trying to use a regex pattern with properties in an xsl:analyze statement, like this: B B B <xsl:analyze-string select="$stringtoproc" regex="\p{L}"> with the intention of capturing letters only. However, when using this in an XSLT transformation in Oxyge . . . Read full entry »


[ANN] Balisage Bard 2019

Posted 7/8/2019 8:09:06 PM

"Balisage: The Markup Conference" is Fast Approaching Start preparing for "Balisage Bard", the Balisage performance game Rules at: https://www.balisage.net/2019/Program.html#H115 Having trouble thinking of a topic for your Balisage Bard contribution? Consider how many of the a . . . Read full entry »


Re: empty sequence as complex content

Posted 7/4/2019 6:46:56 PM

> Saxon is getting this wrong ah I did wonder, thanks for the confirmation... The original code was a large xsl:choose that happened to hit a case where all the branches were false so it returned nothing. David . . . Read full entry »


Re: empty sequence as complex content

Posted 7/4/2019 6:00:22 PM

Saxon is getting this wrong: zero-length text nodes should never exist, unless they are parentless. What's happening is that the variable "x" satisfies all the conditions for a "text-fragment" tree. Because constructs like <xsl:variable name="z"> <xsl:valu . . . Read full entry »


empty sequence as complex content

Posted 7/4/2019 5:01:33 PM

The following stylesheet generates a variable x using a sequence constructor that evaluates to an empty sequence... <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" &g . . . Read full entry »


XSL-List Guidelines

Posted 7/1/2019 4:17:45 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 »


[ANN] Course, CSS for XML People - Rockville MD, USA,

Posted 6/25/2019 4:43:14 PM

19th, 20th, 21st August 2019; Rockvillle MD, USA CSS For XML People https://www.delightfulcomputing.com/course-css-for-xml-people.html Do you work with complex documents, long documents, or with lots of consistent smaller documents, in XML? These might be aircraft manuals, encyclopedias and other . . . Read full entry »


Re: question on standards and xml/json

Posted 6/24/2019 9:25:24 PM

Good readers, Gerrit points out to me the link was broken. Which is odd, but here's another one: https://pages.nist.gov/OSCAL/ Apologies! -- Wendell On Mon, Jun 24, 2019 at 5:16 PM Wendell Piez wapiez@xxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi, > > . . . Read full entry »


Re: question on standards and xml/json

Posted 6/24/2019 9:15:46 PM

Hi, XML and JSON alignment is one of the problems we've been working on here www.usnist.gov/OSCAL/ Warning: under development and subject to change. But lots of XSLT in there! Cheers, Wendell On Sat, Jun 22, 2019 at 11:07 PM BR Chrisman brchrisman@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxx . . . Read full entry »


XSLT at the XML Summer School

Posted 6/24/2019 1:16:33 PM

Hello, We have announced the program for the XML Summer School, which takes place September 15-20 in Oxford, UK. The XSLT and XQuery course may be of particular interest. It is an intermediate to advanced course with the goal of helping developers who are currently using XSLT to be more effectiv . . . Read full entry »


Re: question on standards and xml/json

Posted 6/23/2019 4:33:37 AM

On Sun, 2019-06-23 at 03:07 +0000, BR Chrisman brchrisman@xxxxxxxxx wrote: > Has there been any work to define an XML subset which is > simply/directly transformable into JSON? Several. It depends on the processing you plan, and the nature of the JSON or XML you start with, as to which is be . . . Read full entry »


question on standards and xml/json

Posted 6/23/2019 3:06:41 AM

Has there been any work to define an XML subset which is simply/directly transformable into JSON? I know there are many XML expressions that are very difficult to convert to JSON due to limits in JSON that make such a conversion very messy, but I would guess that with a number of standardized rest . . . Read full entry »


Re: Is it possible to store XSLT code fragments as dat

Posted 6/21/2019 11:49:47 AM

Hi, I have done this sort of thing successfully in Saxon using the transform() function. The pattern is not exactly the same - you take your list of XPaths (runtime parameter or source), stitch them together into an XSLT, and execute. It is a useful pattern for all kinds of heuristics, not only dy . . . Read full entry »


Re: Is it possible to store XSLT code fragments as dat

Posted 6/20/2019 11:53:28 AM

On Thu, Jun 20, 2019 at 11:38:23AM -0000, Costello, Roger L. costello@xxxxxxxxx scripsit: > The big picture is this: I want to perform various mapping operations > on the Book data. I want the mapping operations expressed in a > declarative manner so that Subject Matter Experts (SMEs) can . . . Read full entry »


Re: Is it possible to store XSLT code fragments as dat

Posted 6/20/2019 11:50:22 AM

On 20.06.2019 13:49, Martin Honnen martin.honnen@xxxxxx wrote: In XPath 3.1 there is the B transform function to run an XSLT 3 stylesheet from XPath 3 or XSLT 3 or XQuery 3 code, it allows you to use apply-templates or call-template or even run one of your user-defined functions. Forgot the link . . . Read full entry »


Re: Is it possible to store XSLT code fragments as dat

Posted 6/20/2019 11:49:29 AM

This is what higher-order functions are for in XSLT 3.0 / XPath 3.0. You write your mapping operations as functions (or write them in some other notation which you transform into functions), and then you parameterise your code so it executes a dynamically-supplied mapping operation using a dynamic . . . Read full entry »


Re: Is it possible to store XSLT code fragments as dat

Posted 6/20/2019 11:49:14 AM

On 20.06.2019 13:38, Costello, Roger L. costello@xxxxxxxxx wrote: Hello XSLT experts! As you know, XPath expressions can be stored in an XML document and then an XSLT program can be written which inputs each expression and dynamically evaluates them. For example, I created several XPath expression . . . Read full entry »


Is it possible to store XSLT code fragments as data an

Posted 6/20/2019 11:38:17 AM

Hello XSLT experts! As you know, XPath expressions can be stored in an XML document and then an XSLT program can be written which inputs each expression and dynamically evaluates them. For example, I created several XPath expressions to query Book data; I stored the XPath expressions this way: &l . . . Read full entry »


[ANN] Balisage Program Adds Late-breaking News

Posted 6/18/2019 2:35:09 PM

The Balisage 2019 program has been enhanced with late-breaking presentations. Take a look: https://www.balisage.net/2019/Program.html Acronyms in the 2019 Balisage program include: AI, CSS, DITA, HTML, JATS, JATS4R, JSON ,NISO, NIST, PHP, SCAP, SGML, SVG, TEI, XDM, XForms, XHTML, XML, XPath, XPr . . . Read full entry »


Re: Unescaping CDATA and turning it into a variable?

Posted 6/12/2019 3:02:43 PM

On 12.06.2019 16:51, rus tle profrustyleafiii@xxxxxxxxxxx wrote: Hello List, Given a node such as this... <Fragment> <![CDATA[This is some<spanclass="meta"cid="0b>cheese</span> and <spanclass="meta"cid="1b>chocolate</span>!]]> &l . . . Read full entry »


Unescaping CDATA and turning it into a variable?

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

Hello List, Given a node such as this... <Fragment> <![CDATA[This is some <span class="meta" cid="0b>cheese</span> and <span class="meta" cid="1b>chocolate</span>!]]> </Fragment> If I use disable-output-escaping: <xsl . . . Read full entry »


Re: XSL help

Posted 6/12/2019 2:34:29 PM

Rahul, This will do what you want: B B <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" B B B B version=" . . . Read full entry »


Re: XSL help

Posted 6/12/2019 2:05:00 PM

What does your XSL look like? Hard to diagnose a problem without seeing the patient :) Michele From: Rahul Singh rahulsinghindia15@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, June 12, 2019 5:33 AM To: XSL-List: The Open Forum on XSL <xsl-list-service@xxxxxxxxxxx . . . Read full entry »


Re: XSL help

Posted 6/12/2019 1:05:07 PM

If you've got code that isn't working, then please show us the code and tell us how it fails; we'll be happy to explain where you went wrong and that will help you take the next step up the learning curve. By contrast, if someone just writes the code for you, you won't learn anything. Michael Kay . . . Read full entry »


XSL help

Posted 6/12/2019 9:32:52 AM

I need help for xsl. Actually Grouping is not working in my xsl, Input and expected output are given below. Input xml: <country> <states> <city>Albama</city> <pin>1</pin> <zip>aa</zip> <phone>12</phone> </states> <sta . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

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

On Tue, 2019-06-11 at 17:34 +0000, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx wrote: > > Therebs always something additional to point out here in pedantbs > paradise, dear Liam! :-) Thanks! -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Informat . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/11/2019 5:33:09 PM

On 11.06.2019 19:26, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx wrote: <xsl:variable as="xs:string" name="within-braces"> [{] <!--* opening bace *--> ( <!--* $1 *--> [^{}]+ <!--* not containing a brace *--> ) <!--* e . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/11/2019 5:26:01 PM

On Mon, 2019-06-10 at 18:21 +0000, Don Smith dsmith_lockesmith@xxxxxxxxx wrote: > Thank you all, > I used Gerrit's suggestion <xsl:analyze-string select="." > regex="\{{([^}}]+)\}}"> and it appears to work exactly as desired. As an addendum, i'll add that i ten . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/10/2019 9:03:45 PM

Hi David, Thanks for pointing that out. Fortunately I've no requirement for nested brackets. Gratitude. . .small things, eh? Don On bMondayb, bJuneb b10b, b2019b b03b:b18b:b22b bPMb bCDT, David Carlisle d.p.carlisle@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/10/2019 8:18:18 PM

> \{{([^}}]+)\}} That will be Ok as you do not have nested instances, {aaa{bbb}ccc} it would match from the first { to the first } so {aaa{bbb} which is probably not intended. It is not possible in general (for arbitrary depth) to match nested brackets with a regular expression (that's essenti . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/10/2019 6:20:39 PM

Thank you all, I used Gerrit's suggestionB <xsl:analyze-string select="." regex="\{{([^}}]+)\}}"> and it appears to work exactly as desired. Further testing TBA. Thanks again, Don On bMondayb, bJuneb b10b, b2019b b12b:b32b:b41b bPMb bCDT, gerrit.imsie . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/10/2019 5:32:38 PM

Agree, if expand-text is available (if one uses XSLT 3.0, for which there is almost no reason not to). Sent from MailDroid -----Original Message----- From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> To: xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/10/2019 5:30:40 PM

On 10.06.2019 19:21, Michael Kay mike@xxxxxxxxxxxx wrote: On 10 Jun 2019, at 17:56, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx <mailto:gerrit.imsieke@xxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote: If you want to . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/10/2019 5:21:09 PM

> On 10 Jun 2019, at 17:56, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > If you want to use xsl:analyze-string with XSLT 2.0 (or 3.0), you can put the regex in a variable, like so: > > > <xsl:variable name="re . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/10/2019 4:56:29 PM

If you want to use xsl:analyze-string with XSLT 2.0 (or 3.0), you can put the regex in a variable, like so: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version=&quo . . . Read full entry »


Re: XSLT Regex for Matching Curly Braces

Posted 6/10/2019 4:48:32 PM

On 10.06.2019 18:30, Don Smith dsmith_lockesmith@xxxxxxxxx wrote: Hello, I'm attempting to write a regex inB XSLT on matching curly braces and then produce the correct markup output. Between my lack of expertise in regex generally and the special circumstances in XSLT with regard to AVTs and curl . . . Read full entry »


XSLT Regex for Matching Curly Braces

Posted 6/10/2019 4:30:39 PM

Hello, I'm attempting to write a regex inB XSLT on matching curly braces and then produce the correct markup output. Between my lack of expertise in regex generally and the special circumstances in XSLT with regard to AVTs and curly braces I'm having little success. The requirement is pretty strai . . . Read full entry »


Re: Simple map and string-length(): unexpected behavio

Posted 6/8/2019 7:25:58 AM

Convoluted history here. The XPath 1.0 spec is: <quote> Function:B numberB string-length(string?) <> The string-length <https://www.w3.org/TR/1999/REC-xpath-19991116/#function-string-length> returns the number of characters in the string (see [3.6 Strings] <https://www.w3.org/ . . . Read full entry »


Re: Simple map and string-length(): unexpected behavio

Posted 6/8/2019 1:18:01 AM

Ah! To answer our question according to the w3c XML Schema on datatypes: the difference is that the zero-argument version of string-length() used in the simple map operation casts the item to string() before taking its string-length. When this happens, the lexical form is defined in a canonicalized . . . Read full entry »


Simple map and string-length(): unexpected behavior?

Posted 6/8/2019 12:52:22 AM

Dear XSL list, We are perplexed by a discrepancy between applying the string-length() function directly to a numerical argument and using simple map to perform what we expected would be the same operation. string-length(5) returns an error, as expected. oXygen reports: "XPath failed due to: R . . . Read full entry »


Re: XSD default attributes not working with doc()?

Posted 6/7/2019 11:26:26 PM

On Fri, Jun 07, 2019 at 11:16:05PM -0000, Michael Kay mike@xxxxxxxxxxxx scripsit: > Default values from the schema will only be expanded if validation takes > place. > You can do validation without attribute expansion, but you can't do > attribute expansion without validatio . . . Read full entry »


Re: XSD default attributes not working with doc()?

Posted 6/7/2019 11:15:59 PM

Default values from the schema will only be expanded if validation takes place. You can do validation without attribute expansion, but you can't do attribute expansion without validation. Michael Kay Saxonica > On 7 Jun 2019, at 21:56, Graydon graydon@xxxxxxxxx <mailto:graydon@xxxxxxxxx> . . . Read full entry »


Re: XSD default attributes not working with doc()?

Posted 6/7/2019 8:55:58 PM

On Fri, Jun 07, 2019 at 08:06:43PM -0000, Martin Honnen martin.honnen@xxxxxx scripsit: > On 07.06.2019 21:56, Graydon graydon@xxxxxxxxx wrote: [XSD default attribute values not being picked up by the document parse from doc()] > > I'm surprised by this; the DTD and RNG versions pick up the . . . Read full entry »


Re: XSD default attributes not working with doc()?

Posted 6/7/2019 8:06:37 PM

On 07.06.2019 21:56, Graydon graydon@xxxxxxxxx wrote: This is with XSLT 3.0, using Saxon-EE 9.8.0.12 in oXygen 21.1 I have some documents associated with an XSD schema via xsi:noNamespaceSchemaLocation (and I'm sure that association works because validation works in oXygen.) The schema contains . . . Read full entry »


XSD default attributes not working with doc()?

Posted 6/7/2019 7:56:30 PM

Hello -- This is with XSLT 3.0, using Saxon-EE 9.8.0.12 in oXygen 21.1 I have some documents associated with an XSD schema via xsi:noNamespaceSchemaLocation (and I'm sure that association works because validation works in oXygen.) The schema contains some attributes with default values. If I cr . . . Read full entry »


Re: Each value in an XPath array is a sequence of ele

Posted 6/6/2019 3:22:08 PM

Firstly, I missed this, to select the first member in an array you need $groups?1 rather than $groups[1]. Secondly, if $rows is a sequence of row elements then $rows/row selects nothing because a row doesn't have a child::row. Thirdly, I'm not sure why you expect the 'Foo' row to be in the first . . . Read full entry »


Re: Each value in an XPath array is a sequence of ele

Posted 6/6/2019 3:18:19 PM

On 06.06.2019 17:15, Costello, Roger L. costello@xxxxxxxxx wrote: Hi Michael, That XPath expression yields the empty set. I created these variables: <xsl:variable name="first-group" select="$groups[1]" /> <xsl:variable name="Foo-row-first-group" select=&quo . . . Read full entry »


Re: Each value in an XPath array is a sequence of ele

Posted 6/6/2019 3:15:01 PM

Hi Michael, That XPath expression yields the empty set. I created these variables: <xsl:variable name="first-group" select="$groups[1]" /> <xsl:variable name="Foo-row-first-group" select="($first-group?*)/row[Data eq 'Foo']"/> And then output . . . Read full entry »


Re: Each value in an XPath array is a sequence of ele

Posted 6/6/2019 2:47:13 PM

$first_group is an array of nodes. To turn it into a sequence of nodes, use "?*". So it's ($first_group?*)/row (parentheses because I don't have the operator precedences in my head) Michael Kay Saxonica > On 6 Jun 2019, at 15:26, Costello, Roger L. costello@xxxxxxxxx <xsl-list . . . Read full entry »


Each value in an XPath array is a sequence of elements

Posted 6/6/2019 2:25:50 PM

Hi Folks, This is an extension to a question that I had last week ... Recall that I want to group the <row> elements in the following XML. Each group should consist of those <row> elements that have the same ARPT__IDENT, TRM__IDENT values. <Test> <row> <ARP . . . Read full entry »


Re: Help describing the behavior of a Path Expression

Posted 6/5/2019 4:19:58 PM

Dr Kay - Thanks for the explanation and the link - that's helpful and clarifying. Best, Bridger On Tue, Jun 4, 2019 at 6:07 PM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > There are three templates here, that match overlapping sets of nodes. None > . . . Read full entry »


Re: Multiple Sort Key Components

Posted 6/5/2019 11:59:21 AM

Thank you, Michael.B Sent from Yahoo Mail on Android On Wed, Jun 5, 2019 at 3:27 AM, Michael Kay mike@xxxxxxxxxxxx<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: Your first sort key is position(). Every item in the input has a different value for position(). The Nth sort key only affe . . . Read full entry »


Re: Multiple Sort Key Components

Posted 6/5/2019 8:27:07 AM

Your first sort key is position(). Every item in the input has a different value for position(). The Nth sort key only affects the outcome if all sort keys before the Nth have duplicate values. When there are no duplicates for the first sort key, the second and third will therefore have no effect. . . . Read full entry »


Multiple Sort Key Components

Posted 6/4/2019 11:27:59 PM

Hello, I'm attempting to sort the content of a variable using multiple sort key components and my last component (@range_length) doesn't take effect. Given this input which reflects paragraphs in document order: B <list_of_group_ranges> B B B B B B B B B B B B B B B B B B B B B B B <range . . . Read full entry »


Re: Help describing the behavior of a Path Expression

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

There are three templates here, that match overlapping sets of nodes. None has an explicit priority, so each takes a default priority based on the form of the match pattern. The rules are here: https://www.w3.org/TR/xslt-30/#default-priority The rules indicate that the priority for "node()&q . . . Read full entry »


Re: Help describing the behavior of a Path Expression

Posted 6/4/2019 8:24:31 PM

Hi David On Tue, Jun 4, 2019 at 4:16 PM David Carlisle d.p.carlisle@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > did you mean @percentage ge '15'] here? that is string comparison, > you want 15 if you want a numeric comparison > > Yes :) - sorry for the typos i . . . Read full entry »


Re: Help describing the behavior of a Path Expression

Posted 6/4/2019 8:16:03 PM

did you mean @percentage ge '15'] here? that is string comparison, you want 15 if you want a numeric comparison However to answer the question, the pattern "item" does have a lower default priority than the pattern "item[anything]" (strictly speaking this is an xslt pattern n . . . Read full entry »


Help describing the behavior of a Path Expression

Posted 6/4/2019 8:06:13 PM

Hi all - apologies for the awkward title. I was helping a coworker with a problem, where we wanted to ignore certain elements that didn't meet certain requirements. We had a working template for the elements with requirements, but how to make the processor ignore the others? My suggestion was to w . . . Read full entry »


XSL-List Guidelines

Posted 6/2/2019 1:31:38 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 »


[ANN] Balisage Call for Late-breaking News

Posted 5/31/2019 9:09:27 PM

Call for Late-breaking News: Balisage 2019 The peer-reviewed part of the Balisage 2019 program has been announced (https://www.balisage.net/2019/Program.html). The committee left a few spaces for late-breaking news. If you want to speak at Balisage 2019 NOW IS THE TIME to write up your idea; prop . . . Read full entry »


Re: Re: XPath expression that yields the same resulta

Posted 5/31/2019 6:36:28 AM

Am 30.05.2019 um 23:46 schrieb Costello, Roger L. costello@xxxxxxxxx: Group the rows using the composite key ARPT__IDENT | TRM__IDENT and store the groups in an XSLT variable: <xsl:variable name="groups" as="array(element(row))*" select=" let $keys := d . . . Read full entry »


Re: XPath expression that yields the same resultasxsl

Posted 5/30/2019 9:46:26 PM

Hi Folks, Some fun queries ... Context Node: the Test element (root element). Collect the set of row elements and store them in an XSLT variable: <xsl:variable name="rows" select="row" as="element(row)*" /> Group the rows using the composite key ARPT__IDENT . . . Read full entry »


Re: Re: XPath expression that yields the same resulta

Posted 5/30/2019 7:24:50 PM

On 30.05.2019 21:12, Costello, Roger L. costello@xxxxxxxxx wrote: So, the bottom line is that your XPath expression is pure XPath and has no dependencies on XSLT, right? Yes. If the oXygen Builder supported arrays, then I would not have gotten that "no results" message, right? Their r . . . Read full entry »


Re: Re: XPath expression that yields the same resulta

Posted 5/30/2019 7:12:08 PM

Thanks Martin. So, the bottom line is that your XPath expression is pure XPath and has no dependencies on XSLT, right? If the oXygen Builder supported arrays, then I would not have gotten that "no results" message, right? /Roger . . . Read full entry »


Re: Re: XPath expression that yields the same result

Posted 5/30/2019 6:59:42 PM

On 30.05.2019 20:57, Martin Honnen martin.honnen@xxxxxx wrote: I think I made a feature request for supporting results with arrays and maps some while ago in their support forum, will need to look when that was and what they responded. https://www.oxygenxml.com/forum/topic19294.html#p52350 was not . . . Read full entry »


Re: Re: XPath expression that yields the same result

Posted 5/30/2019 6:57:29 PM

On 30.05.2019 20:50, Costello, Roger L. costello@xxxxxxxxx wrote: Which version of oXygen with which XPath engine exactly? I am using the latest version of oXygen. I set the Builder to 3.0. The XPath engine is SAXON. For me the latest version of oXygen is 21.1 and it offers 3.1 but not 3.0 in t . . . Read full entry »


Re: Re: XPath expression that yields the same result

Posted 5/30/2019 6:49:58 PM

Hi Martin, > Which version of oXygen with which XPath engine exactly? I am using the latest version of oXygen. I set the Builder to 3.0. The XPath engine is SAXON. /Roger . . . Read full entry »


Re: Re: XPath expression that yields the same result a

Posted 5/30/2019 6:41:51 PM

On 30.05.2019 20:35, Costello, Roger L. costello@xxxxxxxxx wrote: let $keys := distinct-values(/Test/row/concat(ARPT__IDENT, '|', TRM__IDENT)) return for $i in $keys return array { /Test/row[$i = concat(ARPT__IDENT, '|', TRM__IDENT)] } However ..... when I open the XML docu . . . Read full entry »


Re: XPath expression that yields the same result as x

Posted 5/30/2019 6:35:32 PM

Hi Folks, Thank you for the awesome responses! I particularly like Martin's XPath expression: let $keys := distinct-values(/Test/row/concat(ARPT__IDENT, '|', TRM__IDENT)) return for $i in $keys return array { /Test/row[$i = concat(ARPT__IDENT, '|', TRM__IDENT)] } However ... . . . Read full entry »


Re: XPath expression that yields the same result as x

Posted 5/30/2019 3:04:37 PM

Simple XSLT 1.0 -- closest to the requirements :) <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space elements="*"/> <xsl:key . . . Read full entry »


Re: XPath expression that yields the same result as x

Posted 5/30/2019 2:29:00 PM

On 30.05.2019 16:10, Michael Kay mike@xxxxxxxxxxxx wrote: I would normally use maps for grouping in XPath 3.1. Maps are nice and compact for grouping, I agree, but in the end I find that using them I can't conserve the original input order or control the order of items at all as I am used to from X . . . Read full entry »


Re: XPath expression that yields the same result as x

Posted 5/30/2019 2:10:08 PM

I would normally use maps for grouping in XPath 3.1. Ignoring the problem of composite keys map:merge(//row ! map:entry( key, .), map{"duplicates":"combine"}) If the grouping key is composite, as in this example, then you can either form a key by string conc . . . Read full entry »


Re: XPath expression that yields the same result as x

Posted 5/30/2019 1:20:40 PM

On 30.05.2019 15:06, Martin Honnen martin.honnen@xxxxxx wrote: What XPath expression will yield the desired value for $groups? <xsl:variable name="groups" select="???" /> Is there an XPath 2.0 expression that can be used? What kind of sequence type would you expect that . . . Read full entry »


Re: XPath expression that yields the same result as x

Posted 5/30/2019 1:06:40 PM

On 30.05.2019 14:46, Costello, Roger L. costello@xxxxxxxxx wrote: Hello XSLT/XPath experts! My XML document consists of a series of rows. Each row is identified by the combination of two child elements: ARPT__IDENT and TRM__IDENT. I want to group the rows. A group consists of those rows with the . . . Read full entry »


Re: XPath expression that yields the same result as x

Posted 5/30/2019 12:49:48 PM

You could make it an xpath, but you don't _need_ to do that to store it in a variable , simply use xsl:variable with content rather than a select attribute. . . . Read full entry »


XPath expression that yields the same result as xsl:f

Posted 5/30/2019 12:46:06 PM

Hello XSLT/XPath experts! My XML document consists of a series of rows. Each row is identified by the combination of two child elements: ARPT__IDENT and TRM__IDENT. I want to group the rows. A group consists of those rows with the same ARPT__IDENT and TRM__IDENT. This XML document: <Test> . . . Read full entry »


Re: creating arbitrary document references

Posted 5/29/2019 1:51:18 PM

On Tue, May 28, 2019 at 09:12:08PM -0000, Martin Honnen martin.honnen@xxxxxx scripsit: > On 28.05.2019 22:38, Graydon graydon@xxxxxxxxx wrote: > > So how can I pick a random member of that sequence of > > files-available-to-be-referenced each time the template matches and I > > . . . Read full entry »


Re: creating arbitrary document references

Posted 5/28/2019 9:12:04 PM

On 28.05.2019 22:38, Graydon graydon@xxxxxxxxx wrote: So how can I pick a random member of that sequence of files-available-to-be-referenced each time the template matches and I need to replace the value of @href with that arbitrary actual file reference? You could also try random-number-generat . . . Read full entry »


Re: creating arbitrary document references

Posted 5/28/2019 8:55:28 PM

On 28.05.2019 22:38, Graydon graydon@xxxxxxxxx wrote: So how can I pick a random member of that sequence of files-available-to-be-referenced each time the template matches and I need to replace the value of @href with that arbitrary actual file reference? One way to deal with the "recursive&q . . . Read full entry »


creating arbitrary document references

Posted 5/28/2019 8:37:47 PM

Hello -- I'm using XSLT 3.0 in oXygen 21.1. I have a directory structure of test documents generated by oXygen from (specialized) DITA XSD schemas. The schema generation process creates attribute cross reference attribute values; these do not resolve to an actual file. If I want the cross refer . . . Read full entry »


[ANN] Balisage Call for Late-breaking News

Posted 5/22/2019 8:26:03 PM

Call for Late-breaking News: Balisage 2019 The peer-reviewed part of the Balisage 2019 program has been announced (https://www.balisage.net/2019/Program.html). The committee left a few spaces for late-breaking news. If you want to speak at Balisage 2019 NOW IS THE TIME to write up your idea; prop . . . 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

Learn Stylus Studio in 6 Minutes

Can six minutes change your life? A new action-packed online video demonstration covers how to use Stylus Studio in just six minutes! Watch this video and change the way you develop XML applications forever!

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