xsl variable containing '.' autocompletion
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 2
- Joined: Thu Apr 27, 2006 1:56 pm
xsl variable containing '.' autocompletion
Hello,
When editing XSLT source code (1.0) with the standalone editor (7.1 build 2006030214), and trying to manipulate parameters/variables whose name contain '.':
after $my. the autocompletion no more work, I mean it is providing the default xpath autocompletion list (name, ancestor-or-self:: ...) but not the list of params/variables starting with my. .
Is there any config I can change in order to let the . be considered as part of the variable name?
Thanks a lot for your great product!
Sylvain
When editing XSLT source code (1.0) with the standalone editor (7.1 build 2006030214), and trying to manipulate parameters/variables whose name contain '.':
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:call-template name="test">
<xsl:with-param name="my.test.param.1" select="'1'"/>
<xsl:with-param name="my.test.param.2" select="'2'"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="test">
<xsl:param name="my.test.param.1"/>
<xsl:param name="my.test.param.2"/>
<test>
<xsl:value-of select="concat($my.test.param.1, '-', $my.)"/>
</test>
</xsl:template>
</xsl:stylesheet>
Is there any config I can change in order to let the . be considered as part of the variable name?
Thanks a lot for your great product!
Sylvain
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
Usually the '.' character represents the context node in an XPath expression and it ends the content completion. In your case it is a part of the name of an XSLT variable and it should not end content completion. We will improve handling of variable names in a future version. Until then the content completion helps you to insert such a variable name in the editor panel only if you select the variable name in the popup window using the arrow keys and press Enter before typing the '.' character.
Regards,
Sorin
Usually the '.' character represents the context node in an XPath expression and it ends the content completion. In your case it is a part of the name of an XSLT variable and it should not end content completion. We will improve handling of variable names in a future version. Until then the content completion helps you to insert such a variable name in the editor panel only if you select the variable name in the popup window using the arrow keys and press Enter before typing the '.' character.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service