You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user-guide/dashboards/queries.md
+30-1
Original file line number
Diff line number
Diff line change
@@ -87,4 +87,33 @@ Or all data for the previous year:
87
87
88
88
Or this year so far:
89
89
90
-
`greater than year()`
90
+
`greater than year()`
91
+
92
+
## URI Fields
93
+
Fields containing a Uniform Resource Identifier (URI) in string form can queried to extract the URI's individual components of `authority`, `fragment`, `host`, `path`, `port`, `query`, `scheme`, `schemeSpecificPart` and `userInfo`. See either [RFC 2306: Uniform Resource Identifiers (URI): Generic Syntax](http://www.ietf.org/rfc/rfc2396.txt) or Java's java.net.URI Class for details regarding the components. If any component is not present within the passed URI, then an empty string is returned.
94
+
95
+
The extraction functions are
96
+
97
+
* extractAuthorityFromUri\(\) - extract the Authority component
98
+
* extractFragmentFromUri\(\) - extract the Fragment component
99
+
* extractHostFromUri\(\) - extract the Host component
100
+
* extractPathFromUri\(\) - extract the Path component
101
+
* extractPortFromUri\(\) - extract the Port component
102
+
* extractQueryFromUri\(\) - extract the Query component
103
+
* extractSchemeFromUri\(\) - extract the Scheme component
104
+
* extractSchemeSpecificPartFromUri\(\) - extract the Scheme specific part component
105
+
* extractUserInfoFromUri\(\) - extract the UserInfo component
106
+
107
+
If the URI is `http://foo:[email protected]:8080/very/long/path.html?p1=v1&p2=v2#more-details` the table below displays the extracted components
Copy file name to clipboardExpand all lines: user-guide/pipelines/xslt/xslt-functions.md
+37
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ The following functions are available to aid your translation:
40
40
*`lookup(String map, String key, String time, Boolean ignoreWarnings)` - Look up a reference data map using a specified time, e.g. the event time, and ignore any warnings generated by a failed lookup
41
41
*`meta(String key)` - Lookup a meta data value for the current stream using the specified key. The key can be `Feed`, `StreamType`, `CreatedTime`, `EffectiveTime`, `Pipeline` or any other attribute supplied when the stream was sent to Stroom, e.g. meta('System').
42
42
*`numeric-ip(String ipAddress)` - Convert an IP address to a numeric representation for range comparison
43
+
*`parse-uri(String URI)` - Returns an XML structure of the URI providing `authority`, `fragment`, `host`, `path`, `port`, `query`, `scheme`, `schemeSpecificPart`, and `userInfo` components if present.
43
44
*`random()` - Get a system generated random number between 0 and 1.
44
45
*`search-id()` - Get the id of the batch search when a pipeline is processing as part of a batch search
45
46
*`stream-id()` - Get the id of the current input stream that is being processed
@@ -159,3 +160,39 @@ An example of how to count records is shown below:
159
160
<xsl:attributename="Value"select="$count" />
160
161
</data>
161
162
```
163
+
164
+
## `parse-uri()`
165
+
The parse-uri() function takes a Uniform Resource Identifier (URI) in string form and returns an XML node with a namespace of `uri` containing the URI's individual components of `authority`, `fragment`, `host`, `path`, `port`, `query`, `scheme`, `schemeSpecificPart` and `userInfo`. See either [RFC 2306: Uniform Resource Identifiers (URI): Generic Syntax](http://www.ietf.org/rfc/rfc2396.txt) or Java's java.net.URI Class for details regarding the components.
166
+
167
+
The following xml
168
+
169
+
```xml
170
+
<!-- Display and parse the URI contained within the text of the rURI element -->
0 commit comments