Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Robodata
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
Robodata
Commits
43da6206
Commit
43da6206
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
klv.convert.one.file
parent
8b2e709d
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DFDL/build.xml
+209
-192
209 additions, 192 deletions
DFDL/build.xml
DFDL/stylesheets/ExtractPcapngDataValues.xslt
+86
-0
86 additions, 0 deletions
DFDL/stylesheets/ExtractPcapngDataValues.xslt
with
295 additions
and
192 deletions
DFDL/build.xml
+
209
−
192
View file @
43da6206
This diff is collapsed.
Click to expand it.
DFDL/stylesheets/ExtractPcapngDataValues.xslt
0 → 100644
+
86
−
0
View file @
43da6206
<?xml version="1.0" encoding="UTF-8"?>
<!--
title : ExtractPcapngValues.xslt
created : 3 September 2021
creator : Don Brutzman and Terry Norbraten
description : Extract contained Values from DFDL pgapng results convert it to text file
reference : TODO.xml
reference : https://www.w3.org/TR/xslt
identifier : https://www.web3d.org/x3d/stylesheets/AllX3dElementsAttributesTextTemplate.xslt
license : license.html
-->
<!-- TODO authors can edit this example to customize all transformation rules -->
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
version=
"2.0"
xmlns:xs =
"http://www.w3.org/2001/XMLSchema"
xmlns:fn =
"http://www.w3.org/2005/xpath-functions"
>
<!-- extension-element-prefixes="xs" -->
<xsl:output
method=
"text"
/>
<!-- output methods: xml html text -->
<!-- ======================================================= -->
<xsl:template
match=
"/"
>
<!-- process root of input document -->
<!-- process elements and comments -->
<xsl:apply-templates
select=
"*"
/>
<!-- comment() -->
</xsl:template>
<!-- ===================================================== -->
<xsl:template
match=
"*"
>
<!-- rule to process each element -->
<xsl:apply-templates
select=
"*"
/>
<!-- recurse on children -->
</xsl:template>
<xsl:variable
name=
"retainNewLines"
select=
"true()"
/>
<xsl:template
match=
"Data"
>
<!-- rule to process each element of interest -->
<!-- common initial processing for each element
<xsl:text disable-output-escaping="yes"><</xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text disable-output-escaping="yes">></xsl:text> -->
<xsl:apply-templates
select=
"@*"
/>
<!-- process attributes for this element, should be none -->
<xsl:value-of
select=
"."
/>
<!-- hexadecimal digits, variable length, little-endian byte order -->
<!-- common final processing for each element
<xsl:text disable-output-escaping="yes"><</xsl:text>
<xsl:text disable-output-escaping="yes">/</xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text disable-output-escaping="yes">></xsl:text> -->
<xsl:if
test=
"$retainNewLines"
>
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:template>
<!-- ===================================================== -->
<xsl:template
match=
"@*"
>
<!-- rule to process each attribute -->
<!-- common processing for each attribute: ignore, not expected
<xsl:text> </xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text>='</xsl:text>
<xsl:value-of select="."/>
<xsl:text>'</xsl:text> -->
</xsl:template>
<!-- ===================================================== -->
<xsl:template
match=
"comment()"
>
<!-- rule to process each comment, though not expected -->
<xsl:text
disable-output-escaping=
"yes"
>
<
!--
</xsl:text>
<xsl:value-of
select=
"."
/>
<xsl:text
disable-output-escaping=
"yes"
>
--
>
</xsl:text>
<xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment