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!


Confusion with generated xsl

Posted 5/21/2018 1:53:00 PM

Hello XSL community, I have been creating a content conversion system using XSLT 3.0 with Saxon PE 9.8.0.8 in Oxygen 20.0. The production version is being tested with Saxon PE 9.8.0.11J. The workflow is to pre-process and simplify the source XML into a flatter and more consistent intermediate form . . . Read full entry »


Re: Getting text nodes from the current-group()

Posted 5/10/2018 7:08:04 AM

On 10 May 2018 at 07:54, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I wouldnbt have sent my answer had I known of Davidbs, which inexplicably > went into the junk folder. Oh now I feel so hurt :( . . . Read full entry »


Re: Getting text nodes from the current-group()

Posted 5/10/2018 6:54:52 AM

I wouldnbt have sent my answer had I known of Davidbs, which inexplicably went into the junk folder. On 10.05.2018 02:57, Rick Quatro rick@xxxxxxxxxxxxxx wrote: Thanks to you and David, that got me started in the right direction. . . . Read full entry »


Re: Getting text nodes from the current-group()

Posted 5/10/2018 12:57:06 AM

Thanks to you and David, that got me started in the right direction. -----Original Message----- From: Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, May 09, 2018 2:55 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Getting tex . . . Read full entry »


Re: Getting text nodes from the current-group()

Posted 5/9/2018 6:54:53 PM

Have you considered writing <xsl:for-each-group select="node()" group-starting-with="verse[@sID]"> instead of <xsl:for-each-group select="*" group-starting-with="verse[@sID]"> ? . . . Read full entry »


Re: Getting text nodes from the current-group()

Posted 5/9/2018 3:52:53 PM

<xsl:for-each-group select="*" selects elements you want <xsl:for-each-group select="node()" . . . Read full entry »


Getting text nodes from the current-group()

Posted 5/9/2018 3:11:44 PM

Hi, I have input XML that is flat and I am trying to group on one of the elements. I am able to group, but I don't know how to get the text nodes from the group. Here is an input snippet: <?xml version="1.0" encoding="UTF-8"?> <div type="book" osisID=" . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/8/2018 6:11:02 PM

On 08.05.2018 18:04, Michael Kay mike@xxxxxxxxxxxx wrote: I don't think you need two accumulators, you can have a single accumulator that matches every row and only creates the map if the current value is an empty map. Taking up that idea I tried also to construct a streaming accumulator that stor . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/8/2018 4:12:12 PM

Thanks Michael, worth trying, will do Best regards, Geert Bormans ----- Oorspronkelijk bericht ----- Van: "Abel Braaksma, (Exselt) abel@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Aan: "xsl-list" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Verzonden: Dinsdag 8 m . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/8/2018 4:03:46 PM

I don't think you need two accumulators, you can have a single accumulator that matches every row and only creates the map if the current value is an empty map. Another way to do this is with xsl:iterate: iterate over the rows with an xsl:param holding the column names found in the first row (init . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/8/2018 3:58:34 PM

Interesting Martin, thanks, will give that a go Best regards, Geert Bormans -------------------------------------------------------------- Markup UK - a conference about XML and other mark-up languages London, June 9b10 2018 Programme now available at [ http://markupuk.org/speakers.xhtml | http . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/8/2018 3:54:59 PM

On 08.05.2018 17:33, Martin Honnen martin.honnen@xxxxxx wrote: On 08.05.2018 17:19, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx wrote: All, I have a potentially huge tabular structure in an XML file: one "table'' element, many "row" elements, each having a series of attributes I want . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/8/2018 3:33:34 PM

On 08.05.2018 17:19, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx wrote: All, I have a potentially huge tabular structure in an XML file: one "table'' element, many "row" elements, each having a series of attributes I want to process them using a streaming XSLT, but I am hitting an iss . . . Read full entry »


streaming XSLT creating a header from a first record

Posted 5/8/2018 3:19:32 PM

All, I have a potentially huge tabular structure in an XML file: one "table'' element, many "row" elements, each having a series of attributes I want to process them using a streaming XSLT, but I am hitting an issue I want to use information from the first row in a header construc . . . Read full entry »


[announcement] Markup UK conference - last day of earl

Posted 5/8/2018 8:23:43 AM

All, (apologies for cross-posting) A month from now we will have Markup UK, a conference on XML and other mark-up technologies. We are extremely happy to be able to announce an excellent set of papers and presentations on a broad set of topics, please check http://markupuk.org/speakers.xhtml If . . . Read full entry »


Re: XSLT tooling for everyday tasks

Posted 5/4/2018 12:54:17 AM

Seems very useful. Congrats, Wendell ! On Thu, May 3, 2018 at 2:56 PM, Wendell Piez wapiez@xxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Dear XSL friends, > > For your docx extraction needs, please consider > > http://xsweet.coko.foundation > > It is . . . Read full entry »


Re: XSLT tooling for everyday tasks

Posted 5/3/2018 10:22:29 PM

On 03/05/18 22:57, Wendell Piez wapiez@xxxxxxxxxxxxxxx wrote: > Dear XSL friends, > > For your docx extraction needs, please consider > > http://xsweet.coko.foundation > > It is all XSLT all through, and produces HTML or XML results (HTML tagging). Very interesting...thank . . . Read full entry »


XSLT tooling for everyday tasks

Posted 5/3/2018 9:56:39 PM

Dear XSL friends, For your docx extraction needs, please consider http://xsweet.coko.foundation It is all XSLT all through, and produces HTML or XML results (HTML tagging). Thanks! Wendell -- Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables ____ . . . Read full entry »


XSL-List Guidelines

Posted 5/1/2018 7:00:59 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: creating a collection from an archive

Posted 4/20/2018 9:34:37 PM

On Fri, Apr 20, 2018 at 08:45:18PM -0000, Michael Kay mike@xxxxxxxxxxxx scripsit: > It's a strange error, and I can't reproduce it. > > Any chance you could send me a repro? Well, strictly, apparently not; I can't reproduce this anymore. The "content not allowed in prolog" ver . . . Read full entry »


Re: creating a collection from an archive

Posted 4/20/2018 8:45:11 PM

It's a strange error, and I can't reproduce it. Any chance you could send me a repro? Michael Kay Saxonica > On 20 Apr 2018, at 13:45, Graydon graydon@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On Thu, Apr 19, 2018 at 09:09:30PM -0000, Michael Kay mike@xxxxxxxx . . . Read full entry »


[ANN] Balisage 2018 Papers Due April 22

Posted 4/20/2018 7:59:46 PM

Balisage 2018 Paper are due April 22 (If you need an extra day or two send email to info@xxxxxxxxxxxx to get a short extension). If you need help with your paper, send email to info@xxxxxxxxxxxx! Details at: https://www.balisage.net/Call4Participation.html Symposium info at: https://www.balisag . . . Read full entry »


Re: creating a collection from an archive

Posted 4/20/2018 1:09:44 PM

On Thu, Apr 19, 2018 at 08:52:42PM -0000, Terry Badger terry_badger@xxxxxxxxx scripsit: > Here is part of the solution you what I think. Think I used the various > namespaces later. This works in the current version of Oxygen. There is an > xml file in Word that is a manifest of a . . . Read full entry »


Re: creating a collection from an archive

Posted 4/20/2018 12:45:34 PM

On Thu, Apr 19, 2018 at 09:09:30PM -0000, Michael Kay mike@xxxxxxxxxxxx scripsit: > Try renaming the .docx file with a .jar or .zip file extension and > then using it directly as the collection URI - Saxon should recognize > it and give you access to the contained files as a collection. A . . . Read full entry »


Re: creating a collection from an archive

Posted 4/19/2018 9:09:23 PM

Try renaming the .docx file with a .jar or .zip file extension and then using it directly as the collection URI - Saxon should recognize it and give you access to the contained files as a collection. If that works, you could register your own CollectionFinder that subclasses the StandardCollection . . . Read full entry »


Re: creating a collection from an archive

Posted 4/19/2018 8:52:35 PM

Here is part of the solution you what I think. Think I used the various namespaces later. This works in the current version of Oxygen.B There is an xml file in Word that is a manifest of all the files in the zip(Word) and you could extract that then use that it get the names of the other files.. &l . . . Read full entry »


creating a collection from an archive

Posted 4/19/2018 7:07:21 PM

So I have a Word document, localtest.docx, which is in the 2016 strict version of the OOXML standard. As such, it's a zip archive of a bunch of XML files. I want to apply XSLT to the XML files. I could use the arch module and the collection function to write the whole thing to disk and then load . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/19/2018 2:30:52 PM

On 19/04/2018 16:08, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx wrote: I tend to agree. This will leave the original code less cluttered. On the other hand, avoiding an extra pass is also cool. We could pass position() as a tunneled parameter from the inner grouping to the apply-templates . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/19/2018 2:08:27 PM

I tend to agree. This will leave the original code less cluttered. On the other hand, avoiding an extra pass is also cool. We could pass position() as a tunneled parameter from the inner grouping to the apply-templates and make IDs unique by appending this position parameter (preceded by some g . . . Read full entry »


Re: How do I tell SAXON to not validate the value of

Posted 4/19/2018 1:57:09 PM

Looking at the history of https://saxonica.plan.io/issues/3062 it seems I first produced an incorrect patch, which looks like it would have this effect (see comment #7), and then corrected it with a subsequent patch; the history suggests that the updated patch has been released on the 9.8 branch bu . . . Read full entry »


How do I tell SAXON to not validate the value of xsi:

Posted 4/19/2018 12:59:16 PM

Hi Folks, I am running saxon9he from a command line. I have a simple XSLT program that goes into a large XML document and copies one element and outputs it. When I run the XSLT, I get this error message: Error in xsl:copy-of/@select on line 13 column 61 of test.xsl: XTTE1510: Unknown xsi:type . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/18/2018 9:27:08 PM

The only refinement I had to add was a post-process to remove duplicate IDs. I couldn't immediately think of a way to determine that a give @id attribute was being handled for the first time during the split process, so easier to just filter out duplicates as a follow-on process. Cheers, E. -- El . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/18/2018 9:19:36 PM

Ken: I had forgotten about your PSMI. I'm coming back to FO after a long absence. Cheers, E. -- Eliot Kimber http://contrext.com o;?On 4/18/18, 4:01 PM, "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: There are a number of users of my . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/18/2018 9:01:50 PM

There are a number of users of my Page Sequence Master Interleave (PSMI) code for the rotated tables: https://cranesoftwrights.github.io/resources/psmi/index.htm Perhaps this has some ideas you can exploit. . . . . . . Ken At 2018-04-18 20:36 +0000, Eliot Kimber ekimber@xxxxxxxxxxxx wrote: I . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/18/2018 8:35:28 PM

I definitely owe Gerrit the beverage of his choice. I was able to make this code work with my details. While it's not obvious (at least not to me--I still need to take some time to fully appreciate how it works) it's definitely much more elegant than the recursive approach I was thinking of. I wi . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/18/2018 7:00:38 PM

Hold my beer. <?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" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes=&q . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/18/2018 6:23:28 PM

Gerrit, I don't immediately see how the code in the referenced message works but it's simple enough to try in my context. In my case the number of switches is small relative to the total content, so it will only be applied occasionally and infrequently. Cheers, E. -- Eliot Kimber http://contre . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/18/2018 6:21:34 PM

On 18/04/2018 20:15, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx wrote: You'd identify all leaf elements Correction: all leaf nodes, that is, node()[empty(node())] The same should probably apply to "In the template that matches any element" b "In the template that matches an . . . Read full entry »


Re: Best Way to Break Up Nested Structures Based On I

Posted 4/18/2018 6:15:48 PM

Hi Eliot, I think this can be tackled with what I call "upward projection", see for ex. https://markmail.org/message/kmq2g4fidmw6cofz You'd identify all leaf elements and group them (maybe a combination of group-starting-with="two-colum-start" and group-ending-with="tw . . . Read full entry »


Best Way to Break Up Nested Structures Based On Inline

Posted 4/18/2018 5:45:32 PM

Using XSLT 2 with Saxon. In the context of generating XSL-FO markup where there tree of fo:block elements can be quite deep, I need to break the blocks into a sequence of top-level blocks that specify @span based on the presence of markers anywhere in the heirarchy. This is to support FOP's strict . . . Read full entry »


Re: [XSL] weird issue - <xsl:value-of> VS <xsl:sequenc

Posted 4/18/2018 5:38:09 PM

In your future postings to XSL-List please leave the bweird issueb out of the subject line. People often browse the subject lines in the archive and see only the beginning of the subjects - your question and the discussion it generates will be more easily found and more valuable in the future if . . . Read full entry »


Re: [XSL] weird issue - <xsl:value-of> VS <xsl:sequenc

Posted 4/18/2018 4:09:49 PM

Thank you very much, Michael :) 2018-04-18 16:58 GMT+02:00 Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>: > > > On 18 Apr 2018, at 15:25, Larnic Rick frederic.lanic@xxxxxxxxx < > xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hello guy . . . Read full entry »


Re: [XSL] weird issue - <xsl:value-of> VS <xsl:sequenc

Posted 4/18/2018 2:58:20 PM

> On 18 Apr 2018, at 15:25, Larnic Rick frederic.lanic@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hello guys, > I detected a trouble issue around the difference of <xsl:sequence> and <xsl:value-of> of a string variable (xs:string type). > For me, . . . Read full entry »


[XSL] weird issue - <xsl:value-of> VS <xsl:sequence> i

Posted 4/18/2018 2:25:27 PM

Hello guys, I detected a trouble issue around the difference of <xsl:sequence> and <xsl:value-of> of a string variable (xs:string type). For me, the result of these both xsl element should be the same. But it seems not in fact. I don't understand why. Please help me :) ! The context of . . . Read full entry »


[ANN] Balisage Submissions Due April 22

Posted 4/17/2018 8:47:14 PM

REMINDER Submissions to Balisage 2018 and to the Symposium on Markup Vocabulary Ecosystems are due in LESS THAN A MONTH! It takes time to write a Balisage paper; it is time to get started. Balisage: The Markup Conference 2018 July 31 b 3, 2018, Rockville, MD (a suburb of Washington, DC) July 30, . . . Read full entry »


Re: epub information

Posted 4/17/2018 6:36:16 PM

If you are having issues with the command prompt, I suggest you skip it and just use Pagina EPUB-Checker. Here it is again: > Pagina EPUB-Checker is a fine little program with a GUI that can do that for you without the need to enter any command, and as a bonus also validate the resulting EPUB f . . . Read full entry »


Re: epub information

Posted 4/16/2018 7:15:00 PM

If you already have produced all the XML and data files, I do not see what you need XSL for. The next step would be put those files into their own folder and packaging them into an EPUB-compliant ZIP file. You can do so in the command line: cd EPUB_FOLDER zip -q0X PATH_TO_OUTPUT.epub mime . . . Read full entry »


Re: epub information

Posted 4/16/2018 7:12:42 PM

An EPUB is a Zip package that contains all the parts youbve identified. If you want a sample of an XSLT-based EPUB generation system, the DITA for Publishers EPUB plugin for the DITA Open Toolkit may be of interest: https://github.com/dita4publishers/org.dita4publishers.epub It uses XSLT . . . Read full entry »


epub information

Posted 4/16/2018 6:41:56 PM

Hi, Is there any way to create .epub file. I have created META-INF, OEBPS, mimetype folder with data. Regards, Rahul . . . Read full entry »


Employment Opportunity

Posted 4/12/2018 5:19:47 PM

Hello All, I am retiring at the end of May. My position was just posted on the SAS Careers Center site. https://careers-sas.icims.com/jobs/13707/software-developer/job?hub=9&mobile= false&width=764&height=500&bga=true&needsRedirect=false&jan1offset=-300&jun1o ffset=-2 . . . Read full entry »


Re: C14N and XSLT

Posted 4/10/2018 8:27:31 PM

On 10/04/18 18:57, Michael Kay mike@xxxxxxxxxxxx wrote: > I decided it was worth looking at whether C14N can be offered as an XSLT > serialization option (saxon:canonical="yes") and it seems easy enough. > The main changes needed to the existing XML serializer seem to be: Canoni . . . Read full entry »


Re: C14N and XSLT

Posted 4/10/2018 5:56:51 PM

I decided it was worth looking at whether C14N can be offered as an XSLT serialization option (saxon:canonical="yes") and it seems easy enough. The main changes needed to the existing XML serializer seem to be: (a) <empty></empty> for empty elements (b) sorting of namespaces . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/10/2018 3:13:39 PM

I am currently using a function similar to this but with some elaboration. The problem, as Liam pointed out in his response, is that the rules for headline/title capitalization that I am targeting are hard to express algorithmically, as they involve decisions about grammatical function, position . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/10/2018 3:07:57 PM

It isn't a matter of word-length. It is a question of part of speech. "Is" is a verb. Generally verbs are capitalized in titles. On Tue, Apr 10, 2018 at 8:08 AM, Eliot Kimber ekimber@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I would not have capitalized . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/10/2018 3:06:21 PM

Here is a function that will accomplish what you need. <xsl:function name="c:title-case" as="xs:string"> <xsl:param name="expr"/> <xsl:variable name="tokens" select="tokenize($expr,' ')"/> <xsl:varia . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/10/2018 2:08:45 PM

I would not have capitalized the bisb. Cheers, E. -- Eliot Kimber http://contrext.com From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Reply-To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Date: Monday, April 9, 2018 at 5:09 PM To: xsl-list . . . Read full entry »


Re: C14N and XSLT

Posted 4/10/2018 2:04:28 PM

> On 10 Apr 2018, at 14:12, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > All, > > I am evaluating whether I should make C14N part of an XSLT chain or have something like XMLStarlet at the end of the process. > > I believe th . . . Read full entry »


Re: C14N and XSLT

Posted 4/10/2018 2:02:07 PM

On 2018-04-10 14:13:07+01:00 Geert Bormans geert@xxxxxxxxxxxxxxxxxxx wrote: I believe that by the book, I can not guarantee an XML serialisation from an XSLT renders a canonical XML, can I? To me things like <foo></foo> instead of <foo/> are impossible to force, or did I missed so . . . Read full entry »


C14N and XSLT

Posted 4/10/2018 1:12:34 PM

All, I am evaluating whether I should make C14N part of an XSLT chain or have something like XMLStarlet at the end of the process. I believe that by the book, I can not guarantee an XML serialisation from an XSLT renders a canonical XML, can I? To me things like <foo></foo> instead . . . Read full entry »


Re: Match to a condition in two arrays of xmls and out

Posted 4/10/2018 7:03:07 AM

Please show specimen XML for your two input files and your desired output. The question as you've described it is far too generic. It also helps to explain what you have tried and where you got stuck - to help you up the learning curve, it helps to know you starting point. Michael Kay Saxonica & . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/10/2018 6:19:32 AM

On Mon, 2018-04-09 at 20:52 +0000, David Sewell dsewell@xxxxxxxxxxxx wrote: > Wondering if anyone has a serviceable function (preferably in XSLT > 2/3 but v1 is > fine if it works) that takes a string as input and returns it with > title > capitalization according to English-langua . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/10/2018 5:55:53 AM

On Tue, Apr 10, 2018 at 2:22 AM, David Sewell dsewell@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Wondering if anyone has a serviceable function (preferably in XSLT 2/3 but > v1 is fine if it works) that takes a string as input and returns it with > title capita . . . Read full entry »


Match to a condition in two arrays of xmls and output

Posted 4/10/2018 2:39:30 AM

Team, I have 2 xmls. B Each xml is having list of objects. Eg: Products xml with multiple lines (East_Products) and West_Products. B I am looking for a xslt which gives me all products that match my condition from both xmls (East_Products and West_Products) and prepares a third xml with only eleme . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/10/2018 12:29:25 AM

I agree that sentence-style capitalization is (to a contemporary eye) more elegant, but in my particular use case I need to convert for stylistic consistency from all-caps headings to ones using the title casing style in use in specific scholarly editions dating from several decades ago. Nothing is . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/9/2018 11:39:55 PM

On 09/04/18 22:04, John Lumley john@xxxxxxxxxxxx wrote: > The simplest would be to tokenise to words and then apply-templates with > three cases: > > 1. [1] B capitalize($word) > 2. $word = (bof,'and'... /etc.) - $word/ > 3. capitalize($word) Plus exceptions. O'Reilly does NOT . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/9/2018 10:09:14 PM

My copy-editors at Wiley tried to impose US-style title capitalization on my book, I found it incredibly ugly: bLulab Is Inmate at Prison He Opened as Brazilbs President <https://www.nytimes.com/2018/04/09/world/americas/brazil-lula-jail.html> "Is", "at", "He&quo . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/9/2018 9:11:02 PM

$ saxon9 -it:m ct.xsl <?xml version="1.0" encoding="UTF-8"?> : A Memorandum of Understanding : Where Did the Druids Come From : Being for the Benefit of [Mr.] Kite where ct.xsl is <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3 . . . Read full entry »


Re: XSLT function for title capitalization?

Posted 4/9/2018 9:04:30 PM

The simplest would be to tokenise to words and then apply-templates with three cases: 1. [1] capitalize($word) 2. $word = (bof,'and'... etc.) - $word 3. capitalize($word) Sent from my iPad > On 9 Apr 2018, at 21:52, David Sewell dsewell@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxx . . . Read full entry »


XSLT function for title capitalization?

Posted 4/9/2018 8:52:00 PM

Wondering if anyone has a serviceable function (preferably in XSLT 2/3 but v1 is fine if it works) that takes a string as input and returns it with title capitalization according to English-language editorial practice (for example, Chicago Manual of Style). So for example A MEMORANDUM OF UNDER . . . Read full entry »


Re: XPath to find duplicate elements

Posted 4/5/2018 9:16:54 PM

Hi Leo, To clarify, this idea is not directly aimed at solving your particular problem -- it is only an idea how to make processing that involves calling deep-equal() more efficient. Cheers, Dimitre On Thu, Apr 5, 2018 at 1:37 PM, Dimitre Novatchev dnovatchev@xxxxxxxxx <xsl-list-service@xxxx . . . Read full entry »


Re: XPath to find duplicate elements

Posted 4/5/2018 8:37:14 PM

Leo, > Dimitre, I am not sure whether I understand your two centsb& > For each node you read, you have to compare all following nodes. How would > you like to do that in the initial reading? The initial loading will not compare any nodes -- it will establish the value that is the sam . . . Read full entry »


Re: XPath to find duplicate elements

Posted 4/5/2018 8:13:35 PM

Dimitre, I am not sure whether I understand your two centsb& For each node you read, you have to compare all following nodes. How would you like to do that in the initial reading? Yours Leo > On 5 Apr 2018, at 20:15, Dimitre Novatchev dnovatchev@xxxxxxxxx <mailto:dnovatchev@xxxxxxxxx&g . . . Read full entry »


Re: XPath to find duplicate elements

Posted 4/5/2018 8:12:08 PM

Thank you Martin, this is exactly what I was hoping ;-) > On 5 Apr 2018, at 18:45, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Also XPath now has a "path" function which returns an XPath expression with positional predicates so p . . . Read full entry »


Re: XPath to find duplicate elements

Posted 4/5/2018 6:15:26 PM

Just a thought on this. If we can implement deep-equal($n1, $n2) as calculating some ValueIdentity (VI) for each of the nodes and returning VI1 eq VI2 ... Then the VIs for each node can be calculated on the initial reading of the XML document (even in streaming mode) with almost no additio . . . Read full entry »


Re: XPath to find duplicate elements

Posted 4/5/2018 4:45:39 PM

On 05.04.2018 18:12, Leo Studer leo.studer@xxxxxxxxxxx wrote: I have an xml file where I need and XPath expression to find all elements that are a copy of a previous element in the same file. I came up with the following: *let* *$xml* := <a> <b> <c>1</c> <d>1</d . . . Read full entry »


XPath to find duplicate elements

Posted 4/5/2018 4:11:53 PM

Hello I have an xml file where I need and XPath expression to find all elements that are a copy of a previous element in the same file. I came up with the following: let $xml := <a> <b> <c>1</c> <d>1</d> . . . Read full entry »


Re: collection is not working

Posted 4/3/2018 10:46:06 AM

also wanted to say, I used Saxon-HE due to my convenience. Saxon-PE or Saxon-EE are better to be used in a professional project. Or for that matter Schema Aware XSLT processors from other vendors. That allows us to use more strongly typed (among other benefits) XSLT language. On Tue, Apr 3, 2018 a . . . Read full entry »


Re: collection is not working

Posted 4/3/2018 9:20:46 AM

Hi Rahul, Here's something that I tried, which worked. The XSLT stylesheet is, <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi=" http://www.w3.org/2001/XMLSch . . . Read full entry »


Re: collection is not working

Posted 4/2/2018 7:39:39 PM

I think you have your parameter and use of the collection function backwards. Is ARB a folder name that contains the 100 XML files? If so, you want to define your parameter (using the collection function) as: <xsl:param name="DocumentsURI" select="'collection(file:/C:/Users/ . . . Read full entry »


collection is not working

Posted 4/2/2018 4:38:57 PM

Hi, I have 100 xml file which contains xml data with schemalocation namespace in root element, i have written xslt to merge file name with schema name in one file but i am not able to generate my output : *Input: * *aa.xml* <?xml version="1.0" encoding="UTF-8"?> *<art . . . Read full entry »


[ANN] Balisage Submissions Due April 22

Posted 3/29/2018 3:34:05 PM

REMINDER Submissions to Balisage 2018 and to the Symposium on Markup Vocabulary Ecosystems are due in LESS THAN A MONTH! It takes time to write a Balisage paper; it is time to get started. Balisage: The Markup Conference 2018 July 31 b 3, 2018, Rockville, MD (a suburb of Washington, DC) July 30, . . . Read full entry »


Re: FOSI SGML Information!

Posted 3/28/2018 5:10:02 PM

On Wed, 2018-03-28 at 04:57 +0000, Rahul Singh rahulsinghindia15@xxxxxxxxx wrote: > Hi, > > I am new for SGML and FOSI. How that is working. What is the role of > FOSI. I'm tempted just to say https://lmgtfy.com/?q=SGML+FOSI because the first couple of Google matches for that search w . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:33:49 PM

If you simply want to distinguish figures from everything else then you can make the grouping key the same for all non-figure elements and unique for figures, e.g.: group-adjacent="if (self::figure) then concat(bfigure-b, position()) else bnot-a-figureb))" I constructed the keys . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:28:17 PM

I just flipped Michael's solution around a bit and it seems to work fine: group-adjacent="if (self::figure) then concat(local-name(),position()) else 0" I forgot that you can use non-node values for grouping. XSLT is a great language! Thanks again for the help. Rick From: . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:27:44 PM

Perhaps then it's group-adjacent="if (self::figure) then generate-id() else '#'" Michael Kay Saxonica > On 28 Mar 2018, at 17:22, Rick Quatro rick@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > OK, I think I get it. You are grouping on a string deriv . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:27:00 PM

On 28.03.2018 18:22, Rick Quatro rick@xxxxxxxxxxxxxx wrote: OK, I think I get it. You are grouping on a string derived from the node name instead of the node itself. This doesn't work for my general intent, because the other elements may not all be the same. For example, I might have this: < . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:25:15 PM

The logic is basically: allocate a grouping key which is effectively: * for figure elements, a unique key * for everything else, the local name of the element then put adjacent elements with the same grouping key into the same group. Perhaps it would be clearer to write group-adjacent="i . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:22:44 PM

OK, I think I get it. You are grouping on a string derived from the node name instead of the node itself. This doesn't work for my general intent, because the other elements may not all be the same. For example, I might have this: <steps> <step> <para>Intro stuff</p . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:13:54 PM

My general intent is to group on figure elements. All consecutive siblings that aren't <figure>s (<para> or otherwise) should be in their own group. Michael's solution works, but I am having trouble getting my head around the logic. Thank you Martin and Michael for the quick replies. . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:05:59 PM

Try group-adjacent="concat(local-name(), if (self::figure) then position() else 0))" which will work for your example though it may not match your general intent... Michael Kay Saxonica > On 28 Mar 2018, at 16:53, Rick Quatro rick@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxx . . . Read full entry »


Re: for-each-group

Posted 3/28/2018 4:00:55 PM

On 28.03.2018 17:53, Rick Quatro rick@xxxxxxxxxxxxxx wrote: I have a <step> element that looks something like this: <steps> <step> <para>Intro stuff</para> <para>More intro stuff</para> <figure/> <figure/> < . . . Read full entry »


for-each-group

Posted 3/28/2018 3:52:47 PM

Hi All, I have a <step> element that looks something like this: <steps> <step> <para>Intro stuff</para> <para>More intro stuff</para> <figure/> <figure/> <para>Conclusion stuff</para> <para . . . Read full entry »


Re: FOSI SGML Information!

Posted 3/28/2018 2:57:13 PM

https://www.balisage.net/Proceedings/vol17/print/Harvey01/BalisageVol17-Harvey01.html provides some history for FOSI On 28 March 2018 at 05:56, Rahul Singh rahulsinghindia15@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi, > > I am new for SGML and FOSI. How that i . . . Read full entry »


Re: FOSI SGML Information!

Posted 3/28/2018 9:51:21 AM

On 2018-03-28 05:57:03+01:00 Rahul Singh rahulsinghindia15@xxxxxxxxx wrote: I am new for SGML and FOSI. How that is working. What is the role of FOSI. See http://xml.silmaril.ie/style.html  there are still legacy applications written in SGML using FOSI but as far as I know there are no new ones . . . Read full entry »


FOSI SGML Information!

Posted 3/28/2018 4:56:35 AM

Hi, I am new for SGML and FOSI. How that is working. What is the role of FOSI. Like, i have DTD/XSD, based on that i can define XML and by XSLT we can convert 1 xml to another. So i need to know what FOSI is doing. Is FOSI is same what DTD is doing. If someone have some fundamental document of F . . . Read full entry »


Re: Re: Porter stemmer in XSLT?

Posted 3/21/2018 5:09:06 AM

On Tue, Mar 20, 2018 at 11:14 PM, Martin Holmes gtxxgm-xsl-list-2@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I'm thinking that it would be a useful exercise for me to write one myself > if none exists. I've used the Java implementation before, but it's one more > . . . Read full entry »


Re: xmllint and paragraph line width

Posted 3/20/2018 8:38:30 PM

On 19/03/18 21:12, Dave Pawson dave.pawson@xxxxxxxxx wrote: Yes it does Peter? http://xmlsoft.org/xmllint.html --format option? That appears to be syntactical indentation, but it won't [re-]break the lines as far as I can make out. ///Peter . . . Read full entry »


Re: Porter stemmer in XSLT?

Posted 3/20/2018 5:44:48 PM

Hi Mukul, I'm thinking that it would be a useful exercise for me to write one myself if none exists. I've used the Java implementation before, but it's one more level of complexity, and I don't see why it couldn't be done in XSLT. It would be handy to have. Cheers, Martin On 2018-03-20 02:01 A . . . Read full entry »


[ann] oXygen XML Editor version 20

Posted 3/20/2018 10:14:05 AM

Hi all, I am happy to announce that version 20 of oXygen XML Editor is available from http://www.oxygenxml.com In version 20 we added a number of XSLT related improvements that I will try to highlight below. For the complete release notes please see https://www.oxygenxml.com/xml_editor/whatisne . . . Read full entry »


Re: Porter stemmer in XSLT?

Posted 3/20/2018 9:01:07 AM

Hi Martin, I've just reviewed the languages in which "Porter stemmer" is already available (from the link you've provided). It seems XSLT implementation is yet not available. I can write this for somebody in XSLT 2.0 or 1.0, as a freelance activity for a small payment. If that sounds . . . Read full entry »


Re: xmllint and paragraph line width

Posted 3/19/2018 10:47:52 PM

On Mon, 2018-03-19 at 15:39 +0000, Jeffrey Walton noloader@xxxxxxxxx wrote: > Hi Everyone, > > We run our book source through xmllint before making the book and > checking in sources to version control. > > We would like to format the sources so paragraphs have a break at 80 > . . . Read full entry »


Re: xmllint and paragraph line width

Posted 3/19/2018 9:12:06 PM

Yes it does Peter? http://xmlsoft.org/xmllint.html --format option? regards On 19 March 2018 at 18:04, peter@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On 2018-03-19 15:39, Jeffrey Walton noloader@xxxxxxxxx wrote: >> >> Hi Everyone, >> >> We r . . . Read full entry »


Re: xmllint and paragraph line width

Posted 3/19/2018 6:04:02 PM

On 2018-03-19 15:39, Jeffrey Walton noloader@xxxxxxxxx wrote: Hi Everyone, We run our book source through xmllint before making the book and checking in sources to version control. We would like to format the sources so paragraphs have a break at 80 or 90 chracters. The line breaks make it easier . . . Read full entry »


Porter stemmer in XSLT?

Posted 3/19/2018 4:44:27 PM

Hi all, Does anyone know of a Porter Stemmer written in XSLT? There isn't one listed on the official page: <https://tartarus.org/martin/PorterStemmer/> Cheers, Martin . . . Read full entry »


xmllint and paragraph line width

Posted 3/19/2018 3:38:56 PM

Hi Everyone, We run our book source through xmllint before making the book and checking in sources to version control. We would like to format the sources so paragraphs have a break at 80 or 90 chracters. The line breaks make it easier on version control tools like Git, and make it easier to see . . . Read full entry »


Re: Kernow and SaxonPE

Posted 3/19/2018 1:41:13 PM

Hi Andrew, Thank you very much for your reply. I followed your steps but couldn't get it to work with Saxon 9.8 PE but I was able to get it to work for Saxon 9.5 PE. Thank you very much. Rick From: Andrew Welch andrew.j.welch@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: . . . Read full entry »


Re: Kernow and SaxonPE

Posted 3/19/2018 1:31:18 PM

Hi, To use Saxon PE or EE with Kernow, in the kernow/lib directory replace the saxon9he.jar with the EE or PE jar, and place your license alongside the Kernow.bat file (in the parent of the lib directory). Then start Kernow using that Kernow.bat file (or the Kernow.sh on linux). You can tweak tho . . . Read full entry »


Re: How to suppress vertical whitespace from <indexter

Posted 3/16/2018 8:08:09 AM

Better answers at https://docbook.org/guidelines HTH On 15 March 2018 at 23:14, Jeffrey Walton noloader@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi Everyone, > > I have a DocBook v4.5 book at > https://github.com/noloader/POWER8-crypto . I am use Ubuntu 16.04 . . . Read full entry »


How to suppress vertical whitespace from <indexterm>

Posted 3/15/2018 11:14:31 PM

Hi Everyone, I have a DocBook v4.5 book at https://github.com/noloader/POWER8-crypto . I am use Ubuntu 16.04 with: $ xsltproc --version Using libxml 20903, libxslt 10128 and libexslt 817 xsltproc was compiled against libxml 20903, libxslt 10128 and libexslt 817 libxslt 10128 was c . . . Read full entry »


Kernow and SaxonPE

Posted 3/14/2018 3:31:29 PM

Hello All, I am hoping that this is not terribly off topic, but I have an XML to HTML5 workflow using XSLT 2. I am using Kernow 1.8 on Windows 7 to generate the output. One of my output files is a .js file for navigation. Some of the entries are long and breaking across lines as Saxon serialize . . . Read full entry »


AW: ordered selection of child elements

Posted 3/9/2018 10:52:26 AM

My question should probably have been bWhat did I miss that my expectation didnbt match my observation?b However, knowing more about the background for design decisions always improves my understanding of XSLT. So thanks for this as well. Regards, Patrik ------------------------------------ . . . Read full entry »


overlap of big data technologies with XSLT 3.0 streami

Posted 3/9/2018 6:44:14 AM

Hi all, Does anyone see any overlap of the capabilities, offered by big data technologies (like hadoop, hdfs etc) with the capabilities of XSLT 3.0 streaming. The advantage of XSLT 3.0 I see in this area are: 1) To consume large XML data, XSLT 3.0 is much better since XSLT (3.0) is designed to . . . Read full entry »


Re: ordered selection of child elements

Posted 3/8/2018 9:32:05 AM

When people ask "why?" I'm never sure whether they mean (a) where in the spec does it say this should happen?, or (b) why was the spec written this way? The second question can then be interpreted as either (b1) as a matter of historical record, when was the decision made and what arg . . . Read full entry »


AW: ordered selection of child elements

Posted 3/8/2018 7:40:53 AM

Thanks to both of you for the explanations. And indeed, using "!" works fine for me. Regards, Patrik > ------------------------------------------------------------------ Systemarchitektur & IT-Projekte Tel: +49 40 33449-1142 Fax: +49 40 33449-1400 E-Mail: mailto:Patrik.Stellmann@ . . . Read full entry »


Re: ordered selection of child elements

Posted 3/8/2018 7:06:40 AM

As to Patrikbs question bwhyb? 1. bWhyb in the sense of bwhere is this behavior specified?b https://www.w3.org/TR/xpath-31/#id-path-operator If every evaluation of E2 returns a (possibly empty) sequence of nodes, these sequences are combined, and duplicate nodes are eliminated based on . . . Read full entry »


Re: ordered selection of child elements

Posted 3/8/2018 7:02:41 AM

Am 08.03.2018 um 07:36 schrieb Dr. Patrik Stellmann patrik.stellmann@xxxxxxxxx: > > Hi, > > a question more motivated by curiosity than by a real problem: > > With > > <xsl:sequence select=ba, bb/> > > I will get first element a and second element b b no matt . . . Read full entry »


Re: ordered selection of child elements

Posted 3/8/2018 6:54:06 AM

Am 08.03.2018 um 07:36 schrieb Dr. Patrik Stellmann patrik.stellmann@xxxxxxxxx: > > Hi, > > a question more motivated by curiosity than by a real problem: > > With > > <xsl:sequence select=ba, bb/> > > I will get first element a and second element b b no matt . . . Read full entry »


ordered selection of child elements

Posted 3/8/2018 6:36:15 AM

Hi, a question more motivated by curiosity than by a real problem: With <xsl:sequence select="a, b"/> I will get first element a and second element b - no matter of the order within the input document. But with <xsl:sequence select="root/(a, b)&quo . . . Read full entry »


Re: Working around immutable variables

Posted 3/3/2018 1:55:24 PM

On 2018-03-02 22:26:27+00:00 David Carlisle d.p.carlisle@xxxxxxxxx wrote: > My non-xsl mind wants to use a mutable variable: You should worry, your mind has been corrupted by exposure to unnatural imperative programming languages:-) Mmmm, <xsl:goto select="... ///Peter . . . Read full entry »


Re: Working around immutable variables

Posted 3/2/2018 10:25:59 PM

> My non-xsl mind wants to use a mutable variable: You should worry, your mind has been corrupted by exposure to unnatural imperative programming languages:-) If you were describing the problem to a human, you would not start with "initialize a variable $current_region" The XSLT ver . . . Read full entry »


Re: Working around immutable variables

Posted 3/2/2018 9:12:48 PM

Read up on "grouping". That is the declarative way to do what you want to do, rather than the imperative approaches you've described as considering. With grouping you don't need any mutable variables. For many imperative programmers, wrapping one's head around the declarative style can . . . Read full entry »


Re: Working around immutable variables

Posted 3/2/2018 9:12:25 PM

1. in XSLT 1.0: http://www.jenitennison.com/xslt/grouping/muenchian.html 2. XSLT 2.0 and above: a). https://www.w3.org/TR/xquery-operators/#func-distinct-values b). https://www.w3.org/TR/xslt20/#xsl-for-each-group Cheers, Dimitre On Fri, Mar 2, 2018 at 1:04 PM, Jacopille, David djacopille@xx . . . Read full entry »


Working around immutable variables

Posted 3/2/2018 9:04:48 PM

Hello, We have a for-each loop that constructs a table. The first column is a region that would normally look like the following b we would like to show the first region name only to avoid repetition. US US US US Europe Europe Europe Asia Asia My non-xsl mind wants to use a mutable variable: . . . Read full entry »


XSL-List Guidelines

Posted 3/2/2018 3:16:32 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 »


[ANN] Markup Vocabulary Ecosystems - Call for Partici

Posted 2/27/2018 11:10:59 PM

Symposium on Markup Vocabulary Ecosystems a Balisage pre-conference symposium Monday, 30 July 2018 CAMBRiA Hotel, Rockville, MD USA Successful shared markup vocabularies (tag sets, document types, schemas, call them what you will), far from being just lists of tags, are the centers of complex eco . . . Read full entry »


Re: Getting Unexpected Results from .//* = $set-of-el

Posted 2/24/2018 9:41:19 PM

I updated my code to use exists(. intersect $elements-to-keep/ancestor-or-self::*) and that definitely works and I like having a singleton on one side, but even my largest input document would not be large enough to show a significant performance benefit. Cheers, Eliot -- Eliot Kimber http://cont . . . Read full entry »


Re: Getting Unexpected Results from .//* = $set-of-el

Posted 2/24/2018 8:37:14 PM

Your requirement is IF any descendant of current element is in $elements-to-keep, process the current element and I suggested > select="exists(.//* intersect $elements-to-keep)" But I suspect the following would be better: > select="exists(. intersect $elements-to-keep/anc . . . Read full entry »


Re: Getting Unexpected Results from .//* = $set-of-el

Posted 2/24/2018 8:17:20 PM

So my misunderstanding of "=" is that it is comparing values, not nodes--I clearly never understood that properly. That then explains why an empty element would produce the results I was seeing: "" is equal to any other empty node. Doh! I will try Mike's intersection expressi . . . Read full entry »


Re: Getting Unexpected Results from .//* = $set-of-el

Posted 2/24/2018 12:39:11 AM

> On 24 Feb 2018, at 00:18, G. Ken Holman g.ken.holman@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Ignore that second expression ... I wrote it too hastily and I'm now back at my desk to think about it. > > This would work I think: > > <xsl:value-of . . . Read full entry »


Re: Getting Unexpected Results from .//* = $set-of-el

Posted 2/24/2018 12:18:15 AM

Ignore that second expression ... I wrote it too hastily and I'm now back at my desk to think about it. This would work I think: <xsl:value-of select="some $this in .//* satisfies some $that in $elements-to-keep satisfies $this is $that&quo . . . Read full entry »


Re: Getting Unexpected Results from .//* = $set-of-el

Posted 2/23/2018 11:36:37 PM

Your operands of "=" are nodes, and so you are checking the *value* of the elements when you say: .//* = $elements-to-keep I doubt you wanted the *value* (concatenated string of descendent text nodes), but you probably want the identity. For identity you could do something like: . . . Read full entry »


Getting Unexpected Results from .//* = $set-of-element

Posted 2/23/2018 11:10:03 PM

I'm implementing a filtering process where I want to filter out everything except the ancestors of specified elements (user provides a list of IDs to keep), as well as specific subelements of the ancestors (e.g., header elements within HTML sections). I'm using Saxon PE 9.7.0.19 (as included with . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/15/2018 3:33:46 PM

> On 15 Feb 2018, at 14:38, David Lee dlee@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > with nested tuples does this come close to structured types ? > The accessor syntax then becomes more relevant a.b.c (not an actual example) It's a shame that XML allows . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/15/2018 2:38:37 PM

with nested tuples does this come close to structured types ? The accessor syntax then becomes more relevant a.b.c (not an actual example) is this extension in saxon xquery? Sent from my iPhone > On Feb 11, 2018, at 4:21 AM, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxx . . . Read full entry »


Re: Using QNames as keys in maps

Posted 2/15/2018 9:51:00 AM

Am 15.02.2018 um 10:28 schrieb Erik Siegel erik@xxxxxxxxxxx: > > Im trying to set up a map(xs:QName, item()), in an XSLT 3.0 > stylesheet, but its very inconvenient. This works: > > (Running in oXygen 19.1 which reports Saxon 9.7.0.19, tried both PE > and EE) > > <xs . . . Read full entry »


Re: Using QNames as keys in maps

Posted 2/15/2018 9:50:56 AM

> But I would have expected this to work also (but it doesnbt): > > <xsl:template match="/"> > <xsl:variable name="qmap" as="map(xs:QName, item())" select="map{ Q{}xx: 'aaa' }"/> > <RESULT size="{map:size($qmap)}"& . . . Read full entry »


Using QNames as keys in maps

Posted 2/15/2018 9:27:49 AM

Hi, I'm trying to set up a map(xs:QName, item()), in an XSLT 3.0 stylesheet, but it's very inconvenient. This works: (Running in oXygen 19.1 which reports Saxon 9.7.0.19, tried both PE and EE) <xsl:template match="/"> <xsl:variable name="qmap" as="ma . . . Read full entry »


AW: Handling dependency hierarchy in stylesheets

Posted 2/13/2018 5:24:40 AM

Thanks for the explanations, Michael. So I will try again using packagesb& At least Ibm sure now I didnbt miss anything obvious. Regards, Patrik ------------------------------------------------------------------ Systemarchitektur & IT-Projekte Tel: +49 40 33449-1142 Fax: +49 40 33449 . . . Read full entry »


Re: Schema validation on a function parameter

Posted 2/12/2018 6:04:13 PM

> If you do this a lot you could also try > > <xsl:function name="my:validate" as="element(*, xs:anyType)"> > <xsl:param name="e" as="element()"/> > <xsl:variable name="e" as="schema-element(*, xs:anyType)" . . . Read full entry »


Re: Schema validation on a function parameter

Posted 2/12/2018 5:52:01 PM

Thank you Michael, With the copy and the function this will be quite transparent to the developers, meaning it's quite easy to validate params of a function. First time I need this actualy, but I'll consider moving this to a common function in our lib. Regards, Matthieu -----Message d'origine- . . . Read full entry »


Re: Schema validation on a function parameter

Posted 2/12/2018 5:18:21 PM

You can simplify it a little to <xsl:function name="my:function"> <xsl:param name="e" as="element()"/> <xsl:variable name="e" as="schema-element(my:element)"> <xsl:copy-of select="$e" validation="str . . . Read full entry »


Re: fn:document() cost

Posted 2/12/2018 12:30:54 PM

For BaseX XSLT see http://docs.basex.org/wiki/XSLT_Module Regards, Toon van Opstal On Mon, Feb 12, 2018 at 1:49 AM, t vo <toonvanopstal@xxxxxxxxx> wrote: > Try BaseX | The XML Database <http://basex.org/> > > On Mon, Feb 12, 2018 at 12:31 AM, Michael Kay mike@xxxxxxxxxxxx &l . . . Read full entry »


Schema validation on a function parameter

Posted 2/12/2018 12:07:22 PM

Hi ! I have a function which takes an element as parameter. I want to validate this element against an xsd schema type definition. I'm using XSLT 3.0 with a schema aware processor (SaxonEE 9.7.0.15) At first, I thought I only have to : <xsl:import-schema schema-location="my-schema.xsd&qu . . . Read full entry »


Re: fn:document() cost

Posted 2/12/2018 12:50:18 AM

Try BaseX | The XML Database <http://basex.org/> On Mon, Feb 12, 2018 at 12:31 AM, Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > The only way you can get definitive answers to performance questions is by > measuring it, but I would expect that . . . Read full entry »


Re: fn:document() cost

Posted 2/11/2018 11:30:55 PM

The only way you can get definitive answers to performance questions is by measuring it, but I would expect that combining several documents into one would increase your costs rather than decreasing them. Because multiple calls on document() with the same URI are required to return identical nodes . . . Read full entry »


fn:document() cost

Posted 2/11/2018 11:03:11 PM

XSL experts, I have to pull from several xml files. Would it be more efficient to combine all the xml into a single file first...or use fn:document() to specify the document context for each xpath statement. If Saxon's complier is savvy about only loading a document once in an XSL that specifies . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/11/2018 3:58:19 PM

On 11-Feb-2018 1:49 AM, "Dimitre Novatchev dnovatchev@xxxxxxxxx" < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: Agreed, but it would be good not to confuse the readers -- this video is *not* from XML Prague 2018 -- it is one ore two years old What got me excited, is the first . . . Read full entry »


Re: Handling dependency hierarchy in stylesheets

Posted 2/11/2018 9:37:47 AM

Your function-available() idea is neat but it doesn't work. Firstly you missed out the quotes > use-when="not(function-available('my:common-base-included'))" but more importantly, the static context for use-when does not include stylesheet functions so this will always be false. This . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/11/2018 9:21:32 AM

> On 10 Feb 2018, at 22:46, Alan Painter alan.painter@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Tuples!!!!! > For my ideas on tuples, see http://dev.saxonica.com/blog/mike/2016/09/tuple-types-and-type-aliases.html Much of this is quietly implemented as an e . . . Read full entry »


Handling dependency hierarchy in stylesheets

Posted 2/11/2018 9:16:25 AM

Hi, I have multiple small utility xslt files that I use in several other stylesheets with xsl:include - which works fine when there is a very flat hierarchy. But I found no comfortable way with a scenario like this: - common-base.xsl has no dependencies. - common-1.xsl and common2.x . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/11/2018 3:21:49 AM

On Sun, 2018-02-11 at 01:29 +0000, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote: > If there are no new standards then logically we will see new > extensions appearing -- often overlapping or even conflicting -- and > the resulting problems (confusion, difficult to choose) are not good > . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/11/2018 1:28:50 AM

> Of course, there are things I would still like to do: tuples, named type aliases, array constructors, for example. > But there are diminishing returns in adding things, especially when the number of implementors has dropped to one or two. All of these are valuable features -- I remember di . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/10/2018 10:46:38 PM

Tuples!!!!! On Sat, Feb 10, 2018 at 11:44 PM, Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > > Agreed, but it would be good not to confuse the readers -- this video > > is *not* from XML Prague 2018 -- it is one ore two years old. &g . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/10/2018 10:44:53 PM

> Agreed, but it would be good not to confuse the readers -- this video > is *not* from XML Prague 2018 -- it is one ore two years old. Yes, thank you for pointing this out to people. > > Someone, please, correct me if I am wrong: it seems that at this > year's XML Prague 2018 ther . . . Read full entry »


Re: Watch "Michael Kay (Saxonica): Standards update: X

Posted 2/10/2018 8:19:11 PM

Agreed, but it would be good not to confuse the readers -- this video is *not* from XML Prague 2018 -- it is one ore two years old. Someone, please, correct me if I am wrong: it seems that at this year's XML Prague 2018 there was no Standards Update by Dr. Kay -- right or wrong? At least such up . . . Read full entry »


Watch "Michael Kay (Saxonica): Standards update: XSLT

Posted 2/8/2018 4:27:02 PM

https://youtu.be/182g7ql2DEM Sharing a nice talk by Dr. Kay. Regards, Mukul Sent from my phone . . . Read full entry »


[ANN] Call for Participation: Balisage 2018

Posted 2/5/2018 8:42:19 PM

Balisage: The Markup Conference 2018 July 31 b 3, 2018, Rockville, MD (a suburb of Washington, DC) July 30, 2018 b Pre-conference Symposium - Topic to be announced https://www.balisage.net/ Are you interested in open information, reusable documents, and vendor and application independence? Then . . . Read full entry »


Re: Hints on http POST

Posted 2/2/2018 6:56:00 PM

Not for POST though, I believe. POSTing was Wendellbs original desire, as expressed in the subject. On 02/02/2018 19:49, Michael Kay mike@xxxxxxxxxxxx wrote: On 2 Feb 2018, at 18:04, C. Edward Porter cep@xxxxxxx <mailto:cep@xxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx <mailt . . . Read full entry »


Re: Hints on http POST

Posted 2/2/2018 6:49:48 PM

> On 2 Feb 2018, at 18:04, C. Edward Porter cep@xxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Wendell, > > If youbre using Saxon, you could write a simple class to do the HTTP request and return the results. Therebs a stack overflow thread on this:https://stack . . . Read full entry »


Re: Hints on http POST

Posted 2/2/2018 6:19:11 PM

Excellent leads, thanks! I'll probably look at EXPath first, but BaseX is also a possibility -- Cheers, Wendell On Fri, Feb 2, 2018 at 1:06 PM, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On 02.02.2018 18:29, Wendell Piez wapiez@xxxxxxxxxxxxxxx . . . Read full entry »


Re: Hints on http POST

Posted 2/2/2018 6:06:10 PM

On 02.02.2018 18:29, Wendell Piez wapiez@xxxxxxxxxxxxxxx wrote: I have a need to procure a little bit of XML from a web service running locally. To get it (once) from curl is easy: curl -X POST -d "My string goes in here" localhost:8888/do/me But I need to call it many many times, which . . . Read full entry »


Re: Hints on http POST

Posted 2/2/2018 6:03:54 PM

Wendell, If youbre using Saxon, you could write a simple class to do the HTTP request and return the results. Therebs a stack overflow thread on this: https://stackoverflow.com/questions/12761744/call-java-instance-methods-in-xs lt -Edward From: Lizzi, Vincent vincent.lizzi@xxxxxxxxxxxxxxxxxxx . . . Read full entry »


Re: Hints on http POST

Posted 2/2/2018 5:55:52 PM

Hi Wendell, I wish I had the answer, as there are situations where being able to make non-trivial HTTP calls from within XSLT would be useful. I can offer what has worked for me, which is essentially to use XQuery to run the XSLT and make the HTTP requests. Have a look at http://docs.basex.org/wi . . . Read full entry »


Hints on http POST

Posted 2/2/2018 5:28:59 PM

XSL friends, I have a need to procure a little bit of XML from a web service running locally. To get it (once) from curl is easy: curl -X POST -d "My string goes in here" localhost:8888/do/me But I need to call it many many times, which I would naturally like to do from inside my trans . . . Read full entry »


Re: Is split problem a grouping problem?

Posted 2/2/2018 1:45:31 PM

Thank you Terry for getting me started. Here is my solution: <?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 . . . Read full entry »


Re: Is split problem a grouping problem?

Posted 2/2/2018 2:12:55 AM

Rick, From the rules this does not look like a grouping problem but rather each section drives a file and get what it needs. Think this is close. Fro <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns: . . . Read full entry »


Is split problem a grouping problem?

Posted 2/1/2018 9:05:20 PM

Hi, I am trying to solve a problem using XSLT 2. Here is my input: <?xml version="1.0" encoding="UTF-8"?> <book> <chapter> <title>Chapter 1</title> <section> <title>Section 1.1</title> </ . . . Read full entry »


Re: Prince XML vs Docbook

Posted 2/1/2018 8:15:43 PM

Eliot and XSL-List, On Thu, Jan 18, 2018 at 12:06 PM, Eliot Kimber ekimber@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Itbs also a problem that therebs currently no sufficiently-complete or > stable pure open-source implementation of CSS pagination, something > . . . Read full entry »


XSL-List Guidelines

Posted 2/1/2018 4:44:10 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: Prince XML vs Docbook

Posted 1/19/2018 4:41:27 PM

That would be much appreciated Eliot. regards On 19 January 2018 at 15:27, Eliot Kimber ekimber@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I was thinking about the how-to knowledge issue and the need to write something last night and I realized that as part of the wo . . . Read full entry »


Re: Prince XML vs Docbook

Posted 1/19/2018 3:27:18 PM

I was thinking about the how-to knowledge issue and the need to write something last night and I realized that as part of the work I'm doing now I will need to capture the basic how-to of CSS pagination in any case so I might as well do in a publicly-available form. Cheers, E. -- Eliot Kimber htt . . . Read full entry »


Re: Prince XML vs Docbook

Posted 1/18/2018 9:02:46 PM

On Thu, 2018-01-18 at 18:15 +0000, Eliot Kimber ekimber@xxxxxxxxxxxx wrote: > I would disagree with your assessment that CSS pagination is not > easier than FO *if* there was appropriate how-to guidance available. We did a poor job (collectively) at tutorials and outreach for XML technology, . . . Read full entry »


Re: Using saxon:parse on processing instructions

Posted 12/18/2017 10:59:18 PM

That did it, thank you so much Martin for the help. Cheers, Spencer On Mon, Dec 18, 2017 at 2:13 PM, Martin Honnen martin.honnen@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On 18.12.2017 21:18, Spencer Tickner spencertickner@xxxxxxxxx wrote: > >> Hello and thank . . . Read full entry »


Re: Using saxon:parse on processing instructions

Posted 12/18/2017 10:13:22 PM

On 18.12.2017 21:18, Spencer Tickner spencertickner@xxxxxxxxx wrote: Hello and thanks in advance for the help. I'm scratching my head on trying to convert a string of serialized xml in a processing instruction back into XML. I'm restricted to XSLT 2.0 and am using Saxon 9.1. When I treat the si . . . Read full entry »


Using saxon:parse on processing instructions

Posted 12/18/2017 8:18:10 PM

Hello and thanks in advance for the help. I'm scratching my head on trying to convert a string of serialized xml in a processing instruction back into XML. I'm restricted to XSLT 2.0 and am using Saxon 9.1. When I treat the simply copy and past the xml into the stylesheet everything works (see var . . . Read full entry »


XSL-List Guidelines

Posted 12/2/2017 1:11:45 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: n-tuple sequences, the constraints they must satis

Posted 11/24/2017 9:26:16 PM

Hello, I don't want to leave a false statement here. Constraints 3 and 4 are NOT enough to restrict the value set. The induction base as well as the definition of value range and definition range is missing for this proof to be complete. I wrote a working induction proof, if anyone is interest . . . Read full entry »


Re: n-tuple sequences, the constraints they must satis

Posted 11/23/2017 11:00:37 PM

Conditions 1-3 wouldn't work on their own. i.e. one could introduce items that do not belong to the original set. So one additional constraint has to check that. every $s in $sequences[item] satisfies ( B B B every $item in $s/item satisfies ( B B B B B B some $i in $set satisfies deep-equal( . . . Read full entry »


[ANN] Reminder: XML Prague 2018 - Call for Proposals

Posted 11/23/2017 4:40:32 PM

Hello, there are still seven days to submit your proposal for XML Prague. 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 Thursday, Friday and Saturday (February 8-10, 2018), located at the Uni . . . Read full entry »


Re: n-tuple sequences, the constraints they must satis

Posted 11/22/2017 7:38:02 PM

your condition 4 is the most complicated and I don't think you need it, given conditions 1-3 you just need to say that no two of your sequences are deep-equal. David On 22 November 2017 at 18:53, Costello, Roger L. costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi . . . Read full entry »


n-tuple sequences, the constraints they must satisfy,

Posted 11/22/2017 6:53:46 PM

Hi Folks, Thank you for your help this past week in answering my question about sequences. Below is a description of the sequences, the constraints they must satisfy, and XPath expressions for implementing the constraints. /Roger Problem: Sometimes you want all possible sequences of elements of . . . Read full entry »


Re: How to compare two sequences, where order matters

Posted 11/21/2017 11:42:15 PM

The deep-equal() function MIGHT meet your requirement. But your requirement isn't described in enough detail to be sure (you've only specified it by showing examples of some operands that are equal and some that aren't). For a full specification you need to say how to handle comments, whitespace, i . . . Read full entry »


Re: How to compare two sequences, where order matters

Posted 11/21/2017 11:27:41 PM

deep-equal? On 21 November 2017 at 17:21, Costello, Roger L. costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi Folks, > > Consider this XML: > > <sequences> > <sequence/> > <sequence> > <item>A</item> . . . Read full entry »


How to compare two sequences, where order matters and

Posted 11/21/2017 11:21:08 PM

Hi Folks, Consider this XML: <sequences> <sequence/> <sequence> <item>A</item> </sequence> <sequence> <item>B</item> </sequence> <sequence> <item>A</item> <item . . . Read full entry »


Re: XPath expression which expresses sequence-extended

Posted 11/21/2017 9:59:29 PM

On 21 November 2017 at 13:08, Costello, Roger L. costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > David Carlisle wrote: > > > >> why? > > > > What I mean is that this expression: > > > > $sequence-extended/item = ($sequence/item, . . . Read full entry »


Re: XPath expression which expresses sequence-extended

Posted 11/21/2017 7:56:09 PM

> returns false when $sequence is empty (and the other variables have the values I described). why? . . . Read full entry »


Re: XPath expression which expresses sequence-extended

Posted 11/21/2017 7:08:41 PM

David Carlisle wrote: > why? What I mean is that this expression: $sequence-extended/item = ($sequence/item, $item) returns false when $sequence is empty (and the other variables have the values I described). /Roger . . . Read full entry »


Re: XPath expression which expresses sequence-extended

Posted 11/21/2017 6:57:21 PM

> But, the XPath expression fails when $sequence is empty: why? . . . Read full entry »


XPath expression which expresses sequence-extended =

Posted 11/21/2017 6:51:10 PM

Hi Folks, Consider this XML: <sequences> <sequence> <item>A</item> </sequence> <sequence> <item>A</item> <item>B</item> </sequence> </sequences> Suppose that $sequence-extended has thi . . . Read full entry »


Re: Adjacent grouping?

Posted 11/20/2017 10:39:10 AM

Hi Martin, Many thanks again for your help. Those minor adjustments have opened my eyes a little more. Thanks so much. Rustle . . . Read full entry »


Re: XPath expression to express: There must be an empt

Posted 11/19/2017 7:47:59 PM

Hello Roger, I understand - taking your last question into account where you wanted to generate the sequences - that you want the XSLT rules to verify, if some set of sequences is a solution for the combinatorical problem: For the set S with m elements list the n-tuples for n := [0, m] (https:/ . . . Read full entry »


Re: XPath expression to express: There must be an empt

Posted 11/19/2017 6:49:23 PM

sequence[not(item)] Assume that the root element, <sequences>, is the context node. Is that the right way to express the rule? It's Ok, arguably sequence[empty(item)] is more direct (as it relies less on the implicit boolean value of a list of items) but it's same thing really (I tend to . . . Read full entry »


XPath expression to express: There must be an empty s

Posted 11/19/2017 6:38:20 PM

Hi Folks, I have a set: <set> <element>A</element> <element>B</element> </set> Here are some sequences derived from the set: <sequences> <sequence/> <sequence> <item>A</item> </sequence> < . . . Read full entry »


Re: Re: Adjacent grouping?

Posted 11/19/2017 2:00:39 PM

On 19.11.2017 14:38, rus tle profrustyleafiii@xxxxxxxxxxx wrote: Hi Michael, I have actually hit a further snag with this solution. It appears to work well when all the content nodes have the same parent node as in the original question. However, on coming to apply this solution to my real worl . . . Read full entry »


Re: Adjacent grouping?

Posted 11/19/2017 1:38:27 PM

Hi Michael, I have actually hit a further snag with this solution. It appears to work well when all the content nodes have the same parent node as in the original question. However, on coming to apply this solution to my real world scenario each content node is actually a child of itbs own p nod . . . Read full entry »


Re: Adjacent grouping?

Posted 11/19/2017 9:44:55 AM

Hi Martin, Your Xquery solution has taken me into new territory. I feel the calling to explore further. Many thanks for your time, Rustle . . . Read full entry »


Re: Adjacent grouping?

Posted 11/19/2017 9:42:15 AM

Hi Michael, Many thanks for your input. Your XSLT 3.0 solution worked very well. It took me a little while to work out due to a wee typo in line 4: changed @previous to $previous. Not even close to mastering XSLT 2.0 but this leads nicely into learning more about about XSLT 3.0. Many thanks again, . . . Read full entry »


Re: Generate sequences of the permutations of a set

Posted 11/18/2017 9:57:51 PM

I'd probably avoid string operations until the end, this implements it essentially as counting base $b except using digits 1-n not 0-n the, then just replaces the numeric digits by the values from the elements (the alphabet $a) <xsl:stylesheet version="2.0" xmlns:xsl="http://www . . . Read full entry »


Re: Generate sequences of the permutations of a set

Posted 11/18/2017 8:01:14 PM

Hi David, > I think you want all non-empty sequences > of length n using items from a set of size n? Wonderful! That is a perfect description of what I want. I was struggling to find the right words. You nailed it David! /Roger -----Original Message----- From: David Carlisle d.p.carlisle . . . Read full entry »


Re: Generate sequences of the permutations of a set

Posted 11/18/2017 7:54:48 PM

can you clarify what you mean by "permutation" here? You don't seem to be using the normal mathematical or English meaning you would not normally consider AAA to be a permutation of ABC? I think you want all non empty sequences of length n using items from a set of size n? On 18 Novembe . . . 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 XQuery in 10 Minutes!

Say goodbye to 10-minute abs, and say Hello to "Learn XQuery in Ten Minutes!", the world's fastest and easiest XQuery primer, now available for free!

Why Pay More for XML Tools?

With Stylus Studio® X14 XML Enterprise Suite, you get the most comprehensive XML tool suite at one incredibly low price. Value: it's just one of many reasons why smart XML developers are choosing Stylus Studio!

 
Free Stylus Studio XML Training:
W3C Member