Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## mailing.xml <?xml version="1.0" encoding="UTF-8"?> <ae:configurations xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://redracer.org/config/mailing ../lib/config/xsd/mailing.xsd"> <ae:configuration> <transports default="localhost"> <smtp name="localhost"> <host>localhost</host> <port>25</port> <username>redracer</username> <password>foobar</password> </smtp> </transports> </ae:configuration> </ae:configurations> ## mailing.xsd <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://redracer.org/config/mailing" elementFormDefault="qualified" xmlns:mail="http://redracer.org/config/mailing" xmlns:envelope_1_0="http://agavi.org/agavi/config/global/envelope/1.0"> <import namespace="http://agavi.org/agavi/config/global/envelope/1.0" schemaLocation="../../../../libs/agavi/config/xsd/_envelope.xsd"></import> <complexType name="transports"> <choice minOccurs="1" maxOccurs="unbounded"> <element name="smtp" type="mail:smtp" minOccurs="0" maxOccurs="unbounded"></element> <element name="sendmail" type="mail:sendmail" minOccurs="0" maxOccurs="unbounded"></element> <element name="mail" type="mail:mail" minOccurs="0" maxOccurs="1"></element> </choice> <attribute name="default" type="string" use="required"></attribute> </complexType> <complexType name="smtp"> <sequence> <element name="host" type="string" minOccurs="1" maxOccurs="1"> </element> <element name="port" type="string" minOccurs="1" maxOccurs="1"> </element> <element name="encryption" maxOccurs="1" minOccurs="0"> <simpleType> <restriction base="string"> <enumeration value="ssl"></enumeration> <enumeration value="tls"></enumeration> </restriction> </simpleType> </element> <element name="username" type="string" maxOccurs="1" minOccurs="0"> </element> <element name="password" type="string" minOccurs="0" maxOccurs="1"> </element> </sequence> <attribute name="name" type="string" use="required"></attribute> </complexType> <complexType name="mail"> <attribute name="name" type="string" use="required"></attribute> </complexType> <complexType name="sendmail"> <sequence> <element name="path" type="string" minOccurs="1"></element> <element name="parameter" type="string" minOccurs="1" maxOccurs="1"></element> </sequence> <attribute name="name" type="string" use="required"></attribute> </complexType> </schema>
This paste will be private.
From the Design Piracy series on my blog: