Shanedell commented on code in PR #117:
URL: https://github.com/apache/daffodil-vscode/pull/117#discussion_r887047088


##########
src/language/semantics/xsltSnippets.ts:
##########
@@ -0,0 +1,178 @@
+/*---------------------------------------------------------------------------------------------
+ *  Licensed under the MIT License. See License.txt in the project root for 
license information.
+ 
*--------------------------------------------------------------------------------------------*/
+
+export interface Snippet {
+  name: string
+  body: string
+  description: string
+}
+
+export class XSLTSnippets {
+  static xsltRootTags: Snippet[] = [

Review Comment:
   @michael-hoke So for example using the file 
`dfdl-ethernet/src/main/resources/com/owlcyberdefense/dfdl/xsd/ethernetIP.dfdl.xsd`
 it has
   
   ```xml
     <xs:complexType name="Ethernet">
       <xs:sequence>
         <xs:element name="MACDest" type="b:hexByte" dfdl:length="6" />
         <xs:element name="MACSrc" type="b:hexByte" dfdl:length="6" />
         <xs:element name="Ethertype" type="b:bit" dfdl:length="16"
                     dfdl:outputValueCalc="{
             if (fn:exists(../NetworkLayer/IPv4)) then 2048
             else if (fn:exists(../NetworkLayer/IPv6 )) then 34525
             else fn:error('ethernet', 'fn:error called.', .) }"/>
         <xs:element name="NetworkLayer" type="tns:NetworkLayer" />
       </xs:sequence>
     </xs:complexType>
   ```
   So the semantic colorization should show these if statements as a different 
color right? Not just color it the same way it does in this comment correct? If 
so then it is still working just installing that extension as mine shows the if 
- else if - else portion as pure white



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to