XML Stylesheet entry. More...

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 |
XML Stylesheet entry.
Definition at line 291 of file xmlstorage.d.
| 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;
}
| 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("?>");
}
Definition at line 300 of file xmlstorage.d.
| char [] xmlstorage::StyleSheet::_charset |
Definition at line 299 of file xmlstorage.d.
Referenced by xmlstorage::XMLReaderBase::parse().
| char [] xmlstorage::StyleSheet::_href |
Definition at line 295 of file xmlstorage.d.
| char [] xmlstorage::StyleSheet::_media |
Definition at line 298 of file xmlstorage.d.
Referenced by xmlstorage::XMLReaderBase::parse().
| char [] xmlstorage::StyleSheet::_title |
Definition at line 297 of file xmlstorage.d.
Referenced by xmlstorage::XMLReaderBase::parse().
| char [] xmlstorage::StyleSheet::_type |
Definition at line 296 of file xmlstorage.d.
1.7.2