Is there a way to enable XPath content completion in text templates in XSLT 3.0?

Here should go questions about transforming XML with XSLT and FOP.
Martin Honnen
Posts: 26

Is there a way to enable XPath content completion in text templates in XSLT 3.0?

Thu Apr 06, 2017 1:00 pm

One of the new features in XSLT 3.0 is text value templates https://www.w3.org/TR/xslt-30/#text-value-templates, I had hoped to be able to use them in oXygen 19 with Saxon EE/PE and XSLT 3.0 support, I don't get any syntax errors using them but it seems there is no XPath variable/function content completion inside curly braces, as there is for attribute value templates. Is there any way to enable that for text value templates? If not, is that a feature planned for the future?

Sample code is e.g.

Code: Select all

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:math="http://www.w3.org/2005/xpath-functions/math"
   exclude-result-prefixes="xs math"
   expand-text="yes"
   version="3.0">
   
   <xsl:param name="seq" as="xs:string*" select="'c', 'a', 'b', 'z'"/>
   
   <xsl:template name="main">
      {sort($seq)}
   </xsl:template>
   
</xsl:stylesheet>


with the expand-text I would like to see XPath variable/function content completion inside the curly braces of the

Code: Select all

{sort($seq)}


text value template.
adrian
Posts: 2326

Re: Is there a way to enable XPath content completion in text templates in XSLT 3.0?

Mon Apr 10, 2017 6:43 pm

Hi,

"Text Value Templates" are not yet supported in oXygen v19.0.
An issue is already logged to implement this support. I've added your vote. For tracking reference it is issue EXM-30486.
We will notify this thread when it is implemented.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
tavy
Posts: 122

Re: Is there a way to enable XPath content completion in text templates in XSLT 3.0?

Tue Oct 03, 2017 10:21 am

Hello.

We released Oxygen XML Editor 19.1 a couple of days ago and we added support for XSLT 3.0 text value templates.

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “XSLT and FOP”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest