GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XML::XPATH::LITERAL (3)

.ds Aq ’

NAME

XML::XPath::Literal - Simple string values.

CONTENTS

DESCRIPTION

In XPath terms a Literal is what we know as a string.

API

    new($string)

Create a new Literal object with the value in $string. Note that " and ' will be converted to " and ’ respectively. That is not part of the XPath specification, but I consider it useful. Note though that you have to go to extraordinary lengths in an XML template file (be it XSLT or whatever) to make use of this:



        <xsl:value-of select=""Im feeling &quot;sad&quot;""/>



Which produces a Literal of:



        Im feeling "sad"



value()

Also overloaded as stringification, simply returns the literal string value.

    cmp($literal)

Returns the equivalent of perl’s cmp operator against the given $literal.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 XML::XPATH::LITERAL (3) 2016-03-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.