EnglishFrenchSpanish

Ad


OnWorks favicon

xmlif - Online in the Cloud

Run xmlif in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command xmlif that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


xmlif - conditional processing instructions for XML

SYNOPSIS


xmlif [attrib=value...]

DESCRIPTION


xmlif filters XML according to conditionalizing markup. This can be useful for formatting
one of several versions of an XML document depending on conditions passed to the command.

Attribute/value pairs from the command line are matched against the attributes associated
with certain processing instructions in the document. The instructions are <?xmlif if?>
and its inverse <?xmlif if not?>, <?xmlif elif?> and its inverse <?xmlif elif not?>,
<?xmlif else?>, and <?xmlif fi?>.

Argument/value pairs given on the command line are checked against the value of
corresponding attributes in the conditional processing instructions. An `attribute match'
happens if an attribute occurs in both the command-line arguments and the tag, and the
values match. An `attribute mismatch' happens if an attribute occurs in both the
command-line arguments and the tag, but the values do not match.

Spans between <?xmlif if?> or <?xmlif elif?> and the next conditional processing
instruction at the same nesting level are passed through unaltered if there is at least
one attribute match and no attribute mismatch; spans between <?xmlif if not?> and <?xmlif
elif not?> and the next conditional processing instruction are passed otherwise. Spans
between <?xmlif else?> and the next conditional-processing tag are passed through only if
no previous span at the same level has been passed through. <?xmlif if?> and <?xmlif fi?>
(and their `not' variants) change the current nesting level; <?xmlif else?> and <?xmlif
elif?> do not.

All these processing instructions will be removed from the output produced. Aside from the
conditionalization, all other input is passed through untouched; in particular, entity
references are not resolved.

Value matching is by string equality, except that "|" in an attribute value is interpreted
as an alternation character. Thus, saying foo='red|blue' on the command line enables
conditions red and blue. Saying color='black|white' in a tag matches command-line
conditions color='black' and color='white'.

Here is an example:

Always issue this text.
<?xmlif if condition='html'?>
Issue this text if 'condition=html' is given on the command line.
<?xmlif elif condition='pdf|ps'?>
Issue this text if 'condition=pdf' or 'condition=ps'
is given on the command line.
<?xmlif else?>
Otherwise issue this text.
<?xmlif fi?>
Always issue this text.

Use xmlif online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad