pipeline:convertElementCase

Purpose

Converts the case of all element names in its input to lowercase or uppercase and passes this to the output. This is useful when directly translating to native markups that only support a certain case, such as WML.

Attribute

Attribute Description Type Default Options Use
mode Sets the conversion mode. xs:anyURI none  lower, upper  required 

Examples

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:urid="http://www.volantis.com/xmlns/marlin-uri-driver"
  xmlns:pipeline="http://www.volantis.com/xmlns/marlin-pipeline">
  <head>
    <title>pipeline:convertElementCase</title>
  </head>
  <body>
    <p>Latest from NYSE for Jive Sports (VBE):</p>
    <pipeline:convertElementCase mode="lower">
      <urid:fetch href="test.xdinc"/>
    </pipeline:convertElementCase>
  </body>
</html>

The test.xdinc file should contain the following code.

<?xml version="1.0" encoding="UTF-8"?>
<DIV xmlns="http://www.w3.org/2002/06/xhtml2">
  <P> 21.50 (+ 2.25) </P>
</DIV>

Related topics