Syntax-Kamelon

 view release on metacpan or  search on metacpan

lib/Syntax/Kamelon/XML/xslt.xml  view on Meta::CPAN

      <item>string-to-codepoints</item>
      <item>sequence-node-identical</item>
      <item>hours-from-time</item>
      <item>hours-from-dateTime</item>
      <item>format-time</item>
      <item>codepoints-to-string</item>
      <item>trace</item>
      <item>tokenize</item>
      <item>subtract-dateTimes-yielding-yearMonthDuration</item>
      <item>subsequence</item>
      <item>seconds-from-dateTime</item>
      <item>regex-group</item>
      <item>one-or-more</item>
      <item>node-name</item>
      <item>namespace-uri-from-QName</item>
      <item>min</item>
      <item>idref</item>
      <item>format-dateTime</item>
      <item>format-date</item>
      <item>days-from-duration</item>
      <item>compare</item>
      <item>base-uri</item>
      <item>seconds-from-time</item>
      <item>in-scope-prefixes</item>
      <item>expanded-QName</item>
      <item>adjust-date-to-timezone</item>
      <item>year-from-date</item>
      <item>resolve-QName</item>
      <item>remove</item>
      <item>QName</item>
      <item>minutes-from-time</item>
      <item>max</item>
      <item>lower-case</item>
      <item>index-of</item>
      <item>doc</item>
      <item>deep-equal</item>
      <item>data</item>
      <item>minutes-from-duration</item>
      <item>adjust-dateTime-to-timezone</item>
      <item>abs</item>
      <item>timezone-from-dateTime</item>
      <item>reverse</item>
      <item>error</item>
      <item>ends-with</item>
      <item>day-from-dateTime</item>
      <item>year-from-dateTime</item>
      <item>upper-case</item>
      <item>root</item>
      <item>normalize-unicode</item>
      <item>empty</item>
      <item>insert-before</item>
      <item>document-uri</item>
      <item>adjust-time-to-timezone</item>
    </list>
    
    <contexts>

       <context name="normalText" attribute="Normal Text" lineEndContext="#stay">
         <StringDetect attribute="Comment" context="comment" String="&lt;!--" beginRegion="comment"/>
         
         <StringDetect attribute="CDATA" context="CDATA" String="&lt;![CDATA[" beginRegion="cdata" />
         <RegExpr attribute="Doctype" context="Doctype" String="&lt;!DOCTYPE\s+" beginRegion="doctype" />
         <RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:_-]*" beginRegion="pi" />

         <DetectChar attribute="Tag" context="tagname" char="&lt;" />
         <RegExpr attribute="Entity Reference" context="#stay" String="&entref;" />
       </context>


       
       <context name="CDATA" attribute="Normal Text" lineEndContext="#stay">
         <DetectSpaces />
         <DetectIdentifier />
         <StringDetect attribute="CDATA" context="#pop" String="]]&gt;" endRegion="cdata" />
         <StringDetect attribute="Entity Reference" context="#stay" String="]]&amp;gt;" />
       </context>
       
       <context name="PI" attribute="Normal Text" lineEndContext="#stay">
         <Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1="&gt;" endRegion="pi" />
       </context>
       
       <context name="Doctype" attribute="Normal Text" lineEndContext="#stay">
         <DetectChar attribute="Doctype" context="#pop" char="&gt;" endRegion="doctype" />
         <DetectChar attribute="Doctype" context="Doctype Internal Subset" char="[" beginRegion="int_subset" />
       </context>
       
       <context name="Doctype Internal Subset" attribute="Normal Text" lineEndContext="#stay">
         <DetectChar attribute="Doctype" context="#pop" char="]" endRegion="int_subset" />
         <RegExpr attribute="Doctype" context="Doctype Markupdecl" String="&lt;!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
         <StringDetect attribute="Comment" context="comment" String="&lt;!--" beginRegion="comment" />
         <RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:_-]*" beginRegion="pi" />
         <IncludeRules context="FindPEntityRefs" />
       </context>
       
       <context name="Doctype Markupdecl" attribute="Normal Text" lineEndContext="#stay">
         <DetectChar attribute="Doctype" context="#pop" char="&gt;" />
         <DetectChar attribute="Value" context="Doctype Markupdecl DQ" char="&quot;" />
         <DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="&apos;" />
       </context>
       
       <context name="Doctype Markupdecl DQ" attribute="Value" lineEndContext="#stay">
         <DetectChar attribute="Value" context="#pop" char="&quot;" />
         <IncludeRules context="FindPEntityRefs" />
       </context>
       
       <context name="Doctype Markupdecl SQ" attribute="Value" lineEndContext="#stay">
         <DetectChar attribute="Value" context="#pop" char="&apos;" />
         <IncludeRules context="FindPEntityRefs" />
       </context>
       
       <context name="detectEntRef" attribute="Normal Text" lineEndContext="#stay">
         <RegExpr attribute="Entity Reference" context="#stay" String="&entref;" />
       </context>
       <context name="FindPEntityRefs" attribute="Normal Text" lineEndContext="#stay">
         <RegExpr attribute="Entity Reference" context="#stay" String="&entref;" />
         <RegExpr attribute="PEntity Reference" context="#stay" String="%&qname;;" />
         <AnyChar attribute="Invalid" context="#stay" String="&amp;%" />
       </context>
       
       <context name="tagname" attribute="Tag" lineEndContext="#stay">
         <keyword attribute="XSLT Tag" context="xattributes" String="keytags" />
         <keyword attribute="XSLT 2.0 Tag" context="xattributes" String="keytags_2.0" />
         <RegExpr attribute="Attribute" context="attributes" String="\s*" />
         <DetectChar attribute="Tag" context="#pop" char="&gt;" />
       </context>
       
       <context name="attributes" attribute="Attribute" lineEndContext="#stay">
         <Detect2Chars attribute="Tag" context="#pop#pop" char="/" char1="&gt;" />
         <DetectChar attribute="Tag" context="#pop#pop" char="&gt;" />
         <RegExpr attribute="Normal Text" context="attrValue" String="\s*=\s*" />
       </context>

       <context name="attrValue" attribute="Invalid" lineEndContext="#stay">
         <Detect2Chars attribute="Invalid" context="#pop#pop#pop" char="/" char1="&gt;" />



( run in 0.500 second using v1.01-cache-2.11-cpan-d7f47b0818f )