forked from expath/xspec
-
Notifications
You must be signed in to change notification settings - Fork 31
Text Value Templates
AirQuick edited this page Sep 30, 2020
·
2 revisions
Just like XSLT 3.0's Text Value Templates, { }
in embedded XML can be evaluated dynamically.
Enabling/disabling TVT is controlled by @expand-text
(or @x:expand-text
within embedded XML). For example:
<x:context expand-text="yes">
<test>{1 to 9}</test>
</x:context>
<x:context>
<test x:expand-text="yes">{1 to 9}</test>
</x:context>
In both cases, <test>
is expanded:
<test>1 2 3 4 5 6 7 8 9</test>
(@x:expand-text
is removed.)
If you have any questions about XSpec or want to discuss, contribute, and share information with the XSpec community, please go to our issue tracker.
For historical searches, the Google group might also be useful.
- Writing Scenarios
- Nesting Scenarios
- Focusing Your Efforts
- Global Context Item
- Selecting Nodes
- Whitespace-only Text Nodes
- Attribute Value Templates
- Text Value Templates
- Special Names
- Code Coverage
- XML Catalog Support
- Environment Variables
- Testing Dynamic Errors
- Integrating Your Own Test Helpers
- External Transformation
- Getting Started with XSpec and Schematron
- Writing Scenarios for Schematron
- Testing Schematron with Text Nodes
- Testing Schematron with Attributes
- Using Another Implementation of Schematron