Public Member Functions | Public Attributes

xmlstorage::StyleSheet Class Reference

XML Stylesheet entry. More...

Collaboration diagram for xmlstorage::StyleSheet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 this ()
 this (in char[] href, in char[] type="text/xsl", bool alternate=false)
bool empty ()
void print (Stream o)

Public Attributes

char[] _href
char[] _type
char[] _title
char[] _media
char[] _charset
bool _alternate

Detailed Description

XML Stylesheet entry.

Definition at line 291 of file xmlstorage.d.


Constructor & Destructor Documentation

xmlstorage::StyleSheet::this (  ) [inline]

Definition at line 302 of file xmlstorage.d.

    {
        _alternate = false;
    }
xmlstorage::StyleSheet::this ( in char[]  href,
in char[]  type = "text/xsl",
bool  alternate = false 
) [inline]

Definition at line 307 of file xmlstorage.d.

    {
        _href = href;
        _type = type;
        _alternate = alternate;
    }

Member Function Documentation

bool xmlstorage::StyleSheet::empty (  ) [inline]

Definition at line 314 of file xmlstorage.d.

    {
        return !_href.length;
    }
void xmlstorage::StyleSheet::print ( Stream  o ) [inline]

Definition at line 319 of file xmlstorage.d.

    {
        o.writeString("<?xml-stylesheet" ~
                " href=\"" ~ _href ~ "\""
                " type=\"" ~ _type ~ "\"");

        if (_title.length)
            o.writeString(" title=\"" ~ _title ~ "\"");

        if (_media.length)
            o.writeString(" media=\"" ~ _media ~ "\"");

        if (_charset.length)
            o.writeString(" charset=\"" ~ _charset ~ "\"");

        if (_alternate)
            o.writeString(" alternate=\"yes\"");

        o.writeString("?>");
    }

Member Data Documentation

Definition at line 300 of file xmlstorage.d.

Definition at line 299 of file xmlstorage.d.

Referenced by xmlstorage::XMLReaderBase::parse().

Definition at line 295 of file xmlstorage.d.

Definition at line 298 of file xmlstorage.d.

Referenced by xmlstorage::XMLReaderBase::parse().

Definition at line 297 of file xmlstorage.d.

Referenced by xmlstorage::XMLReaderBase::parse().

Definition at line 296 of file xmlstorage.d.


The documentation for this class was generated from the following file: