Subject: Re: [xsl] Running xsltproc does not produce any output From: "ohaya ohaya@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 22 Jul 2024 12:23:22 -0000 |
Martin, I just noticed that my subsequent posts were causing a "message too large" response from the mailing list and also the responses were going to my spam folder. FYI, in my replies, I did catch the problem of missing the <syslog> element and was able to make xsltproc "work", but one weird thing was the output was only going to the file I designated in the "-o foo" parameter, and not to stdout. Now that I am past getting xsltproc working, I am trying to determine how I can do what I want to do. Hopefully my first post is readable, because it has all the files, the pta.xsl, the rfc.xsl, and the raw XML that is being processed. Anyway, what I am trying to do is to modify the pta.xsl/rfc.xsl to do is: a) If the XML has "<MessageID>412</MessageID>" andb) If the <ExtraDetails> element has a string "Command=xxxxx$[Tab]yyyyy$;" where the xxxxx$ and yyyyy$ are identical, then b) I need to either remove, or redact/obfuscate the xxxxx$ and yyyyy$ string. In other words, *IF* the <MessageID> value is "412", AND if the <ExtraDetails> element: Contains a string that is like "Command=myPass$[Tab]myPass$;" where the part in front of the "[Tab]" is identical to the part after the "[Tab]", then, I want to change (for example) the <ExtraDetails> from: <ExtraDetails>Command=myPass$[Tab]myPass$;ConnectionComponentId=Users;DstHost =my.solutions;Protocol=NC;ID=Server_W01;SessionID=0...5149;SrcHost=xx.zz.0.24 ;TXTOffset=1593B;User=xxxxx;VIDOffset=39T;</ExtraDetails> To something like: <ExtraDetails>Command=**********$[Tab]*********$;ConnectionComponentId=Users; DstHost=my.solutions;Protocol=NC;ID=Server_W01;SessionID=0...5149;SrcHost=xx. zz.0.24;TXTOffset=1593B;User=xxxxx;VIDOffset=39T;</ExtraDetails> Is that possible to do with XSLT?B I am think that it is/may be, but, also I think that maybe I could do something like have the XSLT call out to a small java class/method? Are both of those (pure XSLT approach or use XSLT calling Java) approach possible? (FYI, according to this (https://docs.cyberark.com/Downloads/Legal/Vault%20Third-Party%20Notices.pdf) CyberArk uses Xalan; also FYI, this is on Windows not Linux)? Jim On Sunday, July 21, 2024 at 11:00:41 AM EDT, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: On 21/07/2024 16:43, ohaya ohaya@xxxxxxxxx wrote: I am going to have to modify one of the base XSLTs so I wanted to try xsltproc (on CENTOS) to test/debug, but when I ran a sample XML output using one of the base XSLTs, xsltproc doesn't produce any output (and no errors either), so I was hoping someone might be able to tell me why. The base XSLT references an additional small XSLT via an "xsl:import". Your XSLT seems to look for a syslog root element or at least a container element for the audit_record element but your XML sample has a single audit_record root element. EasyUnsubscribe(by email)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Running xsltproc does not, Martin Honnen martin | Thread | Re: [xsl] Running xsltproc does not, Piez, Wendell A. (Fe |
Re: [xsl] Running xsltproc does not, Martin Honnen martin | Date | Re: [xsl] Running xsltproc does not, Piez, Wendell A. (Fe |
Month |