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!


XSL-List Guidelines

Posted 8/1/2018 1:25:01 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 »


Fwd: Your posting to XSL-List

Posted 7/21/2018 3:33:44 PM

Hi Experts, I need to print a newline character in text file generated from XSLT. I have to use this text output in SAP environment. As per my understanding we have to use &#xD;&#xA; for this. Below is the XSLT 2.0 code that i am using but it is not giving me the required output:- <?x . . . Read full entry »


Re: Techniques for Sorting and Reducing Maps in XSLT

Posted 7/19/2018 1:19:33 PM

Looks good. Don't forget that map:get(., 'version') can be written ?version and > $courses-for-locale ! > (if (map:get(., 'version') eq $highest-version) > then . > else () can be written $courses-for-locale[?version eq $highest-versi . . . Read full entry »


Re: Techniques for Sorting and Reducing Maps in XSLT

Posted 7/19/2018 12:15:57 PM

Here is my current solution, which is definitely an improvement over my earlier solution. I hadnbt realized (or it didnbt occur to me) that I could use for-each-group on maps. Using for-each-group and grouping by a specific field is certainly easy and straightforward: For this data, the paths . . . Read full entry »


Re: difficulty using xsl:analyze-string

Posted 7/18/2018 10:51:29 AM

Thanks, Mike for the thoughts. On Wed, Jul 18, 2018 at 3:48 PM, Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Note that you can achieve what you are doing in 3.0 using the > unparsed-text-lines() function, and in 2.0 it can be done more simply using . . . Read full entry »


Re: difficulty using xsl:analyze-string

Posted 7/18/2018 10:18:51 AM

Note that you can achieve what you are doing in 3.0 using the unparsed-text-lines() function, and in 2.0 it can be done more simply using tokenize() -- 3.0 with expand-text=yes <xsl:for-each select="unparsed-text-lines('test.txt')">{.}<br/></xsl:for-each> 2.0: <xs . . . Read full entry »


Re: difficulty using xsl:analyze-string

Posted 7/18/2018 10:17:23 AM

> Its worth mentioning about the regex in the xsl:analyze-string above. I'm now reading the input for xsl:analyze-string from a text file (the line delimiter is \r\n on windows), and don't have to write \\ in the regex. And that makes me understand your point, "that example is matching a ne . . . Read full entry »


Re: difficulty using xsl:analyze-string

Posted 7/18/2018 10:06:05 AM

Thanks, David for the clarifications. My modified XSLT transform is following, <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output me . . . Read full entry »


Re: difficulty using xsl:analyze-string

Posted 7/18/2018 6:54:14 AM

On 18 July 2018 at 07:39, Mukul Gandhi gandhi.mukul@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On Wed, Jul 18, 2018 at 11:35 AM, Liam R. E. Quin liam@xxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: >> >> Remember that \ isn't special in XML . . . Read full entry »


Re: difficulty using xsl:analyze-string

Posted 7/18/2018 6:39:55 AM

On Wed, Jul 18, 2018 at 11:35 AM, Liam R. E. Quin liam@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Remember that \ isn't special in XML or XPath strings, so your string > contains literal backslashes followed by lower case n. In a regular > expression \ is special how . . . Read full entry »


Re: difficulty using xsl:analyze-string

Posted 7/18/2018 6:05:39 AM

On Wed, 2018-07-18 at 05:34 +0000, Mukul Gandhi gandhi.mukul@xxxxxxxxx wrote: > [...] > <xsl:analyze-string select="'hello world\nexperimenting > with > XSLT\nhow are you'" regex="\n"> Remember that \ isn't special in XML or XPath strings, so you . . . Read full entry »


difficulty using xsl:analyze-string

Posted 7/18/2018 5:33:53 AM

Hi all, I'm trying to run a small XSLT 2.0 stylesheet, using Saxon-EE 9.7.0.19 embedded in Oxygen XML Editor. I'm having some difficulty using the xsl:analyze-string instruction. My current XSLT 2.0 transform is, <?xml version="1.0" encoding="UTF-8"?> <xsl:styleshe . . . Read full entry »


[ANN] Balisage 2018 Program updated with Late-breaking

Posted 7/16/2018 7:42:51 PM

The Balisage 2018 program has been enhanced with late-breaking presentations. Take a look at the program: https://www.balisage.net/2018/Program.html The 2018 program includes papers that reflect and look forward, and that discuss the use of markup to: manage documentation, visualize large XML data . . . Read full entry »


Re: Techniques for Sorting and Reducing Maps in XSLT

Posted 7/7/2018 6:01:13 AM

On Fri, Jul 6, 2018 at 9:58 PM, Liam R. E. Quin liam@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On your xsl:iterate question, i'd generally try for-each and/or for- > each-group before xsl:iterate. The reason is largely that i think it > encourage thinking in terms o . . . Read full entry »


Re: Techniques for Sorting and Reducing Maps in XSLT

Posted 7/6/2018 4:28:15 PM

On Thu, 2018-07-05 at 20:51 +0000, Eliot Kimber ekimber@xxxxxxxxxxxx wrote: > [...] > maps seem like an obvious way to do this: > > 1. Use Saxon's collection() function with the metadata=yes option to > get a set of maps, one for each file, that includes the full path to > the f . . . Read full entry »


Re: Techniques for Sorting and Reducing Maps in XSLT

Posted 7/6/2018 11:16:53 AM

On Fri, Jul 06, 2018 at 08:46:47AM -0000, Dave Pawson dave.pawson@xxxxxxxxx scripsit: > Quite different reasons, I needed to play with a directory structure. > >ls dir > x.txt > Then read that directory using XSLT unparsed text > and play with it using XSLT tools? > Bit easie . . . Read full entry »


Re: Techniques for Sorting and Reducing Maps in XSLT

Posted 7/6/2018 8:46:40 AM

Quite different reasons, I needed to play with a directory structure. >ls dir > x.txt Then read that directory using XSLT unparsed text and play with it using XSLT tools? Bit easier, or are you limited to XSLT only? HTH On 5 July 2018 at 21:50, Eliot Kimber ekimber@xxxxxxxxxxxx <xsl-l . . . Read full entry »


Re: Techniques for Sorting and Reducing Maps in XSLT

Posted 7/5/2018 9:33:55 PM

here's a map free xslt 2 version for comparison $ saxon9 -it:main zz.xsl ### C processing file:/C:/tmp/ek1/A/B/C/en/1.2/foo.xml processing file:/C:/tmp/ek1/A/B/C/fr/1.3/foo.xml ### D processing file:/C:/tmp/ek1/A/B/D/en/1.4/foo.xml processing file:/C:/tmp/ek1/A/B/D/fr/1.3/foo.xml <xsl . . . Read full entry »


Techniques for Sorting and Reducing Maps in XSLT 3/XPa

Posted 7/5/2018 8:50:32 PM

I need to process a set of documents organized into directories where for a given parent directory there may be any number of subdirectories representing multiple versions of the same logical artifact, where the directory name reflects the versions, e.g.: /A/B/C/en/1.0/foo.xml /A/B/C/en/1.2/foo.xm . . . Read full entry »


Re: [XSL-FO] Linebreaks on a page break (linefeed-tre

Posted 7/5/2018 5:43:32 AM

Hello guys, So I did a recursive named template with the code below and the line-breaks are effectively transformed. I still had the problem though but because my empty blocks were in a <fo:inline> node. I removed the inline node and now it's working! Thanks a lot for your help! For further . . . Read full entry »


Re: XSLT 2+ Options for PHP?

Posted 7/3/2018 2:51:14 PM

The Saxon-C support for PHP certainly looks like just what I want. Cheers, E. -- Eliot Kimber http://contrext.com o;?On 7/3/18, 9:43 AM, "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: On 03.07.2018 16:40, Eliot Kimber ekimber@xxxxxxxxx . . . Read full entry »


Re: XSLT 2+ Options for PHP?

Posted 7/3/2018 2:50:05 PM

Saxon/C is based on the Java source code of Saxon, compiled using Excelsior JET into a native executable (e.g. DLL) so there is no remaining dependency on a Java compiler or run-time (at any rate, any vestigial Java technology is well hidden). It has a PHP front-end. There's no run-time bridge invo . . . Read full entry »


Re: XSLT 2+ Options for PHP?

Posted 7/3/2018 2:43:07 PM

On 03.07.2018 16:40, Eliot Kimber ekimber@xxxxxxxxxxxx wrote: I'm tasked with implementing a non-trivial XSLT transform (needs to read multiple docs and produce multiple HTML result files) within a PHP-based system. I have zero experience with PHP so kind of shooting in the dark here. I know that . . . Read full entry »


XSLT 2+ Options for PHP?

Posted 7/3/2018 2:39:46 PM

I'm tasked with implementing a non-trivial XSLT transform (needs to read multiple docs and produce multiple HTML result files) within a PHP-based system. I have zero experience with PHP so kind of shooting in the dark here. I know that PHP uses libxml natively and so only provides XSLT 1 support . . . Read full entry »


XSL-List Guidelines

Posted 7/2/2018 4:33:08 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: [XSL-FO] Linebreaks on a page break (linefeed-tre

Posted 7/2/2018 8:01:05 AM

On 2018-07-02 08:31:06+01:00 Mathias Leclercq mathias.leclercq@xxxxxxxxx wrote: Someone suggested me to replace linefeed characters in my text area with an empty block &lt;fo:block&gt;&lt;/fo:block&gt;. Problem is, I don't know what character to look for (xml is encoded in utf-8 on . . . Read full entry »


Re: [XSL-FO] Linebreaks on a page break (linefeed-tre

Posted 7/2/2018 7:30:30 AM

Hello everyone, It turns out, it's not exactly what I described in my first message that's causing the issue but more the fact that a linefeed is spanning two pages with different left-right margin layouts. It's seems to be an issue with FOP : - https://issues.apache.org/jira/browse/FOP-2716?jql=p . . . Read full entry »


Re: [XSL-FO] Linebreaks on a page break (linefeed-tre

Posted 6/28/2018 2:06:44 PM

Hello Peter, Unfortunately, I'm stuck with the FO. The third-party program that generates the XML based on users' input (in forms) only accepts XSL files to output PDF and it works with FOP and who-know-what XSLT engine. The users don't have access to other programs but that one so I cannot bypas . . . Read full entry »


Re: [XSL-FO] Linebreaks on a page break (linefeed-tre

Posted 6/28/2018 12:49:25 PM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Is there a problem somewhere in my code? is it related to the FOP > processor? I can provide with the complete files if necessary Most likely this is bug in FOP as reasonable software should not fail with NPE. I would suggest using more recent . . . Read full entry »


[XSL-FO] Linebreaks on a page break (linefeed-treatmen

Posted 6/28/2018 6:33:16 AM

Hi everyone, I'm using XSL-T and XSL-FO to produce PDF (A4) reports using data from forms filled by user in a third-party software (that output XML). Users can have any sorts of input, included large text area they can fill as they want (no control over the content size). ------------------------ . . . Read full entry »


Re: XSLT1.0 distinct list of attributes across several

Posted 6/27/2018 9:51:51 PM

Thanks David Worked great! a Segerdahl company Mark Anderson Director of ERP Systems Phone: 847-419-3329 Mobile: 13125764332 Email: mark.anderson@xxxxxxxxx www.sg360.com -----Original Message----- From: David Carlisle d.p.carlisle@xxxxxxxxx [mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx] Sent: . . . Read full entry »


Re: XSLT1.0 distinct list of attributes across several

Posted 6/26/2018 9:57:49 PM

Peter sorry I missed your post, I think apart from using a different punctuation in the concat I just reposted the same, sorry:-) . . . Read full entry »


Re: XSLT1.0 distinct list of attributes across several

Posted 6/26/2018 9:51:28 PM

On 26/06/18 22:00, Mark Anderson mark.anderson@xxxxxxxxx wrote: > Thanks for reply Peter, unfortunately I can't use anything other than > XSL (with MSXML), as it's a 3rd party app that invokes the transform. > All we can do is provide our own XSL In that case the XSLT I sent should work i . . . Read full entry »


Re: XSLT1.0 distinct list of attributes across several

Posted 6/26/2018 9:46:17 PM

actually I think you are filtering on non-empty content rather than non-empty id so... $ xsltproc.exe hop.xsl hop.xml <?xml version="1.0"?> post_press 25 1, 2, 3, 5 post_press 26 1, 2, 3, 6 from <xsl:stylesheet version="1.0" xmlns:xsl="htt . . . Read full entry »


Re: XSLT1.0 distinct list of attributes across several

Posted 6/26/2018 9:29:35 PM

> By distinct attributes, I did, in fact, mean the distinct values of the number attribute. Apologies of that That doesn't seem to match the requested result > the result should be 1,2,3,5 for the first post_press_version in the first post_press_version there are two sequences of hopper el . . . Read full entry »


Re: XSLT1.0 distinct list of attributes across several

Posted 6/26/2018 9:00:24 PM

Thanks for reply Peter, unfortunately I can't use anything other than XSL (with MSXML), as it's a 3rd party app that invokes the transform. All we can do is provide our own XSL By distinct attributes, I did, in fact, mean the distinct values of the number attribute. Apologies of that a Segerdahl . . . Read full entry »


Re: Embedding XML in another XML

Posted 6/26/2018 1:31:46 PM

Willem: You can use a CDATA section to embed your XML. The parser will ignore anything in a CDATA section. <?xml version=b1.0b?> <root> <element> <![CDATA[ <?xml version="1.0" encoding="utf-16"?> <AXFRoot> <MAObjec . . . Read full entry »


Re: Embedding XML in another XML

Posted 6/26/2018 11:50:29 AM

On 26.06.2018 13:38, Willem Van Lishout willemvanlishout@xxxxxxxxx wrote: Hi, Ibm required to produce an XML file like this using XSLT 1.0: <?xml version=b1.0b?> <root> <element> B B B &lt;?xml version="1.0" encoding="utf-16"?&gt; B B B B B . . . Read full entry »


Re: Embedding XML in another XML

Posted 6/26/2018 11:46:43 AM

This is easily achieved in XSLT 3.0 using the fn:serialize() function: <element>{ serialize($innerXML) }</element> With a 1.0 processor you may be able to implement serialize() as an extension function. Michael Kay Saxonica > On 26 Jun 2018, at 12:39, Willem Van Lishout willemv . . . Read full entry »


Embedding XML in another XML

Posted 6/26/2018 11:38:41 AM

Hi, Ibm required to produce an XML file like this using XSLT 1.0: <?xml version=b1.0b?> <root> <element> &lt;?xml version="1.0" encoding="utf-16"?&gt; &lt;AXFRoot&gt; &lt;MAObject type="default" mdcl . . . Read full entry »


Re: XSLT1.0 distinct list of attributes across several

Posted 6/25/2018 10:46:04 PM

On 25/06/18 19:52, Mark Anderson mark.anderson@xxxxxxxxx wrote: > I'm restricted to XSLT1.0 with no extensions. Are you allowed to use other computer utilities? > I need to get a list of distinct attributes across a set of nodes. I think there is a terminological problem here, because I'm . . . Read full entry »


XSLT1.0 distinct list of attributes across several nod

Posted 6/25/2018 6:52:05 PM

I'm restricted to XSLT1.0 with no extensions. I need to get a list of distinct attributes across a set of nodes. . . . Read full entry »


[ANN] Call for Late-Breaking News - Balisage 2018

Posted 6/25/2018 5:52:44 PM

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


Re: First steps with high order functions

Posted 6/21/2018 4:59:38 PM

> On 21 Jun 2018, at 15:34, Eliot Kimber ekimber@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > For this: > > $name => tokenize(' ') => for-each(nu:camelCase#1) => string-join(' ') > > Why not use: > > $name => tokenize(' ') ! nu:camel . . . Read full entry »


Re: First steps with high order functions

Posted 6/21/2018 2:34:04 PM

For this: $name => tokenize(' ') => for-each(nu:camelCase#1) => string-join(' ') Why not use: $name => tokenize(' ') ! nu:camelCase(.) => string-join(' ') ? Or is there a difference between for-each() and ! in this case (I understood ! to be doing for-each). With XPath 3.1 I fi . . . Read full entry »


Function point estimation tool

Posted 6/20/2018 10:24:46 AM

Hi all, I wrote a tool few years ago for doing Function point estimation, written using XML, XSLT (2.0) and XSD (1.0). It was never available to outside viewers back then. But now, I've published it at, http://gandhimukul.tripod.com/xml/Function_Point_Estimation_Tool.zip. The usage documentation . . . Read full entry »


XSLT at the XML Summer School

Posted 6/19/2018 8:50:20 PM

Hello, We have announced the program for the XML Summer School, which takes place September 9-14 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 effective . . . Read full entry »


Re: First steps with high order functions

Posted 6/19/2018 11:14:17 AM

Thanks a lot, Martin, it's now perfectly clear ! Best regards, Christophe Le 19/06/2018 C 12:48, Martin Honnen martin.honnen@xxxxxx a C)critB : On 19.06.2018 12:33, Christophe Marchand cmarchand@xxxxxxxxxx wrote: I'm trying to learn high order functions, and I have some difficulties. If someone . . . Read full entry »


Re: First steps with high order functions

Posted 6/19/2018 10:48:37 AM

On 19.06.2018 12:33, Christophe Marchand cmarchand@xxxxxxxxxx wrote: I'm trying to learn high order functions, and I have some difficulties. If someone could help... I have a normal function : B <xsl:function name="nu:camelCase" as="xs:string?"> B B B <xsl:param . . . Read full entry »


First steps with high order functions

Posted 6/19/2018 10:33:13 AM

Hello, I'm trying to learn high order functions, and I have some difficulties. If someone could help... I have a normal function : B <xsl:function name="nu:camelCase" as="xs:string?"> B B B <xsl:param name="s" as="xs:string?"/> B B B ... B . . . Read full entry »


[ANN] Symposium on Markup Vocabulary Ecosystems

Posted 6/18/2018 8:58:12 PM

Successful shared markup vocabularies, far from being just lists of tags, are the centers of complex ecosystems that support use and users while drawing support from both user communities and vendors. The program for the Symposium on Markup Vocabulary Ecosystems is now available: https://www.balis . . . Read full entry »


Re: XSLT 3.0 streaming vs other big-data technologies

Posted 6/18/2018 1:23:32 PM

On Mon, Jun 18, 2018 at 2:25 AM, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: >> >> This is already supported in Saxon-JS: >> >> http://www.saxonica.com/saxon-js/documentation/index.html#!ixsl-extension/ins tructions/schedule-action &g . . . Read full entry »


Re: XSLT 3.0 streaming vs other big-data technologies

Posted 6/18/2018 9:25:29 AM

> This is already supported in Saxon-JS: > > http://www.saxonica.com/saxon-js/documentation/index.html#!ixsl-extension/ins tructions/schedule-action > > But I'm not sure how this concept would fit into "normal" XSLT processing. > One can certainly see that the idea of s . . . Read full entry »


Re: question about XSLT namespace

Posted 6/18/2018 9:12:38 AM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 15.6.2018 8:54, David Carlisle d.p.carlisle@xxxxxxxxx wrote: > This was discussed at great length when namespaces were > introduced. Although some vocabularies chose to change the > namespace at version changes it's a really bad idea. If yo . . . Read full entry »


Re: question about XSLT namespace

Posted 6/16/2018 6:46:33 AM

On Fri, 2018-06-15 at 06:26 +0000, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx wrote: > I bet you will get a lot of response here.... > > I am pretty much convinced changing the namespace with the version of > any vocabulary is an extremely bad idea. Agreed, and also with David's explana . . . Read full entry »


Re: XSLT 3.0 streaming vs other big-data technologies

Posted 6/15/2018 10:22:25 AM

On Thu, Jun 14, 2018 at 1:28 PM, Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Simply moving to a 64-bit long would allow an InputStream that would take > a million years or so to process, which is infinite enough for most people. > Thanks for s . . . Read full entry »


Re: question about XSLT namespace

Posted 6/15/2018 7:57:01 AM

On Fri, Jun 15, 2018 at 12:24 PM, David Carlisle d.p.carlisle@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > If you change the namespace then you > change the name of every construct in the language, that isn't a new > version it is a new, incompatible, language. > . . . Read full entry »


Re: question about XSLT namespace

Posted 6/15/2018 6:54:09 AM

This was discussed at great length when namespaces were introduced. Although some vocabularies chose to change the namespace at version changes it's a really bad idea. If you change the namespace then you change the name of every construct in the language, that isn't a new version it is a new, inco . . . Read full entry »


Re: question about XSLT namespace

Posted 6/15/2018 6:32:05 AM

There have been strong arguments against this, see for example https://markmail.org/message/dmkpf3cvwpnzkdy2 Suppose I have defined a template rule in an XSLT 2 stylesheet (a XSLT software library if you will), and Ibve been importing this stylesheet from other stylesheets for some time. Supp . . . Read full entry »


Re: question about XSLT namespace

Posted 6/15/2018 6:25:51 AM

I bet you will get a lot of response here.... I am pretty much convinced changing the namespace with the version of any vocabulary is an extremely bad idea. an xsl:template mechanism is exactly the same thing regardless the XSLT version If you would just read about the mechanics of what an XSL . . . Read full entry »


question about XSLT namespace

Posted 6/15/2018 5:30:25 AM

Hi all, We all know that, the XSLT namespace is http://www.w3.org/1999/XSL/Transform. This has remained same, for 1.0, 2.0 & 3.0 versions of the XSLT language. My feeling is, that every major XSLT language version should have a different language namespace URI (maybe, we could make the year . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/15/2018 12:11:41 AM

Dimitre, I like it (if it's efficiency we're after)! Cheers, Wendell On Thu, Jun 14, 2018 at 5:18 PM, Dimitre Novatchev dnovatchev@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi Wendell, > >> "empty($A intersect $B//*)" > > I think that general . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 9:39:47 PM

> "empty($A intersect $B//*)" > > XPath 1.0: > > "count($B/**) = count($B//* | $A)" > > Cheers, Wendell > Getting all the ancestors of $A is likely to be a lot faster than getting all the descendants of $B, simply because a node typically has many descen . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 9:17:45 PM

Hi Wendell, > "empty($A intersect $B//*)" I think that generally using the ancestor-or-self:: axis will be more efficient than using $B//*, because the depth of an XML document tends to be fairly limited in size. So: ($B/ancestor-or-self::* intersect $A)[1] Cheers, Dimitre O . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 8:34:42 PM

Hi, "not(some $b in ($B//*) satisfies ($b is $A))" (oh Roger came up with that.) or nicer? "empty($A intersect $B//*)" XPath 1.0: "count($B/**) = count($B//* | $A)" Cheers, Wendell On Thu, Jun 14, 2018 at 8:23 AM, Costello, Roger L. costello@xxxxxxxxx <xsl . . . Read full entry »


Re: XSLT 3.0 streaming vs other big-data technologies

Posted 6/14/2018 2:35:32 PM

> Moving to 64 bits everywhere would be a significant challenge, not least because of the difficulty of testing all paths with the large data volumes needed to find the bugs. Let's call this Saxon-64 :) I believe we will live to see Saxon-64. And this would make it even more *the* (only) XSLT . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:38:26 PM

> On 14 Jun 2018, at 14:23, Eliot Kimber ekimber@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > This seems to work: > > <test>b1 in A: <xsl:value-of select="$B1/ancestor::* = $A"/></test> > <test>b2 in A: <xsl . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:38:20 PM

Doh!--how do I keep failing to understand that "=" is atomic value comparison? Maybe I shouldn't try to solve XSLT puzzles first thing in the morning. Cheers, E. -- Eliot Kimber http://contrext.com o;?On 6/14/18, 8:35 AM, "Martin Honnen martin.honnen@xxxxxx" <xsl-list- . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:35:17 PM

On 14.06.2018 15:23, Eliot Kimber ekimber@xxxxxxxxxxxx wrote: This seems to work: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> <x . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:33:45 PM

exists($B/ancestor-or-self::*[. is $A]) Michael Kay Saxonica > On 14 Jun 2018, at 13:22, Costello, Roger L. costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi Folks, > > The variable $A contains an element. > > The variable $B contains an element . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:27:35 PM

On 14.06.2018 15:21, Costello, Roger L. costello@xxxxxxxxx wrote: Do you see any problems with using this XPath to solve the problem: not(some $i in $B/ancestor::* satisfies $i is $A) That seems fine. . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:22:48 PM

This seems to work: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> <xsl:template match="/"> <xsl:variable name=&quo . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:21:42 PM

Do you see any problems with using this XPath to solve the problem: not(some $i in $B/ancestor::* satisfies $i is $A) /Roger -----Original Message----- From: Costello, Roger L. costello@xxxxxxxxx [mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx] Sent: Thursday, June 14, 2018 9:10 AM To: xsl-list@ . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:15:17 PM

There is always: http://www.xsltfunctions.com/xsl/functx_index-of-node.html On Thu, Jun 14, 2018, 15:10 Costello, Roger L. costello@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Martin Honnen wrote: > > > If you have (element) nodes I fail to see how the index-o . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 1:10:10 PM

Martin Honnen wrote: > If you have (element) nodes I fail to see how the index-of function helps Eek! You are right. > Don't you need index-of-node? That is an XPath 3.0 function. I need to stick with XPath 2.0. Suggestions? /Roger -----Original Message----- From: Martin Honnen martin.h . . . Read full entry »


Re: Need an XPath expression for: $B is not contained

Posted 6/14/2018 12:51:44 PM

On 14.06.2018 14:22, Costello, Roger L. costello@xxxxxxxxx wrote: Hi Folks, The variable $A contains an element. The variable $B contains an element. I need an XPath expression that determines if $B is not contained in $A. This XPath expression seems to work: not(index-of($B/ancestor::*,$ . . . Read full entry »


Need an XPath expression for: $B is not contained in $

Posted 6/14/2018 12:22:36 PM

Hi Folks, The variable $A contains an element. The variable $B contains an element. I need an XPath expression that determines if $B is not contained in $A. This XPath expression seems to work: not(index-of($B/ancestor::*,$A)) but that seems awful, i.e., not straightforward, convoluted, a . . . Read full entry »


Re: XSLT 3.0 streaming vs other big-data technologies

Posted 6/14/2018 7:58:43 AM

Simply moving to a 64-bit long would allow an InputStream that would take a million years or so to process, which is infinite enough for most people. This particular limit is easy to fix. There are others that are harder: 32-bit limits on the size of sequences and strings are scattered throughout . . . Read full entry »


Re: XSLT 3.0 streaming vs other big-data technologies

Posted 6/14/2018 5:18:47 AM

Hi Mike, On Wed, Jun 13, 2018 at 1:00 PM, Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > The Saxon implementation does have some limits that mean the input stream > can't be infinite: most obviously, the nodes are numbered using a 32-bit > in . . . Read full entry »


Re: XSLT 3.0 streaming vs other big-data technologies

Posted 6/13/2018 7:38:30 AM

Thanks Mike, for the answers. They're helpful. On Wed, Jun 13, 2018 at 1:00 PM, Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > There's nothing in the language spec that constrains where the data comes > from. > > In the Saxon (Java) implementa . . . Read full entry »


Re: XSLT 3.0 streaming vs other big-data technologies

Posted 6/13/2018 7:30:02 AM

There's nothing in the language spec that constrains where the data comes from. In the Saxon (Java) implementation, it can come from any Java InputStream. Constructing an InputStream that reads from multiple storage nodes or an HDFS file system is someone else's job, but I see no reason why it sh . . . Read full entry »


XSLT 3.0 streaming vs other big-data technologies

Posted 6/13/2018 6:02:41 AM

Hi all, Most of us might be knowing big-data technologies like Hadoop, HDFS etc. With HDFS, I think a file can span multiple storage nodes (this potentially allows real big data as input to run-time processes). Can XSLT 3.0 streaming, also accept big data of this kind as input to an XSLT transfo . . . Read full entry »


Re: How to process a sequence of any type as input of

Posted 6/12/2018 11:05:51 PM

Thank you all for your quick responses, wow, it covers everything I could think of. So, the idea was interesting, but I will use a parameter, it is simpler in my case. Olivier . . . Read full entry »


Re: How to process a sequence of any type as input of

Posted 6/12/2018 4:04:27 PM

In Saxon you can process a sequence of items using xsl:apply-templates (as the "initial match selection") using the API Xslt30Transformer.applyTemplates(XdmValue, Destination) However, this is limited to processing the items in the input sequence one-by-one, independently of each other, . . . Read full entry »


Re: How to process a sequence of any type as input of

Posted 6/12/2018 4:01:47 PM

only tried with xml but you can read from stdin using -s:- cat foo.xml | java -jar saxon9he.jar -s:- style.xsl . . . Read full entry »


Re: How to process a sequence of any type as input of

Posted 6/12/2018 3:58:14 PM

Generally, the XSLT 3.0 Specification talks about "initial match selection": http://www.w3.org/TR/xslt-30/#dt-initial-match-selection and it seems that you need something similar. However I don't know how Saxon implements this -- from the command-line or via its API. Also, piping to m . . . Read full entry »


Re: How to process a sequence of any type as input of

Posted 6/12/2018 3:53:25 PM

On 12.06.2018 17:39, Olivier Jeulin olivier.jeulin.work@xxxxxxxxx wrote: according to http://www.exselt.net/features/new-in-xslt-30/ bAny sequence of any type can be the input for the transformation, not just a document.b I haven't found a clear statement of that in the norm, but I'd like to . . . Read full entry »


How to process a sequence of any type as input of a t

Posted 6/12/2018 3:39:26 PM

Hello, according to http://www.exselt.net/features/new-in-xslt-30/ bAny sequence of any type can be the input for the transformation, not just a document.b I haven't found a clear statement of that in the norm, but I'd like to use this feature (using Saxon, so if the solution is specific, we ca . . . Read full entry »


Re: How to extract an element plus all the elements it

Posted 6/8/2018 6:26:49 PM

On 08.06.2018 20:19, Costello, Roger L. costello@xxxxxxxxx wrote: I have instance documents containing a bunch of <airport> elements. I want to extract one of the <airport> elements. But the <airport> element might contain IDREF elements, so the result document must include the & . . . Read full entry »


How to extract an element plus all the elements it re

Posted 6/8/2018 6:18:48 PM

Hi Folks, I have instance documents containing a bunch of <airport> elements. I want to extract one of the <airport> elements. But the <airport> element might contain IDREF elements, so the result document must include the <airport> element and the referenced elements. Thos . . . Read full entry »


Re: Collection is not working for Bulk XML

Posted 6/8/2018 4:49:32 PM

Please don't tell us your code "isn't working" - tell us how it fails. That's how we diagnose problems - we look at the symptoms. Without symptoms, it's like telling your doctor you don't feel well without saying where it hurts. Tell us precisely what you did, and precisely what happened . . . Read full entry »


Re: Collection is not working for Bulk XML

Posted 6/8/2018 4:49:04 PM

The issue appears to be that mailinfo is NOT the root element of your documents ... mailinfoData is.... So /mailinfo evaluates to the empty sequence Sent from my iPad > On 8 Jun 2018, at 17:44, Rahul Singh rahulsinghindia15@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > . . . Read full entry »


Collection is not working for Bulk XML

Posted 6/8/2018 4:44:19 PM

Hi, I have bulk XML's and stored in directory *C:/Users/1289568903/Desktop/Data* as below: a.xml: <?xml version="1.0" encoding="UTF-8"?> <mailInfoData> <mailInfo>rahuls@xxxxxxxxx</mailInfo> </mailInfoData> b.xml: <?xml version="1.0" . . . Read full entry »


Re: processing multiple documents concatenated into on

Posted 6/3/2018 1:58:14 PM

mmh, why not, but still that is some sort of preprocessing. Will see what my options are there, thanks At 14:09 3/06/2018, you wrote: Would not an xinclude pass suffice to merge the 3 into 1? regards On 3 June 2018 at 13:03, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxx . . . Read full entry »


Re: processing multiple documents concatenated into on

Posted 6/3/2018 12:08:54 PM

Would not an xinclude pass suffice to merge the 3 into 1? regards On 3 June 2018 at 13:03, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Well, sadly enough the input stream is of the second kind (having all the > xml declarations inside) &g . . . Read full entry »


Re: processing multiple documents concatenated into on

Posted 6/3/2018 12:03:47 PM

Well, sadly enough the input stream is of the second kind (having all the xml declarations inside) We are preprocessing the input now before we parse Thanks for the suggestions Best regards, Geert Bormans -------------------------------------------------------------- Markup UK - a conference a . . . Read full entry »


XSL-List Guidelines

Posted 6/1/2018 8:31:16 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: Saxon serialization methods require Saxon-PE to be

Posted 6/1/2018 9:39:17 AM

Fair point, Ibll withdraw this question from here and send it to the correct forum. Thanks Ian From: Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: 01 June 2018 09:29 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Saxon serialization methods require S . . . Read full entry »


Re: Saxon serialization methods require Saxon-PE to be

Posted 6/1/2018 8:28:39 AM

As Liam says, it would be better to raise this on a Saxon list (or since you're a paying customer, you're perfectly entitled to email us directly). My first guess with this is that you are instantiating Saxon using "new Processor(false)" rather than "new Processor(true)". But w . . . Read full entry »


Re: Saxon serialization methods require Saxon-PE to be

Posted 6/1/2018 2:58:34 AM

On Thu, 2018-05-31 at 23:58 +0000, ian.proudfoot@xxxxxxxxxxx wrote: > I'm using a licenced copy of Saxon-PE embedded in a Java application. [...] > Looking at the Saxon documentation leads me to the Saxon > Configuration File, > but so far my attempts have been spectacularly ineffect . . . Read full entry »


Saxon serialization methods require Saxon-PE to be en

Posted 5/31/2018 11:57:33 PM

I'm using a licenced copy of Saxon-PE embedded in a Java application. One of the stylesheets makes use of xsl:result-document with method="saxon:base64Binary". While developing the stylesheets using Oxygen Editor this works perfectly. However when running my JAR file from the command lin . . . Read full entry »


Re: sibling sorting

Posted 5/31/2018 1:10:11 PM

Thanks Martin, this worked like a charm. Regards, Ganesh On Thu, May 31, 2018 at 6:19 PM, Martin Honnen martin.honnen@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On 31.05.2018 14:41, Ganesh Babu N nbabuganesh@xxxxxxxxx wrote: > >> Dear All, >> >> Her . . . Read full entry »


Re: sibling sorting

Posted 5/31/2018 12:48:53 PM

On 31.05.2018 14:41, Ganesh Babu N nbabuganesh@xxxxxxxxx wrote: Dear All, Here is my XML: B B B B B B B B B B B B B B <descriptor> B B B B B B B B B B B B B B B B B <mainterm weight="a">dexmedetomidine</mainterm> B B B B B B B B B B B B B B B B B <link>zdver . . . Read full entry »


sibling sorting

Posted 5/31/2018 12:41:11 PM

Dear All, Here is my XML: <descriptor> <mainterm weight="a">dexmedetomidine</mainterm> <link>zdverse drug reaction - disease</link> <sublink>xerostomia</sublink> . . . Read full entry »


Re: pretty printing - having CRLF instead of LF

Posted 5/29/2018 8:59:18 PM

> On 29 May 2018, at 09:19, cmarchand@xxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > If you use a Java based XSLT Processor, you may change the system property : > System.setProperty("line.separator", "\r\n"); > This may affect the behavior . . . Read full entry »


Re: pretty printing - having CRLF instead of LF

Posted 5/29/2018 7:40:26 PM

On 29/05/18 07:52, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx wrote: > All, > > Title says it all. > Using XSLT I need the output indent=yes > but it feeds in mainframe, so I need the line ends to be CRLF instead of LF > I am doing so now by taking full control of the "pretty p . . . Read full entry »


[ANN] Call for Late-Breaking News - Balisage 2018

Posted 5/29/2018 4:58:11 PM

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


Re: pretty printing - having CRLF instead of LF

Posted 5/29/2018 8:18:46 AM

If you use a Java based XSLT Processor, you may change the system property : System.setProperty("line.separator", "\r\n"); But, you MUST test it before ! Best, Christophe Le 2018-05-29 10:03, Michael Kay mike@xxxxxxxxxxxx a C)critB : I think saxon:newline works only for the & . . . Read full entry »


Re: pretty printing - having CRLF instead of LF

Posted 5/29/2018 8:03:27 AM

I think saxon:newline works only for the "text" output method. Michael Kay Saxonica > On 29 May 2018, at 08:43, cmarchand@xxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > http://www.saxonica.com/documentation/index.html#!extensions/output-extras/se rializat . . . Read full entry »


Re: processing multiple documents concatenated into on

Posted 5/29/2018 7:59:44 AM

If the file is in the form <root> .... </root> <root> .... </root> then you should be able to present to the XML parser a skeleton document of the form <!DOCTYPE dummy [ <!ENTITY x "multidoc.xml"/>] <dummy>&x;</dummy> and the XSLT sty . . . Read full entry »


Re: pretty printing - having CRLF instead of LF

Posted 5/29/2018 7:43:13 AM

http://www.saxonica.com/documentation/index.html#!extensions/output-extras/serialization-parameters saxon:newline="x0Cx0A" should do the trick... Best, Christophe Le 2018-05-29 09:20, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx a C)critB : Yeah, that could be an option, thanks, I was hoping t . . . Read full entry »


Re: pretty printing - having CRLF instead of LF

Posted 5/29/2018 7:20:13 AM

Yeah, that could be an option, thanks, I was hoping to keep it inside the XSLT process, but we might end up postprocessing the result indeed Best regards, Geert Bormans -------------------------------------------------------------- Markup UK - a conference about XML and other mark-up languages L . . . Read full entry »


Re: pretty printing - having CRLF instead of LF

Posted 5/29/2018 7:03:31 AM

>unix2dos perhaps Assumes you use ... (maybe not these days) Dave On 29 May 2018 at 07:51, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > All, > > Title says it all. > Using XSLT I need the output indent=yes > but it feeds in ma . . . Read full entry »


pretty printing - having CRLF instead of LF

Posted 5/29/2018 6:51:48 AM

All, Title says it all. Using XSLT I need the output indent=yes but it feeds in mainframe, so I need the line ends to be CRLF instead of LF I am doing so now by taking full control of the "pretty print" process But maybe there is a more straightforward way? Best regards, Geert Bormans . . . Read full entry »


processing multiple documents concatenated into one

Posted 5/29/2018 6:49:07 AM

All, I am (using XSLT3 streaming) processing files that are occasionaly a concatenation of multiple XML files Before I start cutting documents apart before processing, I wondered, maybe there is an XSLT streaming solution all the way. Any ideas Best regards, Geert Bormans --------------------- . . . Read full entry »


Re: Confusion with generated xsl

Posted 5/26/2018 12:26:58 PM

Thank you Michael, It was helpful to get the reassurance that I wasn't trying to do the impossible! My XSL generation now works as required, but I have to say that it does stretch the mind to develop an efficient xsl generating stylesheet! Regards Ian -----Original Message----- From: Michael Kay . . . Read full entry »


Re: Constructing a Map Using xsl:for-each-group

Posted 5/25/2018 11:37:59 PM

Doh! Can I blame illness? I replaced the for-each-group with this: <xsl:variable name="unique-target-ids" as="xs:string*" select="$docbook-links/@linkend ! string(.) => distinct-values()" /> <xsl:variable name="links-by-target- . . . Read full entry »


Re: Constructing a Map Using xsl:for-each-group

Posted 5/25/2018 11:21:20 PM

Your <map:entry> elements should be <xsl:map-entry>. Had me baffled for a bit. Michael Kay Saxonica > On 26 May 2018, at 00:06, Eliot Kimber ekimber@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > I want to construct a map where the keys are attribute . . . Read full entry »


Constructing a Map Using xsl:for-each-group

Posted 5/25/2018 11:05:48 PM

I want to construct a map where the keys are attribute values and the entries contain the elements that exhibit those attribute values. The obvious way to do this is with for-each-group: <xsl:variable name="links-by-target-id" as="map(xs:string, element()*)"> . . . Read full entry »


Re: How to access PSVI in XSLT3

Posted 5/25/2018 9:46:37 AM

Thanks, Mike for reply and thoughts. On Thu, May 24, 2018 at 12:38 PM, Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Practically, no, because (a) there isn't going to be another XSLT > specification in the foreseeable future, and (b) there wouldn't . . . Read full entry »


Re: How to access PSVI in XSLT3

Posted 5/24/2018 7:07:57 AM

Practically, no, because (a) there isn't going to be another XSLT specification in the foreseeable future, and (b) there wouldn't be enough implementors to justify a standard. Technically, schema validation is closely tied in with the XDM type system, and this has the consequence that XDM never ex . . . Read full entry »


Re: How to access PSVI in XSLT3

Posted 5/24/2018 6:32:12 AM

On Wed, May 23, 2018 at 11:45 PM, Jason Polis jason@xxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > How can the PSVI be accessed in XSLT3 ? > That's an interesting question. My naive feeling is, XSLT should provide a way to know, all prescribed PSVI information mention in . . . Read full entry »


Re: Unicode question

Posted 5/23/2018 7:48:49 PM

On 23 May 2018 at 19:39, Julian Reschke julian.reschke@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > 8? er sorry, slight over estimate:-) 4 of course. > > Best regards, Julian . . . Read full entry »


Re: How to access PSVI in XSLT3

Posted 5/23/2018 7:26:00 PM

There's no direct provision for accessing PSVI information in XSLT 3.0 (or associated standards). In fact, the XDM data model only requires a very small subset of PSVI information to be maintained: specifically, the name of the data type that was used to validate valid elements and attributes. Mor . . . Read full entry »


Re: Unicode question

Posted 5/23/2018 6:39:29 PM

On 2018-05-23 20:24, David Carlisle d.p.carlisle@xxxxxxxxx wrote: I would suppose that oXygen is showing you UTF-16 source but the processing is happening in UTF-8, where the emoji is a single code point and corresponding glyph. Or rather, it is a single unicode code point which is encoded as two . . . Read full entry »


Re: Unicode question

Posted 5/23/2018 6:24:50 PM

> I would suppose that oXygen is showing you UTF-16 source but the > processing is happening in UTF-8, where the emoji is a single code point > and corresponding glyph. Or rather, it is a single unicode code point which is encoded as two utf-16 units or _eight_ bytes in UTF-8. The XSLT . . . Read full entry »


How to access PSVI in XSLT3

Posted 5/23/2018 6:15:27 PM

How can the PSVI be accessed in XSLT3 ? In particular, the dm:type-name<https://www.w3.org/TR/xpath-datamodel-30/#dm-type-name> of elements and attributes. Ideally also facets of their schema type. I've searched the web, and reviewed the relevant specs: https://www.w3.org/TR/xslt-30/ , https . . . Read full entry »


Re: Unicode question

Posted 5/23/2018 6:00:34 PM

On Wed, May 23, 2018 at 05:41:44PM -0000, Erik Siegel erik@xxxxxxxxxxx scripsit: > I have a problem that is Unicode related. Some Unicode characters (for > instance emojis) can have some code *following* the actual character to > indicate a variant. For instance in the following s . . . Read full entry »


Re: Unicode question

Posted 5/23/2018 5:57:51 PM

Your variable contains a single Unicode character, 128540, Face with Stuck-Out Tongue and Winking Eye. In some Unicode encodings the character will be encoded as a surrogate pair. But XSLT sees only characters, not encodings, so you have no way of finding out what encoding is being used or accessin . . . Read full entry »


Unicode question

Posted 5/23/2018 5:41:37 PM

Hi out there, I have a problem that is Unicode related. Some Unicode characters (for instance emojis) can have some code *following* the actual character to indicate a variant. For instance in the following stylesheet, the emoji character in $x (U+1F61C) is followed by U+DE1C. When I look in oXy . . . Read full entry »


[ANN] Balisage 2018 Program Announced

Posted 5/23/2018 4:37:09 PM

Balisage: The Markup Conference 2018 Program Now Available http://www.balisage.net/2018/Program.html Balisage: where serious markup practitioners and theoreticians meet every summer. The 2018 program includes papers that reflect and look forward, and that discuss the use of markup to: manage do . . . Read full entry »


Re: Unexpected Result from 'eq' Expression Involving a

Posted 5/23/2018 4:06:08 PM

I see. My failure was not following the link to XSLT 3.1 from the XPath Operators and Functions section 7. It all makes sense now. Historically I have (incorrectly) used "=" when I should have been using "eq" and only recently (thanks to Evan Lens' patient tutelage) came to f . . . Read full entry »


Re: Unexpected Result from 'eq' Expression Involving a

Posted 5/23/2018 3:35:38 PM

Writing () as "empty sequence", xs:boolean() returns () if the argument is (). (F+O B'18.1, "If $arg is the empty sequence, the empty sequence is returned.") X eq Y (value comparison) returns () if either argument is (). (XPath B'3.7.1, "If an atomized operand is an empty . . . Read full entry »


Unexpected Result from 'eq' Expression Involving a Nod

Posted 5/23/2018 3:00:40 PM

Using latest Saxon in an XSLT 3 transform I have this instruction: <xsl:message>+ [DEBUG] xs:boolean(@id eq 'x8AC8E061C912') = "{xs:boolean(@id eq 'x8AC8E061C912')}"</xsl:message> I expected the value of the xs:boolean() to be "true" or "false". However, . . . Read full entry »


Re: Confusion with generated xsl

Posted 5/21/2018 3:18:49 PM

> Just one more question, is there any xsl or xpath construct that can't be > generated using xslt? > That's a challenging one! There are a few XML constructs that can't be generated using XSLT (for example DTDs, entity references, arbitrary CDATA sections); the only construct in the unt . . . Read full entry »


Re: Confusion with generated xsl

Posted 5/21/2018 2:56:51 PM

Thank you Michael, Yes that did the job. I felt sure I had tried that but obviously not! Just one more question, is there any xsl or xpath construct that can't be generated using xslt? Best regards Ian -----Original Message----- From: Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxx . . . Read full entry »


Re: Confusion with generated xsl

Posted 5/21/2018 1:59:54 PM

> How can I generate an attribute value template without the {} becoming > active and forcing the XPath to be evaluated before it's ready? You need to double the curly braces. <thing value="abc{{$x}}"/> in the (meta-)stylesheet will generate <thing value="abc{$x}&q . . . Read full entry »


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: oXygen XSLT output setup issue

Posted 5/16/2018 8:50:33 AM

Michael Kay wrote: The difference between forward slash and yen mark is just a difference of screen display on a Japanese OS. It's the same thing. But I'm not seeing a yen symbol. I'm seeing a backslash - the file separator for Windows, not for Mac. Ah, indeed. I missed the point in Dan's respo . . . Read full entry »


Re: oXygen XSLT output setup issue

Posted 5/16/2018 7:14:56 AM

> The difference between forward slash and yen mark is just a difference of screen display on a Japanese OS. It's the same thing. But I'm not seeing a yen symbol. I'm seeing a backslash - the file separator for Windows, not for Mac. Michael Kay Saxonica > > I think I may have skewed the . . . Read full entry »


Re: oXygen XSLT output setup issue

Posted 5/16/2018 4:43:50 AM

Danny, >>> I just checkedd on this issue. I'm using v20, but I would think 19 is simalar. The transformation you are selecting is one that you have defined it isn't out of the box. If you go to Configure new transformation and select New, select XML transformation with XSLT. You can . . . Read full entry »


Re: oXygen XSLT output setup issue

Posted 5/16/2018 2:59:20 AM

At 07:31 PM 5/15/2018, you wrote: In earlier versions of oXygen (maybe versions 14 or 15 or so?), when one opened up the XSLT output settings for the first time, an entry for "xml-stylesheet processing instruction" would automatically be generated, without the user needing to do any sp . . . Read full entry »


Re: oXygen XSLT output setup issue

Posted 5/16/2018 2:48:20 AM

Looking at your second screenshot you variable is not what you typed in this message. "${cfd}\${cfn}.html" and I believe you need a forward slash anyway. Give that a try. ..dan At 07:31 PM 5/15/2018, you wrote: about 30% of the Mac machines. (The setup that worked on all of the Windo . . . Read full entry »


oXygen XSLT output setup issue

Posted 5/16/2018 2:31:01 AM

Dear Friends, This is actually an <oXygen/> support question, and I did send it to them, but so far no response. About 1/4 of the students in my XML/XSLT course are stuck on this point, so I am posting here in the event that some of you might be using oXygen and have encountered this. In . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/15/2018 3:26:05 PM

Yeah, that just did it, it also seems pretty flexible regarding which row exactly I want to put in the header really cool, bit frustrating it appeared to be so simple in the end thanks a lot for your help Best regards, Geert Bormans -------------------------------------------------------------- . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/15/2018 2:54:13 PM

On 15.05.2018 15:18, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx wrote: still trying to get my head around this and facing obstacles, most likely by lack of understanding... however example in <table> <row id="row1" attr1="A" attr2="AA"/> <row id= . . . Read full entry »


Re: streaming XSLT creating a header from a first reco

Posted 5/15/2018 1:17:46 PM

still trying to get my head around this and facing obstacles, most likely by lack of understanding... however example in <table> <row id="row1" attr1="A" attr2="AA"/> <row id="row2" attr1="C" attr2="CC"/> & . . . 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 »



PURCHASE STYLUS STUDIO ONLINE TODAY!!

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

Buy Stylus Studio Now

What's New for X14?

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

Ask Someone You Know

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

 
Free Stylus Studio XML Training:
W3C Member