|
Rule identifier
|
The specification
of the nodes to which the rule applies, one of the most
important properties of a parser rule. The software uses
XPath to
specify the applicable nodes. The software uses this specification
to identify the rule, and so does not allow you to have
two rules with the same XPath location.
|
|
Translate setting
|
|
Whitespace
|
For XML file types,
you can choose whether the file filter software preserves
whitespace or normalizes it. Preservation means that
whitespace is not modified. Normalization means replacing
whitespace with a single space. Normalization is done when the file
is converted to sdlxliff. You can set the whitespace
setting for a file type as a whole in the Whitespace page. You can also set the whitespace setting in a parser
rule. Where a parser rule applies, it overrides the setting from the
Whitespace page).
|
|
Formatting and Structure information
|
The formatting and structure information specifies how tags and
tagged content are presented.
|
|
Rule identifier
|
|
|
Translate setting
|
|
XPath syntax
|
//text
|
|
Equivalent element syntax
|
In the Rule group box,
Element box, enter the element name as:
text
|
|
XPath syntax
|
//diagram/@address
|
|
Equivalent element syntax
|
//*[@translate="yes"]We can break down this expression as follows:
|
//*
|
Specifies all elements, at any depth.
|
|
[...]
|
Square brackets delimit selection criteria. To specify elements
by the values of an attribute (for example with =, > or <), surround the
expression with square brackets.
|
|
@translatable
|
Specifies the
translatable attribute.
|
|
="yes"
|
Specifies elements for which the attribute has the value
"yes".
|