Class XeDate

  • All Implemented Interfaces:
    XeSource

    public final class XeDate
    extends XeWrap
    Xembly source to create SLA attribute with current date/time in ISO 8601.

    Add this Xembly source to your page like this:

     new RsXembly(
       new XsStylesheet("/xsl/home.xsl"),
       new XsAppend(
         "page",
         new XsDate()
       )
     )

    And expect this attribute in the XML:

    <?xml version="1.0"?>
     <?xml-stylesheet href="/xsl/home.xsl" type="text/xsl"?>
     <page date="2015-03-09T00:49:17Z"/>
     

    The class is immutable and thread-safe.

    Since:
    0.3
    • Constructor Detail

      • XeDate

        public XeDate()
        Ctor.
      • XeDate

        public XeDate​(CharSequence attr)
        Ctor.
        Parameters:
        attr - Attribute name