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

The XSL-LIST Blog

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


Re: Performance of link target search, and Normalising

Posted 9/22/2023 2:01:04 PM

On 22/09/2023 14:41, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx wrote: > > > I omitted to say that I'm currently using XSL 2 and Saxon HE. So the > two Saxon functions mentioned in your other responses are not > available to me (unfortunate, because they look like exactly what I > . . . Read full entry »


Re: Performance of link target search, and Normalising

Posted 9/22/2023 12:40:51 PM

Hi Martin I omitted to say that I'm currently using XSL 2 and Saxon HE. So the two Saxon functions mentioned in your other responses are not available to me (unfortunate, because they look like exactly what I need). The urify function might be useful though. To answer your question, given a $ . . . Read full entry »


Re: Performance of link target search, and Normalising

Posted 9/22/2023 12:35:28 PM

On 22/09/2023 14:09, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx wrote: > > I am working with sets of XML document files which include "include" > elements; the include elements are substituted by the content of the > file found at include/@srcfile, and inclusions may be nested . . . Read full entry »


Re: Performance of link target search, and Normalising

Posted 9/22/2023 12:35:11 PM

Too simple perhaps, a recursive function with the last param building the path rel to the path of this stylesheet? HTH On Fri, 22 Sept 2023 at 13:32, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > On 22/09/2023 14:31, Martin Honnen martin. . . . Read full entry »


Re: Performance of link target search, and Normalising

Posted 9/22/2023 12:32:19 PM

On 22/09/2023 14:31, Martin Honnen martin.honnen@xxxxxx wrote: > > > On 22/09/2023 14:28, Martin Honnen martin.honnen@xxxxxx wrote: >> >> >> On 22/09/2023 14:09, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx wrote: >>> >>> But if any file is not then this co . . . Read full entry »


Re: Performance of link target search, and Normalising

Posted 9/22/2023 12:31:11 PM

On 22/09/2023 14:28, Martin Honnen martin.honnen@xxxxxx wrote: > > > On 22/09/2023 14:09, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx wrote: >> >> But if any file is not then this code produces verified/adjusted >> links where the srcfile may be something like >> &quo . . . Read full entry »


Re: Performance of link target search, and Normalising

Posted 9/22/2023 12:27:54 PM

On 22/09/2023 14:09, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx wrote: > > But if any file is not then this code produces verified/adjusted links > where the srcfile may be something like "../../A/../B/../C/ccc.xml#xyz" > > Is there a simple way of normalising that path? If . . . Read full entry »


Performance of link target search, and Normalising or

Posted 9/22/2023 12:09:29 PM

Hi I am working with sets of XML document files which include "include" elements; the include elements are substituted by the content of the file found at include/@srcfile, and inclusions may be nested many levels deep. These documents contain link elements which point to elements . . . Read full entry »


Re: Asymmetric string handling with processing-instru

Posted 9/15/2023 6:25:39 AM

Thanks a lot for your feedback and thoughts, Martin, Special thanks for reminding me that a simple string can be treated/parsed as XML and there is no need for an element to use parse-xml-fragment(). When creating the text content of a processing instruction we have to decide which quotes to use . . . Read full entry »


Re: Asymmetric string handling with processing-instru

Posted 9/14/2023 4:08:41 PM

On 14.09.2023 17:27, Martin Honnen martin.honnen@xxxxxx wrote: > > > On 14.09.2023 16:05, Michael Mueller-Hillebrand > michael.mueller-hillebrand@xxxxxxxxx wrote: >> >> My bottom line: If you want to use saxon:get-pseudo-attribute(), >> because it is elegant and effici . . . Read full entry »


Re: Asymmetric string handling with processing-instru

Posted 9/14/2023 3:38:08 PM

On 14.09.2023 17:27, Martin Honnen martin.honnen@xxxxxx wrote: I was also playing with some attributes created on the fly to be serialized but as standalone attributes can't be serialized that doesn't work out; I am not sure whether creating an element with attributes on the fly and then serializin . . . Read full entry »


Re: Asymmetric string handling with processing-instru

Posted 9/14/2023 3:27:24 PM

On 14.09.2023 16:05, Michael Mueller-Hillebrand michael.mueller-hillebrand@xxxxxxxxx wrote: > > My bottom line: If you want to use saxon:get-pseudo-attribute(), > because it is elegant and efficient, and it could be possible you have > user content in processing instruction, you have tw . . . Read full entry »


Asymmetric string handling with processing-instruction

Posted 9/14/2023 2:05:32 PM

Dear colleagues, We are (finally) switching to Saxon 10 (shame on us for being so late) and experience the breaking change in the very welcome extension function saxon:get-pseudo-attribute(). The change history states: B7 The extension function saxon:get-pseudo-attribute() now parses the . . . Read full entry »


Re: Some things I learned about writing code

Posted 9/10/2023 12:04:56 PM

Hi Martin, I recently needed to convert JSON to XML for a one-off task, and your answer here was exactly what I needed: https://stackoverflow.com/questions/67312950/how-to-convert-json-to-xml-using -xslt My initial attempt to use it failed because some of my JSON fields were numeric instead of s . . . Read full entry »


Re: Some things I learned about writing code

Posted 9/10/2023 11:54:43 AM

Am 10.09.2023 um 13:44 schrieb Roger L Costello costello@xxxxxxxxx: > > 1. > > > 2. There is input data that code consumes and output data that code > produces. What is the format of the input data? What is the format > of the output data? I like using a format that ha . . . Read full entry »


Some things I learned about writing code

Posted 9/10/2023 11:43:52 AM

1. When writing code, I need to focus very intently. A momentary loss of focus often results in introducing erroneous code. 2. There is input data that code consumes and output data that code produces. What is the format of the input data? What is the format of the output data? I like using a . . . Read full entry »


Re: Somewhat off-topic question (isolating XLST engine

Posted 9/8/2023 1:17:00 PM

One approach to this is to put your own implementation of the JAXP TransformerFactory interface (in a JAR file with a suitable manifest) on the classpath, ahead of Saxon in the search order; and when it is invoked, explicitly call the Xalan implementation. In the part of the application that needs . . . Read full entry »


Re: Somewhat off-topic question (isolating XLST engine

Posted 9/8/2023 12:30:12 PM

"ohaya ohaya@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > Sorry - per the subject this may be kind of off-topic for this list... Last time this came up, I thought Mike laid out a pretty convincing explanatin of the problem. You appear to have competing implemen . . . Read full entry »


Somewhat off-topic question (isolating XLST engine) was Re:

Posted 9/8/2023 11:49:30 AM

Hi, Sorry - per the subject this may be kind of off-topic for this list... This is a really a followup re. the discussion in this thread, but, basically, because of the problem with trying to get Saxon-HE (and apparently any XLST engine) integrated with the OUD (per this thread), I ended up prop . . . Read full entry »


Declarative Amsterdam 2023 - Register now

Posted 9/5/2023 7:41:33 AM

Declarative Amsterdam 2023 will be happening at CWI, Amsterdam Science Park on Thursday/Friday November 2 and 3, 2023. * Thursday morning is a tutorial session, with a hands-on Advanced XForms Tutorial. It is a bbring your own deviceb event and you will be expected to have pre-loaded some materi . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 9/2/2023 3:38:07 AM

On Fri, Sep 01, 2023 at 05:07:19PM -0000, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx scripsit: > On Fri, 2023-09-01 at 08:14 +0000, Mukul Gandhi > mukulg@xxxxxxxxxxxxxxxxx wrote: >> As I've mentioned within another mail on this thread, I think XPath >> 3.1 function conversion rules pro . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 9/1/2023 5:07:05 PM

On Fri, 2023-09-01 at 08:14 +0000, Mukul Gandhi mukulg@xxxxxxxxxxxxxxxxx wrote: > > As I've mentioned within another mail on this thread, I think XPath > 3.1 function conversion rules prohibiting a string value '4' to be > cast to an xs:integer type is not very much right. Actually it' . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 9/1/2023 12:35:51 PM

Hi Mike, On Fri, Sep 1, 2023 at 2:26b/PM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > You will find that people have a wide range of views on this. If you want > your views to be taken into account, you are very welcome to join the QT4 > initia . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 9/1/2023 8:56:16 AM

> As I've mentioned within another mail on this thread, I think XPath 3.1 function conversion rules prohibiting a string value '4' to be cast to an xs:integer type is not very much right. These XPath 3.1 function conversion rules should be consistent with the result of following XPath expression . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 9/1/2023 8:52:13 AM

On Fri, 1 Sept 2023 at 09:13, Mukul Gandhi mukulg@xxxxxxxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi Wendell, > > On Thu, Aug 31, 2023 at 7:24b/PM Piez, Wendell A. (Fed) > wendell.piez@xxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 9/1/2023 8:13:24 AM

Hi Wendell, On Thu, Aug 31, 2023 at 7:24b/PM Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > My thought is, why not > > > > <xsl:variable name="var1" select="4"/> > > > I'm currently not writ . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 8/31/2023 4:35:12 PM

> I think, the XSLT 3.0 variable declaration, <xsl:variable name="var1" select="'4'" as="xs:integer"/> should work similarly (I think, it should succeed, and the specific XPath 3.1 function conversion rule seems to me is wrong if it, disallows this. Apologies . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 8/31/2023 3:23:07 PM

Hi Mike, On Thu, Aug 31, 2023 at 7:27b/PM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Firstly, everything you talk about here was defined in XSLT 2.0, and was > unchanged in 3.0. > > You've left out a crucial phrase from your quotation, whic . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 8/31/2023 1:56:58 PM

Firstly, everything you talk about here was defined in XSLT 2.0, and was unchanged in 3.0. You've left out a crucial phrase from your quotation, which is present in both 2.0 and 3.0: If the as attribute is specified, then the supplied value of the variable is converted to the required type, using . . . Read full entry »


Re: xslt 3.0, and use of 'as' attribute with xsl:varia

Posted 8/31/2023 1:54:31 PM

Hello Mukul, My thought is, why not <xsl:variable name="var1" select="4"/> ? Taken at face value, your question seems to me to be about why doesn't XPath 2.0+ do more implicit casting, which could give more 'intuitive' results in certain edge cases (such as declaring a . . . Read full entry »


xslt 3.0, and use of 'as' attribute with xsl:variable

Posted 8/31/2023 1:46:32 PM

Hi all, I'm trying to understand a simple concept with XSLT 3.0, when we use 'as' attribute with xsl:variable instruction. I'm using Saxon HE 12.2. I'd like to understand these concepts with a non schema aware XSLT transformation. My XSLT stylesheet is as follows (this one doesn't use 'as' att . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/28/2023 12:06:06 PM

Great advice, Thank you! From: Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, August 28, 2023 7:51 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [EXTERNAL] Re: xslt create a variable from external xml file Hi Phillip, . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/28/2023 12:02:21 PM

On 28/08/2023 12:36, LEGAULT, PHILLIP plegault@xxxxxxxxxx wrote: Thanks everyone for your help. By way of an obiter dictum, I have appended what I used to tell students about running *any* software likely to need to open all sorts of files. The reason I have used "should" or "probabl . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/28/2023 11:50:52 AM

Hi Phillip, When something does not work as expected, I sometimes do the following: 1. Isolate the thing that is not working into a simple testcase. 2. If the simple testcase does not work as expected, then I need to correct my understanding of that feature. 3. If the simple testcase works as exp . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/28/2023 11:35:37 AM

Thanks everyone for your help. -Chris Obviously I did not try this, thank you! From: Chris Papademetrious chrispitude@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Sunday, August 27, 2023 8:28 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [EXTERNAL] Re: xslt create a variable . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/27/2023 1:17:57 PM

On 27.08.2023 12:50, LEGAULT, PHILLIP plegault@xxxxxxxxxx wrote: > > I have tried everything and Ibm unable to get the values from the > external xml file. > As others have said, describe exactly one intent that failed so that we can reproduce the failure and try to fix it. I note th . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/27/2023 12:46:20 PM

Quick correction: And usually when I am not getting any results the first thing I check is whether I *have properly understood the relative path from the XSLT to the document Ibm trying to make it read. Elisa Beshero-Bondar, PhD (she/they) Chair, TEI Technical Council Program Chair of Digital Me . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/27/2023 12:42:17 PM

o;?Dear Phillip and all,I understand the frustration because I see this sort of problem very frequently when working with my students. It is difficult to explain the whole context of the problem. When working with variables or params that store document nodes, you need to be absolutely clear about . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/27/2023 12:27:36 PM

Hi Phillip, Try a simple testcase consisting of the following three files in the same local directory: <!-- input.xml --> <result/> <!-- data.xml --> <data>hello</data> <!-- stylesheet.xsl --> <?xml version="1.0" encoding="UTF-8"?> . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/27/2023 12:08:13 PM

> I have tried everything and Ibm unable to get the values from the external xml file. > > That's not useful information. If you tell us one thing you tried, describe it precisely, and tell us how it failed, then we can help you move forward. Michael Kay Saxonica . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/27/2023 10:49:57 AM

I have tried everything and Ibm unable to get the values from the external xml file. From: Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, August 22, 2023 11:22 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [EXTERNAL] Re: xslt create a variab . . . Read full entry »


Re: Followup about Saxon-HE and Oracle Unified Directo

Posted 8/24/2023 10:35:56 PM

> I am willing to try to build the plugin with the following in the plugin code: > > System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl"); > > to see if that would allow the OUD to start. Do you think testing that wou . . . Read full entry »


Re: Followup about Saxon-HE and Oracle Unified Directo

Posted 8/24/2023 10:26:30 PM

Hi Michael. I've asked Oracle to ask their dev team what they are expecting and also whether there is a way to pass system properties (including the jaxb.debug one) through to the plugin code. Also I tried both the settings you mentioned in one of your SO responses: "You can force Xalan to . . . Read full entry »


Re: Followup about Saxon-HE and Oracle Unified Directo

Posted 8/24/2023 9:50:58 PM

For reference the SO thread is here: https://stackoverflow.com/questions/76971336/ > > Michael has posted some comment on my SO topic, but I am still a little puzzled about why just having Saxon-HE in the dependencies is causing the OUD instance itself to fail to start, and also how, or eve . . . Read full entry »


Re: Followup about Saxon-HE and Oracle Unified Directo

Posted 8/24/2023 9:17:40 PM

On 24.08.2023 23:06, ohaya ohaya@xxxxxxxxx wrote: Would THAT eliminate the problem and allow the OUD instance to start AND the XSLT being used in the plugin to also work? I would suggest to add a tag for OUD and some code or least explanation how you use it exactly and how it fails to your post on . . . Read full entry »


Followup about Saxon-HE and Oracle Unified Directory

Posted 8/24/2023 9:06:03 PM

This is a followup to a topic I posted on SO about problems I've been having trying to use Saxon-HE with Oracle Unified Directory (OUD - Oracle's current LDAP offering). If you all recall, a while ago, I got help about getting an XSLT working to transform an XML files with a bunch of attributes . . . Read full entry »


Re: Need a series of character replacements ... Is the

Posted 8/24/2023 1:52:39 PM

On Thu, 24 Aug 2023 at 08:36, Roger L Costello costello@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I want to make the following character replacements in regex-group(1): > > Replace ' ' with '_' > Replace '/' with '_' > Replace ',' with '_' > you are rep . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/24/2023 12:07:05 PM

Can you use doc('inc/env.xml') instead of document('inc/env.xml')? The XSLT spec says in https://www.w3.org/TR/xslt-30/#func-document that the processor may ignore errors silently. It will give an error though when you use doc() and when the URI cannot be resolved. On 24.08.2023 13:39, LEGAULT, P . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/24/2023 11:39:48 AM

Ibve tried everything I could find and its does not appear to be reading the xml file From: Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, August 22, 2023 11:22 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [EXTERNAL] Re: xslt create a varia . . . Read full entry »


Re: Need a series of character replacements ... Is the

Posted 8/24/2023 7:57:18 AM

Have you tried replace(regex-group(1), '[ /,]b, '_b) > On 24 Aug 2023, at 09:36, Roger L Costello costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > I want to make the following character replacements in regex-group(1): > > Replace ' ' with '_' > R . . . Read full entry »


Re: Need a series of character replacements ... Is the

Posted 8/24/2023 7:47:12 AM

> I want to make the following character replacements in regex-group(1): > > Replace ' ' with '_' > Replace '/' with '_' > Replace ',' with '_' > > I implemented that by a series of nested calls to the replace() function: > > <xsl:variable name="elmt-name" se . . . Read full entry »


Re: Need a series of character replacements ... Is the

Posted 8/24/2023 7:43:26 AM

How about one call to translate()? > On Aug 24, 2023, at 3:36 AM, Roger L Costello costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > o;?I want to make the following character replacements in regex-group(1): > > Replace ' ' with '_' > Replace '/' with ' . . . Read full entry »


Re: Need a series of character replacements ... Is the

Posted 8/24/2023 7:42:49 AM

On 24.08.2023 09:36, Roger L Costello costello@xxxxxxxxx wrote: I want to make the following character replacements in regex-group(1): Replace ' ' with '_' Replace '/' with '_' Replace ',' with '_' I implemented that by a series of nested calls to the replace() function: <xsl:variable name=&qu . . . Read full entry »


Need a series of character replacements ... Is there a

Posted 8/24/2023 7:36:26 AM

I want to make the following character replacements in regex-group(1): Replace ' ' with '_' Replace '/' with '_' Replace ',' with '_' I implemented that by a series of nested calls to the replace() function: <xsl:variable name="elmt-name" select="replace(replace(replace(regex-g . . . Read full entry »


Re: Why is 'analyze-string' producing this weird outpu

Posted 8/23/2023 1:52:17 PM

> Your group counting is off Ah! Spot on. Thank you David! /Roger From: David Carlisle d.p.carlisle@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, August 23, 2023 9:45 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Why is 'analyze-string' producing this weir . . . Read full entry »


Re: Why is 'analyze-string' producing this weird outpu

Posted 8/23/2023 1:50:27 PM

On Wed, Aug 23, 2023 at 01:40:17PM -0000, Roger L Costello costello@xxxxxxxxx scripsit: > I created several ENTITIES for use by my XSLT: > > <!ENTITY section-num "[0-9]+(\.[0-9]+)+"> > <!ENTITY section-name "[A-Z][a-zA-Z /]+"> > <!ENTITY paren &quo . . . Read full entry »


Re: Why is 'analyze-string' producing this weird outpu

Posted 8/23/2023 1:46:14 PM

arrg as I said entities is confusing.. <!ENTITY section-num "[0-9]+(\.[0-9]+)+"> ^^^ group 2 not group 1 On Wed, 23 Aug 2023 at 14:44, David Carlisle <d.p.carlisle@xxxxxxxxx> wrote: > Your group counting is off (using . . . Read full entry »


Re: Why is 'analyze-string' producing this weird outpu

Posted 8/23/2023 1:44:56 PM

Your group counting is off (using entities is not helping:-) <!ENTITY section-num "[0-9]+(\.[0-9]+)+"> ^^^1 <!ENTITY section-name "[A-Z][a-zA-Z /]+"> <!ENTITY paren "\([^\)]+\)"> I use 'analyze-string' . . . Read full entry »


Why is 'analyze-string' producing this weird output?

Posted 8/23/2023 1:40:04 PM

Hi Folks, I'm baffled. Here is a sample input line: 5.2 Record Type (S/T) The first part -- 5.2 -- is the 'section number'. The second part -- Record Type -- is the 'section name'. The third part -- (S/T) -- is the 'abbreviated name'. I want the XSLT to generate this: <header> < . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/22/2023 4:01:33 PM

Yes Ibm using xslt 2.0 Now I get I cannot figure out if I am on test or prod, so I am giving up. From: Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, August 22, 2023 11:22 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [EXTERNAL] Re: xslt c . . . Read full entry »


Re: Got it working (using Saxon-HE 11_5 was Re: Migrat

Posted 8/22/2023 3:48:43 PM

Your appliance probably uses Saxon behind the woods... For such a simple thing, you'd probably be able to use directly Saxon command line : https://saxonica.com/documentation11/index.html#!using-xsl/commandline Christophe Le 22/08/2023 C 16:51, ohaya ohaya@xxxxxxxxx a C)critB : > Hi, > . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/22/2023 3:21:19 PM

On 22.08.2023 17:10, LEGAULT, PHILLIP plegault@xxxxxxxxxx wrote: > > This one gives me an error, > > Error at xsl:param on line 266 column 107 of process.xsl: > > B XPST0003 XPath syntax error at char 39 on line 266 near > {...environment => normalize-sp...}: > > B B . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/22/2023 3:10:15 PM

This one gives me an error, Error at xsl:param on line 266 column 107 of process.xsl: XPST0003 XPath syntax error at char 39 on line 266 near {...environment => normalize-sp...}: Unexpected token ">" in path expression Error at xsl:param on line 266 column 107 of process.xsl: . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/22/2023 2:57:11 PM

Hm, <xsl:choose> <xsl:when test="$externalDoc/environment = 'test'"> <xsl:text>T</xsl:text> </xsl:when> <xsl:when test="$externalDoc/environment = 'prod'"> <xsl:text></xsl:text> </xsl:when> </xsl:c . . . Read full entry »


Got it working (using Saxon-HE 11_5 was Re: Migrating

Posted 8/22/2023 2:51:41 PM

Hi, FYI, I was able to use the almost same Java code with Saxon-HE 11_5 and got the XSLT working. I had to add a line to the Java code to set the system property: System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl"); and on the . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/22/2023 2:23:07 PM

Do you have control over the ./inc/env.xml file? If so, my thought would be to skip the <root> and have it say <?xml version="1.0" encoding="UTF-8"?> <environment>test</environment> (Just easier for humans to read, I think.) Given that env file the fo . . . Read full entry »


Re: xslt create a variable from external xml file

Posted 8/22/2023 1:36:27 PM

On 22.08.2023 15:34, LEGAULT, PHILLIP plegault@xxxxxxxxxx wrote: > > I have a need to determine what environment Ibm working on without > hardcoding the differences in the large xslt file. > > I have tried > > <xsl:variable name="externalDoc" select="document . . . Read full entry »


xslt create a variable from external xml file

Posted 8/22/2023 1:33:50 PM

I have a need to determine what environment I'm working on without hardcoding the differences in the large xslt file. I have tried <xsl:variable name="externalDoc" select="document('inc/env.xml')"/> File content <?xml version="1.0" encoding="UTF-8" . . . Read full entry »


Re: Re: Migrating XSLT (2.0) from appliance to Java?

Posted 8/22/2023 12:34:46 PM

If your XSLT is 2.0 or 3.0, then with Java, you must add Saxon-HE to your classpath. Saxon-HE has some dependencies, see https://repo1.maven.org/maven2/net/sf/saxon/Saxon-HE/12.3/Saxon-HE-12.3.pom Once done, your code should work correctly. You may also have a look to Saxon documentation, and m . . . Read full entry »


Re: Re: Migrating XSLT (2.0) from appliance to Java?

Posted 8/22/2023 12:30:55 PM

On 22.08.2023 14:22, ohaya ohaya@xxxxxxxxx wrote: public class Main { public static void main(String args[]) throws Exception { StreamSource source = new StreamSource(args[0]); StreamSource stylesource = new StreamSource(args[1]); TransformerFactory factory = TransformerFactory.newInstance(); Tran . . . Read full entry »


Re: Migrating XSLT (2.0) from appliance to Java?

Posted 8/22/2023 12:22:20 PM

Hi, My apologies - I accidentally clicked "Send" before I had added my text :( !! A while ago, (in February 2023), I had a thread where you all helped me get an XSLT working. I think this was the thread in the archives: "Followup question: was Re: XSLT to populate a SAML Attr . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/20/2023 12:50:46 PM

Dave, I had to use it without the template, and it works. Thank you, now I hope I can get it to work with the other 80 questions. From: David Carlisle d.p.carlisle@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Sunday, August 20, 2023 8:14 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/20/2023 12:13:48 PM

On Sun, 20 Aug 2023 at 13:02, LEGAULT, PHILLIP plegault@xxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Ibm a novice when it comes to xslt, and xml for that matter. I came across > a java script library with saxon xslt 2.0 that I have been using with my > python scri . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/20/2023 12:02:06 PM

Ibm a novice when it comes to xslt, and xml for that matter. I came across a java script library with saxon xslt 2.0 that I have been using with my python scripts. Switching to xslt 3.0? From: David Carlisle d.p.carlisle@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Saturday, A . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/19/2023 4:33:11 PM

> Simple as I can get it It would have helped if it were well formed. I used <records> <Case_Responses> <records> <QuestionnaireQuestion> <DSMapping>Indication</DSMapping> <Questionnaire> <QuestionnaireIdentifier>Safety_MedicalA . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/19/2023 3:28:10 PM

Hi Phil, The <xsl:value-of> inside your bwhenb conditions do not consider whatever test might have preceded them; they are simply evaluated as-is when their bwhenb branch is followed. In your case, I suggest separating the selection of the record and the acquisition of the data from tha . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/19/2023 2:41:02 PM

Simple as I can get it <?xml version="1.0" encoding="UTF-8"?> <records> <Case_Responses> <records> <QuestionnaireQuestion> <DSMapping>Indication</DSMapping_GCC__c> <Questionnaire . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/19/2023 1:35:56 PM

Hi Phil, What is the simplest input XML and expected output XML that describes your question, without using domain-specific elements (or at least not long complicated ones)? - Chris On Sat, Aug 19, 2023 at 9:22b/AM LEGAULT, PHILLIP plegault@xxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxx . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/19/2023 1:22:40 PM

I do understand that this is entirely volunteer response on your part. I totally appreciate any help I receive from this group, and I donbt take it for granted that I will receive an answer that will solve my problem. Simply put. If QuestionnaireIdentifier_GCC__c = Safety_MedicalAE Questionnaire, . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/19/2023 1:10:41 PM

Hi Phil, It requires extra effort on our part to understand your namespaces, element purposes, and so on. And most people here are volunteering their time, so we try to avoid spending extra effort for a one-time understanding that no longer matters when the question is answered. I know including e . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/19/2023 12:56:36 PM

Yes, the document is quite large with 80 questions and other information I wanted to just include the relevant information. Below has all the elements up to the 2 questions from 2 separate questionnaires. If the QuestionnaireIdentifier_GCC__c is equal to <Safety_MedicalAE Questionnaire> then . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/19/2023 8:20:39 AM

your xsl fragment doesn't match your xml unless we infer some parent elements and namespaces, but your value-of ignores the context of your test. You have if there is a Safety_MedicalAE Questionnaire anywhere in the document output all sf:Response_GCC__c that are siblings of indication else o . . . Read full entry »


Re: xslt 2 when test multiple conditions

Posted 8/18/2023 10:06:30 PM

Couldn't you simplify the example to make the relevant data stand out? Spotting what you're talking about in this example is like a spot-the-ball competition: too much noise, not enough signal. Surprisingly often, producing a simplified example actually enables you to find the solution yourself. . . . Read full entry »


xslt 2 when test multiple conditions

Posted 8/18/2023 8:08:13 PM

I have an xml file with answers to multiple questionnaires. When one of the questionnaires <Safety_MedicalAE Questionnaire> has answered the same question different from on of the other questionnaires I need the Safety_MedicalAE Questionnaire response without the others. Example <records . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/7/2023 11:40:51 AM

On 06/08/2023 14:45, Peter Flynn peter@xxxxxxxxxxx wrote: On 06/08/2023 14:17, Dave Pawson dave.pawson@xxxxxxxxx wrote: ... Oops. Just spotted that the '3' probably refers to the version of XSL-IDE rather than XSLT :-( although tbh adding the new element type names is probably within even my elisp . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/7/2023 11:11:39 AM

For me, using Fedora default emacs installation. put the 4 files in directory X. 1. del xslt.rnc in default emacs schema dir 2. Add 'new' dir X, loaded with your 4 files 3. prepend that dir to emacs rng-schema-locating-files variable and it works! HTH On Mon, 7 Aug 2023 at 12:07, Dave Pawson < . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/7/2023 11:08:17 AM

Thanks Norm. On Mon, 7 Aug 2023 at 11:53, Norm Tovey-Walsh ndw@xxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > "Dave Pawson dave.pawson@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > > @ndw and Mohamed ZERGAOUI (Innovimax) > > . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/7/2023 10:53:20 AM

"Dave Pawson dave.pawson@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > @ndw and Mohamed ZERGAOUI (Innovimax) > have done it. > Need to figure out how to differentiate different versions to > schemas. Right. Mohamed mostly. I just packaged it up. I s . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/6/2023 2:20:29 PM

On Sun, 6 Aug 2023 at 14:55, Dave Pawson dave.pawson@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > @ndw and Mohamed ZERGAOUI (Innovimax) > have done it. > Need to figure out how to differentiate different versions to schemas. > > regards > > That's . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/6/2023 1:55:33 PM

On Sun, 6 Aug 2023 at 14:44, Peter Flynn peter@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On 06/08/2023 14:17, Dave Pawson dave.pawson@xxxxxxxxx wrote: > > Tks Peter. Have that. > > Doesn't update to 3 though. > > Oops. Just spotted that the '3' p . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/6/2023 1:44:45 PM

On 06/08/2023 14:17, Dave Pawson dave.pawson@xxxxxxxxx wrote: Tks Peter. Have that. Doesn't update to 3 though. Oops. Just spotted that the '3' probably refers to the version of XSL-IDE rather than XSLT :-( although tbh adding the new element type names is probably within even my elisp-challenged s . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/6/2023 1:16:49 PM

Tks Peter. Have that. Doesn't update to 3 though. regards On Sun, 6 Aug 2023 at 14:00, Peter Flynn peter@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On 06/08/2023 10:56, Dave Pawson dave.pawson@xxxxxxxxx wrote: > > Has anyone found such a mode please? > & . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/6/2023 1:00:51 PM

On 06/08/2023 10:56, Dave Pawson dave.pawson@xxxxxxxxx wrote: Has anyone found such a mode please? ;;;; xslide3.el --- XSL Integrated Development Environment ;; Copyright (C) 1998, 1999, 2000, 2001, 2003, 2011, 2013 Tony Graham ;; Author: Tony Graham <tkg@xxxxxxxxxxxx> ;; Contributors: Simon . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/6/2023 11:15:14 AM

Thank you David. regards On Sun, 6 Aug 2023 at 11:49, David Carlisle d.p.carlisle@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > nxml-mode (of course:-) > > with a schemas.xml entry > > <uri pattern="*.xsl" uri="schema/xslt.rnc"/> . . . Read full entry »


Re: emacs mode supports xslt 3.0?

Posted 8/6/2023 10:49:43 AM

nxml-mode (of course:-) with a schemas.xml entry <uri pattern="*.xsl" uri="schema/xslt.rnc"/> and a xslt.rnc that is just xslt10 = external "xslt10.rnc" xslt20 = external "xslt20.rnc" xslt30 = external "schema-for-xslt30.rnc" start = xslt . . . Read full entry »


emacs mode supports xslt 3.0?

Posted 8/6/2023 9:56:32 AM

Has anyone found such a mode please? TiA regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. . . . Read full entry »


Re: Resetting footnotes not working

Posted 7/21/2023 7:26:32 AM

Hi Mark, Congratulations! It's my pleasure. On 2023/07/21 15:37, Mark Giffin m1879@xxxxxxxxxxxxx wrote: > Hi Toshihiko, > > This worked for me to reset PDF footnotes on every page, thanks very > much. > > Here's how I did it. In addition to adding these axf: attributes to > . . . Read full entry »


Re: Resetting footnotes not working

Posted 7/21/2023 6:36:59 AM

Hi Toshihiko, This worked for me to reset PDF footnotes on every page, thanks very much. Here's how I did it. In addition to adding these axf: attributes to <fo:page-sequence>: <fo:page-sequence force-page-count="auto" master-reference="ditamap-body-sequence" B B B . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/20/2023 8:25:25 AM

"Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > If you track StackOverflow, there are still plenty of DPHs out there > trying to process XML without a proper parser, but these days the P > tends to be PHP or Python. I *cough* have a sugg . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/20/2023 7:54:34 AM

> The DPH was one intended beneficiary of the stated goal that "It shall > be easy to write programs which process XML documents." > I've always been amused by the term because my first encounter with XML was in around 1998, when I was called in to audit a project that had just . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/20/2023 3:03:39 AM

On Thu, 2023-07-20 at 02:19 +0000, C. M. Sperberg-McQueen cmsmcq@xxxxxxxxxxxxxxxxx wrote: > > I have the impression (based on no hard evidence) that many of the > people who used Perl and similar tools to get things done with their > SGML data now use XSLT for all the things they used t . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/20/2023 2:18:41 AM

"Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: > David Carlisle wrote: > >> an alternative is to invoke your inner DPH > > DPH = ? "Desperate Perl hacker". An imaginary figure frequently invoked during the ini . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 9:25:41 PM

And there are data structures, such as the Finger Tree (of course, not XML-based) that guarantee O(log(N)) access when searching by key or by position. Thus searching among 100 Billions of items in a Finger tree will be as fast as the average linear search in a sequence of 66 items. On Wed, Jul . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 8:31:58 PM

> I have an XML file containing over 2 million <record> elements. I want to obtain the first 10 <record> elements. In general, there is no guarantee for achieving fast processing, unless there has been some initial / additional preparation. Imagine that "the first 10 <reco . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 5:20:50 PM

Just put it through a streaming XSLT 3.0 processor and it should work just fine. Note, even a non-streaming XSLT processor, if it has a half-way decent optimizer, should stop processing after the 10th record. The difference with a streaming processor is that it will stop the XML parser reading the . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 4:41:45 PM

David Carlisle wrote: > an alternative is to invoke your inner DPH DPH = ? /Roger . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 4:31:01 PM

On Wed, 19 Jul 2023 at 17:25, Martin Honnen martin.honnen@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > If you don't have access to Saxon EE then instead of invoking your DPH you > can use STX > I have only been using xslt (almost every day) for 25 years so I guess . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 4:25:57 PM

On 19.07.2023 18:09, David Carlisle d.p.carlisle@xxxxxxxxx wrote: > > > On Wed, 19 Jul 2023 at 16:15, Roger L Costello costello@xxxxxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi Folks, > > I have an XML file containing over 2 million <recor . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 4:09:03 PM

On Wed, 19 Jul 2023 at 16:15, Roger L Costello costello@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi Folks, > > I have an XML file containing over 2 million <record> elements. I want to > obtain the first 10 <record> elements. > > Here's how . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 3:50:18 PM

On 19.07.2023 17:38, Martin Honnen martin.honnen@xxxxxx wrote: On 19.07.2023 17:16, Roger L Costello costello@xxxxxxxxx wrote: I have an XML file containing over 2 million <record> elements. I want to obtain the first 10 <record> elements. Here's how I did it: <xsl:for-each select=& . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 3:37:53 PM

On 19.07.2023 17:16, Roger L Costello costello@xxxxxxxxx wrote: I have an XML file containing over 2 million <record> elements. I want to obtain the first 10 <record> elements. Here's how I did it: <xsl:for-each select="/Document/record[position() le 10]"> <xsl: . . . Read full entry »


Re: How to efficiently obtain the first 10 records of

Posted 7/19/2023 3:21:09 PM

The below should do it <xsl:for-each select="/Document/record"> <xsl:if test="position() &lt;= 10"> <xsl:copy-of select="."/> </xsl:if> </xsl:for-each> -----Original Message----- From: Roger L Costello costello@xxxxx . . . Read full entry »


How to efficiently obtain the first 10 records of a fi

Posted 7/19/2023 3:15:49 PM

Hi Folks, I have an XML file containing over 2 million <record> elements. I want to obtain the first 10 <record> elements. Here's how I did it: <xsl:for-each select="/Document/record[position() le 10]"> <xsl:sequence select="."/> </xsl:for-each& . . . Read full entry »


Reminder: Declarative Amsterdam Call for Papers

Posted 7/19/2023 9:28:47 AM

Reminder: The fifth edition of Declarative Amsterdam will take place on 2 and 3 November 2023 at the Science Park, Amsterdam. It will be a hybrid conference with the opportunity to attend live or online, for both attendees and presenters. The first day will feature tutorials, combining presenta . . . Read full entry »


[ANN] Why Don't People Like XML? Balisage pre-conferen

Posted 7/18/2023 4:13:46 PM

Let's start Balisage with a bang! On Sunday at the pre-conference, Allen Renear's talkB B "The SGML/XML Approach to Document Processing:B B [an incomplete] History of Criticisms and Challenges" should get us all thinking and talking. Details at:B B https://balisage.net/2023/Program.htm . . . Read full entry »


Re: Resetting footnotes not working

Posted 7/15/2023 4:17:09 AM

Hi Mark, I found that there are no effective examples for this extension property. So I made the example from Antenna House US site sample archive. Please download the ZIP file that contains .fo and .pdf files. (This is the link to my OneDrive. It is safe.) https://1drv.ms/u/s!AkbL99fLhxKUiNAw . . . Read full entry »


Re: Resetting footnotes not working

Posted 7/15/2023 1:21:22 AM

Thanks very much for the tip, Toshihiko. I should have checked for an extension. I am using AH v6.2 and the docs for this version say that it supports axf:footnote-number-reset. But when I try to use it according to the docs, it has no effect on the footnote numbering. I'm using it like below, . . . Read full entry »


Re: Resetting footnotes not working

Posted 7/14/2023 7:15:17 AM

Hi Mark, > I need to reset footnote numbers to 1 on every page. I don't have used this extension. But have you tried this? https://www.antenna.co.jp/AHF/help/en/ahf-ext.html#axf.footnote-number-reset Regards, Toshihiko Makita Antenna House, Ina Branch. On 2023/07/14 16:00, Mark Giffin m18 . . . Read full entry »


Resetting footnotes not working

Posted 7/14/2023 6:59:33 AM

I'm running XSL-FO through Antenna House to make PDF. I need to reset footnote numbers to 1 on every page. I'm using the AH "area tree" XML because it contains the page breaks. My examples below are simplified. A footnote number in the input XML look like <TextArea text="2" . . . Read full entry »


[ANN] LLMs and AI at Balisage 2023

Posted 7/11/2023 6:30:07 PM

Balisage: The Markup Conference 2023 will include a few presentations on Large Language Models and Artificial Intelligence. (Some will enjoy these timely topics, some will consider this a waste of time. If you are interested, please join us (virtually) at Balisage to listen to: - Privately Automat . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/11/2023 5:26:49 AM

John Lumley john@xxxxxxxxxxxxxx > On 7 Jul 2023, at 14:35, Dave Pawson dave.pawson@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > o;?On Fri, 7 Jul 2023 at 14:26, Dorothy Hoskins dorothy.hoskins@xxxxxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > . . . Read full entry »


Re: Is it possible to write an XSLT program that outpu

Posted 7/8/2023 4:27:53 AM

> >> They've been working on the RepRap for nearly 20 years, > >> and currently it can replicate 70% of itself: > >> > > > https://reprap.org/wiki/RepRap > > > > Exactly! This is the whole point. > > > > They could have c . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/8/2023 3:26:35 AM

On Fri, 2023-07-07 at 17:20 +0000, Michael Kay mike@xxxxxxxxxxxx wrote: > > > How is ChatGPT assessing the quality of the information it ingests, > and how long will it be before people start gaming it? They are already gaming it. Search for "prompt injection" for one aspect. . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 6:04:41 PM

> Which begs the question, how might the xsl-list archives be ... > declared / converted / made available (whatever) as training data? > And for this set (minor drawback), how to extract the 'eventual' > solution from others proffered in error? This isn't just "minor". Pe . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 5:19:48 PM

> Or if you ask it to go bmetab and say, tell you things such as who contributes to the open forums and lists, and what they say b something it will presumably fabulate as cheerfully as it does about anything, until itbs told it shouldnbt. Think about this for a second. This is about the er . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/7/2023 4:37:45 PM

Norm, yes indeed, they are saying 'hallucinating', which is a terrible euphemism, because it: - Sounds fairly benign (b/c hallucinating people are not generally destructive or antisocial) - Implies there is someone 'there' to 'hallucinate', which has not been demonstrated - Implies corrigibility, . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/7/2023 4:15:52 PM

Hallucin-AI-ting -----Original Message----- From: Dave Pawson dave.pawson@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Saturday, 8 July 2023 03:56 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: ChatGPT results are "subject to review" On Fri, 7 Jul 2023 at 16:41, No . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 4:13:08 PM

Gentle readers (which includes you, John Lumley :-), The XSL-List archives are undoubtedly already in the training set for the big LLMs. All our old code there is what Dorothy is seeing, regurgitated. (From where else could they have got it?) They should be paying us royalties. Indeed how well on . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/7/2023 3:56:04 PM

On Fri, 7 Jul 2023 at 16:39, Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi Dorothy, > > > > Among the interesting points made in your report is that it cannot actually check well-formedness. It says it can, but it is lyi . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/7/2023 3:55:51 PM

On Fri, 7 Jul 2023 at 16:41, Norm Tovey-Walsh ndw@xxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > (Or it would be lying were it capable of lying. What it is doing is > > what it was programmed to do, namely chat with you about your topic of > > choice.) . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/7/2023 3:41:25 PM

> (Or it would be lying were it capable of lying. What it is doing is > what it was programmed to do, namely chat with you about your topic of > choice.) The term of art for LLMs just making [expletive] up seems to be bhallucinatingb. Be seeing y . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/7/2023 3:39:01 PM

Hi Dorothy, Among the interesting points made in your report is that it cannot actually check well-formedness. It says it can, but it is lying. (Or it would be lying were it capable of lying. What it is doing is what it was programmed to do, namely chat with you about your topic of choice.) Rega . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 2:49:22 PM

> Michael, I wonder what "nasty accidents" you are thinking of -- some XSLTs used in particular industries with real-world safety issues? Maybe we can start to create some advice for clients on QA and testing protocols. To add to my previous response, I've always been a bit irritated . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 2:39:20 PM

> Michael, I wonder what "nasty accidents" you are thinking of -- some XSLTs used in particular industries with real-world safety issues? I came across an example where XSLT was being used to display the results of a clinical study. Anomalous results were supposed to be shown in red. . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 1:43:11 PM

On Fri, 7 Jul 2023 at 15.35, Dave Pawson dave.pawson@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On Fri, 7 Jul 2023 at 14:26, Dorothy Hoskins dorothy.hoskins@xxxxxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > ... > > From what I see in the l . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 1:43:07 PM

Perhaps more importantly, I assume there is no way we can prevent aforementioned hazard from using the XSLT-list as training data? Having made some contributions I in no way wish those to be used/mangled by a glorified deep pattern-matcher. Such a pity that knowledge-based programming didnbt get r . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 1:39:43 PM

John Lumley john@xxxxxxxxxxxxxx > On 7 Jul 2023, at 14:35, Dave Pawson dave.pawson@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > o;?On Fri, 7 Jul 2023 at 14:26, Dorothy Hoskins dorothy.hoskins@xxxxxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > . . . Read full entry »


Re: bad code Re: Subject: ChatGPT results are "subject

Posted 7/7/2023 1:35:30 PM

On Fri, 7 Jul 2023 at 14:26, Dorothy Hoskins dorothy.hoskins@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: ... . . . Read full entry »


bad code Re: Subject: ChatGPT results are "subject to

Posted 7/7/2023 1:26:27 PM

Hi all, it did not take much investigation to find that there was an invalidity in the XSLT that was "stupid" (a misplaced attribute constructor after a child element constructor in a template), and there were various other things that I improved to get it to produce the same result as my . . . Read full entry »


Re: Is it possible to write an XSLT program that outpu

Posted 7/7/2023 8:22:23 AM

"Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes: >> They've been working on the RepRap for nearly 20 years, >> and currently it can replicate 70% of itself: >> > > https://reprap.org/wiki/RepRap > > Exactly! . . . Read full entry »


Re: Is it possible to write an XSLT program that outpu

Posted 7/6/2023 6:47:30 PM

On Thu, Jul 6, 2023 at 10:40b/AM Dimitre Novatchev dnovatchev@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > They've been working on the RepRap for nearly 20 years, > > and currently it can replicate 70% of itself: > > > > https://reprap.org/wiki/R . . . Read full entry »


Re: Is it possible to write an XSLT program that outpu

Posted 7/6/2023 5:40:40 PM

> They've been working on the RepRap for nearly 20 years, > and currently it can replicate 70% of itself: > > https://reprap.org/wiki/RepRap Exactly! This is the whole point. They could have created a lot of real value during these 20 years. Or, to quote this: "By focusing . . . Read full entry »


Re: Is it possible to write an XSLT program that outpu

Posted 7/6/2023 4:58:32 PM

On 02/07/2023 21:07, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote: ... This is why we will probably never see a 3D printer that "prints" another 3D printer... This won't be more cost-efficient than simply buying another one (and may require additional special knowledge and maintenance) . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/6/2023 4:22:06 PM

Let's invite ChatGPT(latest) in the XSLT 4-0 CG ppp On Thu, Jul 6, 2023 at 8:53b/AM Michael Kay mike@xxxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > I find this all very scary. If it gets it right 80% of the time, that's > fine, people will test it carefully . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/6/2023 3:53:52 PM

I find this all very scary. If it gets it right 80% of the time, that's fine, people will test it carefully before putting it into production. It's when it starts getting it right 99% of the time that we should start worrying: people will get overconfident and we will have some nasty accidents as a . . . Read full entry »


Re: ChatGPT results are "subject to review"

Posted 7/6/2023 3:52:56 PM

Thanks Dorothy, an interesting exercise. Just a little scary when you think how long ChatGPT has been around! From what you're saying, it could soon be producing fair quality complex transforms with minimal checking. When it can put DC out of a job, I'll be really impressed :-) regards On T . . . Read full entry »


ChatGPT results are "subject to review"

Posted 7/6/2023 3:45:37 PM

I recently ran a small exercise in ChatGPT. I provided it a sample input and output that would require it to put text from a footnote in XML input and insert it a popup-enabled span in the HTML output where the footnote reference number appeared in the source XML. The first stylesheet generated in . . . Read full entry »


Re: xslt coverage [was Re: Is it possible to write an

Posted 7/6/2023 12:01:26 PM

Hello Liam, I could definitely post something to GitHub and then announce it's availably here. Glad you're interested, and hope others would find it useful as well. -Tony XSL-List info and archiveEasyUnsubscribe (by email) . . . Read full entry »


Re: XSLT 2 I have a for-each, When there is only 1 in

Posted 7/5/2023 2:12:01 PM

OK I just received new information on What I need here. I just want the primary consumer initials. <sf:Consumers__r> <done>true</done> <queryLocator xsi:nil="true"/> <records xsi:type="sf:RelatedConsumer_GCC__c"> <s . . . Read full entry »


Re: XSLT 2 I have a for-each, When there is only 1 in

Posted 7/5/2023 2:00:24 PM

You haven't shown your source document and it's not at all clear what your question is, but an absolute path inside a for-each > xsl:when test="/records/... is always a danger signal because your're testing a condition that' doesn't depend on which element in the iteration is being proces . . . Read full entry »


Re: XSLT 2 I have a for-each, When there is only 1 in

Posted 7/5/2023 1:57:35 PM

Hi Phillip, This is difficult for me to follow. Can you please post a simplified XSLT (no namespaces, no unnecessary element hierarchy, use generic values, etc.), plus a sample input document and expected output document? In other words, try to distill your question down to the very essence of wh . . . Read full entry »


XSLT 2 I have a for-each, When there is only 1 instanc

Posted 7/5/2023 1:51:01 PM

XSLT 2 I have a for-each for consumer initials , When there is only 1 instance I want to display just the 1 initials. If there are 2 I a want it to display with PL, JL, etc. Here is what I have: <reporterfamilyname><xsl:for-each select="/records/sf:Consumers__r/records&qu . . . Read full entry »


Re: XSLT2 Change country name to alpha-2

Posted 7/3/2023 12:45:17 AM

Tried it like this: <codes> <country alpha-2="US" name = "United States"/> </codes> <xsl:key name="alpha-by-name" match="codes/country" use="@name"/> <xsl:output method="xml" version="1.0" encoding=&q . . . Read full entry »


Re: Is it possible to write an XSLT program that outpu

Posted 7/2/2023 10:52:45 PM

Hello Roger, Yes, I don't see anything preventing a theoretically indefinite number of levels of XSLT writing XSLT writing XSLT. I have written 'first-level' XSLT writing XSLT for automated conversions, but not beyond that. However, going beyond that can easily be implemented. I've also authored X . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/28/2023 6:18:33 PM

Hi, I finally got something that works and doesn't take too long. Debugging with xsl:message, I adapted the XSLT to prevent calculating the same thing a lot of time. I come back to "except" which is quite more readable. This is it : <xsl:stylesheet xmlns:xsl="http://www.w . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/26/2023 4:16:49 PM

Hi Michael, Thanks for your feedback. Yes true the xsl:break on the iteration over 100 000 000 make it ungreedy, just enough iteration, no more. I add <xsl:assert test=". lt 1000"> it's never launched. I also add an xsl:message to see the value which is no high at all (1, 2, ... le . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/26/2023 9:30:47 AM

> I also implemented Michael's transitive closure suggestion : > > It works fine, but it's quite long to process. On little use-case files it's Ok but it doesn't go to the end (after more than 15min) on my real big file (about 33 000 GRCHOIX) > Maybe it has to do with the function els: . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/26/2023 6:27:07 AM

I also implemented Michael's transitive closure suggestion : It works fine, but it's quite long to process. On little use-case files it's Ok but it doesn't go to the end (after more than 15min) on my real big file (about 33 000 GRCHOIX) Maybe it has to do with the function els:transitive-closure . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/26/2023 6:05:56 AM

Hi all, I go ahead with Martin's solution and have implemented all business rules around that "grouping". It's fast but I realized that it can generate duplicated groups on my big file, which is quite a problem (some people in my company will have to spend avec 60 days working on that ou . . . Read full entry »


Re: Building a Trie

Posted 6/22/2023 7:38:32 PM

On a first read, it seems that using a suffix tree could be useful for such kind of problems: https://en.wikipedia.org/wiki/Suffix_tree Thanks, Dimitre On Thu, Jun 22, 2023 at 4:34b/AM Michael Mueller-Hillebrand michael.mueller-hillebrand@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> . . . Read full entry »


Re: Building a Trie

Posted 6/22/2023 11:33:57 AM

Well, putting 5 minutes DemoJam in a mail... The "problem" I challenged myself with, was the solution to a puzzle presented in a magazine: Find the longest word in a 16x16 square of (seemingly random) letters. (This is more fun in German than in English.) To solve this, I got myself a wo . . . Read full entry »


Re: Building a Trie

Posted 6/22/2023 8:12:33 AM

Incidentally, in SaxonJ the default data structure for a map is in fact a HashTrie, implemented using Michael Froh's ImmutableMap library. But a HashTrie gives you sorted access by hash code, not by the actual key value. An xsl:key index defined using saxon:range-key="yes" is implemented . . . Read full entry »


Re: Building a Trie

Posted 6/22/2023 7:44:41 AM

Saxon (-PE and higher) has extensions that might help. First, on xsl:key you can declare saxon:range-key="yes" (which for some reason is not mentioned at https://www.saxonica.com/documentation12/index.html#!extensions/attributes but only at https://www.saxonica.com/documentation12/index. . . . Read full entry »


Re: Building a Trie

Posted 6/22/2023 6:53:04 AM

> Now I learned about Tries https://en.wikipedia.org/wiki/Trie which is possibly a helpful method to > tackle the left-over problem with my DemoJam contribution at Markup UK (thanks a lot for the > applause!). I expect only a small minority of readers on this list were able to see your de . . . Read full entry »


Building a Trie

Posted 6/22/2023 6:29:12 AM

Dear community, Now I learned about Tries https://en.wikipedia.org/wiki/Trie which is possibly a helpful method to tackle the left-over problem with my DemoJam contribution at Markup UK (thanks a lot for the applause!). Without spending too much time at the details, but at the heart of the perfor . . . Read full entry »


Other work than table tagging

Posted 6/21/2023 6:52:03 PM

Final thoughts: Just read today -- It seems like there is other work arising that some displaced XML workers could move into https://www.theverge.com/features/23764584/ai-artificial-intelligence-data-notation-labor-scale-surge-remotasks-openai-chatbots So maybe we will automate XSLT work but there . . . Read full entry »


Re: Re: table transformation

Posted 6/21/2023 1:24:03 PM

To some extent, the conversion industry has already been through one similar transformation, when OCR got good enough that there was no longer any real point in the old double-keyboarding + proofreading workflowbreplaced by separate OCR passes + human reconciliation of discrepancies. We have a goo . . . Read full entry »


Re: table transformation

Posted 6/21/2023 7:02:10 AM

> HI, as a person who has met and worked with people overseas who rekey PDFs and add metadata and XML tags to text extracted from them (or from Word) to create XML I am concerned about the ultimate effects of ChatGPT on the workers. You're quite right to be concerned. They are as doomed as the . . . Read full entry »


Re: table transformation

Posted 6/21/2023 3:14:36 AM

HI, as a person who has met and worked with people overseas who rekey PDFs and add metadata and XML tags to text extracted from them (or from Word) to create XML I am concerned about the ultimate effects of ChatGPT on the workers. In Chennai, doing the rekeying and markup was a lower middle class . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/19/2023 8:44:22 PM

Hi Matthieu, Currently TAN is a static download, either through github or the website. Making it available through package repos is a future to-do item, as well as better organization into subpackages and breaking out dependencies. The license was designed to encourage other developers to deve . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/19/2023 7:38:43 AM

Hi Joel, Thanks for the link to Tan library. I'm not sure I can use it for my purpose, because it groups the text content of child nodes. But I guess I could adapt my input or the function code. BTW it looks like TAN functions use a lot of other TAN functions, which means I should get the whole . . . Read full entry »


Table transformation

Posted 6/19/2023 6:38:54 AM

Interesting use of LLM https://blog.jonudell.net/2023/06/18/why-llm-assisted-table-transformation-is-a-big-deal/ regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/16/2023 2:54:16 PM

Hi Matthieu, You may want to look at tan:group-elements-by-shared-node-values(). Overview: https://textalign.net/release/TAN-2021/guidelines/xhtml/ch13s02.xhtml#function-group-elements-by-shared-node-values Code (starting line 272): https://github.com/textalign/TAN-2021/blob/master/functions/node . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/16/2023 1:34:34 PM

> On 16 Jun 2023, at 14:29, John Lumley john@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Doesnbt the xsl:iterate solution need an xsl:break under the xsl:when test=bempty($next-nodes)b, Mike? > > John Lumley > Thanks, yes. I did say it was untested! . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/16/2023 1:29:24 PM

Doesnbt the xsl:iterate solution need an xsl:break under the xsl:when test=bempty($next-nodes)b, Mike? John Lumley Sent from my iPad > On 16 Jun 2023, at 13:00, Michael Kay michaelkay90@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > o;?This feels to me as being . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/16/2023 12:00:00 PM

This feels to me as being not so much a grouping problem, as a transitive closure problem. There's a relation between two elements ("have at least one value in common") and you're looking for the transitive closure of that relation to form one group. For efficiency you first need to find . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/16/2023 11:51:34 AM

On 6/16/2023 1:09 PM, Matthieu Ricaud-Dussarget ricaudm@xxxxxxxxx wrote: > > Hi all, > > I need to group elements that have at least one common valueB : > > <FORMS> > > <!--CASE 1--> > > <GRCHOIX CODE="grchoix-1"> > > <CHOIX CODE=&q . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/16/2023 11:24:26 AM

Message 2/2 <!--======================================================================================--> <!--STEP-3--> <!--======================================================================================--> <!--2nd grouping--> <xsl:template match="FO . . . Read full entry »


Re: Grouping elements that have at least one common va

Posted 6/16/2023 11:15:23 AM

My (horrible) XSLT solution Message 1/2 : <?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" version="3.0"> <!--========== . . . Read full entry »


Grouping elements that have at least one common value

Posted 6/16/2023 11:08:56 AM

Hi all, I need to group elements that have at least one common value : <FORMS> <!--CASE 1--> <GRCHOIX CODE="grchoix-1"> <CHOIX CODE="choix-1"/> <CHOIX CODE="choix-2"/> </GRCHOIX> <GRCHOIX CODE="grc . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/16/2023 9:57:57 AM

Am 6/15/2023 um 11:06 PM schrieb rick@xxxxxxxxxxxxxx: > > Thank you Martin. Here is my working stylesheet. I just have to add > the second stage to insert the summary data into one of the topics. I > appreciate your generous help. > > Rick > > <?xml version="1.0" . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/16/2023 12:55:16 AM

If youbre not using DITA-OT [1] for anything nontrivial, youbre doing it the hard way. Therebs a bit of a learning curve by probably not as long as this thread. bPaul [1] https://www.dita-ot.org/ > On Jun 15, 2023, at 10:52, Dave Pawson dave.pawson@xxxxxxxxx <xsl-list-service@xxxxxxxxx . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/15/2023 9:06:15 PM

Thank you Martin. Here is my working stylesheet. I just have to add the second stage to insert the summary data into one of the topics. I appreciate your generous help. Rick <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/ . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/15/2023 7:47:01 PM

On 6/15/2023 9:26 PM, rick@xxxxxxxxxxxxxx wrote: > > Thank you Martin. I first want to get a list of all uribs throughout > the whole hierarchy, then I can integrate the rest of your code. I > have a recursive function to process the uribs but I am not sure how > to get a cumulativ . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/15/2023 7:26:30 PM

Thank you Martin. I first want to get a list of all uribs throughout the whole hierarchy, then I can integrate the rest of your code. I have a recursive function to process the uribs but I am not sure how to get a cumulative list. Thank you for your generous help. <?xml version="1.0&qu . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/15/2023 5:51:19 PM

Hi Martin, This works well; here is the result: <?xml version="1.0" encoding="UTF-8"?> <map-data> <summary> <spare quantity="2">Spare1</spare> <spare quantity="6">Spare2</spare> <spa . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/15/2023 3:43:20 PM

On 6/15/2023 4:46 PM, rick@xxxxxxxxxxxxxx wrote: > > > I am still trying to find the best way to navigate through an entire > ditamap structure, collect certain data, then reprocess the map to > insert the pertinent data into one of the topics. Earlier this week I > posted code us . . . Read full entry »


Re: Making a lookup structure from multiple documents

Posted 6/15/2023 3:27:47 PM

On 6/13/2023 6:05 PM, rick@xxxxxxxxxxxxxx wrote: > > Now that I have collected my data from the entire ditamap hierarchy, I > need to make a second pass through the map and any referenced topics > and use the summary data in a particular element in one of the topics. > I am not sure . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/15/2023 3:04:34 PM

Am 6/15/2023 um 4:46 PM schrieb rick@xxxxxxxxxxxxxx: I am still trying to find the best way to navigate through an entire ditamap structure, collect certain data, then reprocess the map to insert the pertinent data into one of the topics. Earlier this week I posted code using an accumulator, but w . . . Read full entry »


Re: Collect data from a whole map hierarchy, then use

Posted 6/15/2023 2:51:51 PM

The guy who was largely responsible for DITA XSLT was on this list at one time? You may find his name via Google. Dita has an odd structure. He's the man to ask. regards On Thu, 15 Jun 2023 at 15:46, rick@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi All, > . . . Read full entry »


Collect data from a whole map hierarchy, then use it i

Posted 6/15/2023 2:46:19 PM

Hi All, I am still trying to find the best way to navigate through an entire ditamap structure, collect certain data, then reprocess the map to insert the pertinent data into one of the topics. Earlier this week I posted code using an accumulator, but when I reprocess the map using a different . . . Read full entry »


Re: The entity was referenced, but not declared.

Posted 6/14/2023 11:56:49 AM

Hello XSL-List, If the source files in question contain HTML named entities there is a fair chance they also have a DOCTYPE declaration, and depending on what that is, it might be possible to use it to provide a set of entity declarations to the parser as a kind of "DTD stub", enabling t . . . Read full entry »


Re: Making a lookup structure from multiple documents

Posted 6/13/2023 4:17:42 PM

On 6/13/2023 6:05 PM, rick@xxxxxxxxxxxxxx wrote: > > Now that I have collected my data from the entire ditamap hierarchy, I > need to make a second pass through the map and any referenced topics > and use the summary data in a particular element in one of the topics. > I am not sure . . . Read full entry »


Re: Making a lookup structure from multiple documents

Posted 6/13/2023 4:05:13 PM

Now that I have collected my data from the entire ditamap hierarchy, I need to make a second pass through the map and any referenced topics and use the summary data in a particular element in one of the topics. I am not sure how to go back to the beginning and process the map with the collected dat . . . Read full entry »


Re: The entity was referenced, but not declared.

Posted 6/13/2023 6:35:56 AM

On 6/13/2023 12:48 AM, Manuel Souto Pico terminolator@xxxxxxxxx wrote: I'm trying to convert a collection of XLIFF files into TMX. The files contain some HTML named entities, which makes my stylesheet choke: My question is: Is there any way I can avoid or fix this problem from the XSLT styleshe . . . Read full entry »


Re: The entity was referenced, but not declared.

Posted 6/12/2023 11:45:06 PM

> Is there any way I can avoid or fix this problem from the XSLT stylesheet without having to modify the input XLIFF files? No, there isn't. The source document isn't well-formed XML, and nothing you do in the stylesheet can change that. You could try reading the input using unparsed-text(). . . . Read full entry »


The entity was referenced, but not declared.

Posted 6/12/2023 10:48:42 PM

Dear all, I'm trying to convert a collection of XLIFF files into TMX. The files contain some HTML named entities, which makes my stylesheet choke: Error on line 8 column 64 of file.xlf: SXXP0003 Error reported by XML parser: The entity "ndash" was referenced, but not declared.: Th . . . Read full entry »


Re: Making a lookup structure from multiple documents

Posted 6/12/2023 8:18:49 PM

I had to make one modification so that my @href attributes are correctly resolved relative to the map, etc.: <xsl:accumulator name="summary-data" initial-value="()" as="element()*"> <xsl:accumulator-rule match="*[@href[matches(.,'(dita(map)?|x . . . Read full entry »


Re: Making a lookup structure from multiple documents

Posted 6/12/2023 7:55:54 PM

Based on the resulting <map-data> element, your solution gives me what I need: <?xml version="1.0" encoding="UTF-8"?> <map-data> <all> <tool quantity="1">Tool1</tool> <spare quantity="1">Spare1&l . . . Read full entry »


Re: Making a lookup structure from multiple documents

Posted 6/12/2023 7:20:47 PM

On 6/12/2023 8:49 PM, Martin Honnen martin.honnen@xxxxxx wrote: > > > On 6/12/2023 8:33 PM, rick@xxxxxxxxxxxxxx wrote: >> >> I am missing something fundamental here I think. My accumulator is >> collecting the values from each topic separately, but I want it to >> a . . . 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

Attend a Live Webinar This Week!

Learn about Stylus Studio's unique features and benefits in just under an hour. Register for the Stylus Studio QuickStart Training WebCast!

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