[Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

Etebar, Roman

Per the instructions in the converter zipped file  I downloaded with from NIST, I have modified the convert_XCCDF_local_variables.xsl

 

Here is the output

 

 

<?xml version="1.0" encoding="UTF-8"?>

<a href="file:///C:\SCAP4_0\SaxonHE9-6-0-6J\convert_XCCDF_local_variables.xsl"><xsl:stylesheet version="2.0" exclude-result-prefixes="xs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- This file contains variables imported by the XCCDF 1.1.4 to 1.2 converter -->

<!-- You must customize the variables in this file to your local settings -->

<xsl:variable name="gcn-drs.net">com.example</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd">xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

I use SaxonHE9-6-0-6J XSL 2.0 Parser

 

The command I use to run the XCCDF_Convert_1.1.4_to_1.2.xsl against juniper-xccdf.xml (1.1.4 xccdf content)

 

 

C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl  -xsl:convert_XCCDF_local_variables.xsl  -o:juniper.xccdf.xml

 

The error that is generated is below

 

C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl -xsl:convert_XCC

DF_local_variables.xsl -o:juniper.xccdf.xml

Error at xsl:variable on line 12 column 80 of convert_XCCDF_local_variables.xsl:

  XTSE0020: Invalid variable name: Invalid QName local part {/SCAP4_0/SaxonHE9-6-0-6J/xccdf...}

Stylesheet compilation failed: 1 error reported

 

Any assistance would be highly appreciated

 

 

 

Roman Etebar, CISSP

sig-pic

Senior Cybersecurity Engineer/IASO

DRS Technologies

45975 Nokes Blvd., Suite 145

Sterling, VA 20166

p: 703.547.4033

c: 240.381.8854

e: [hidden email]

 

 


_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

David Solin
It looks to me like you’re putting variable values where the variable name is supposed to be.

Regards,
--David Solin



On Jul 21, 2015, at 12:35 PM, Etebar, Roman <[hidden email]> wrote:

Per the instructions in the converter zipped file  I downloaded with from NIST, I have modified the convert_XCCDF_local_variables.xsl
 
Here is the output
 
 
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains variables imported by the XCCDF 1.1.4 to 1.2 converter -->
<!-- You must customize the variables in this file to your local settings -->
<xsl:variable name="gcn-drs.net">com.example</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd">xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
I use SaxonHE9-6-0-6J XSL 2.0 Parser
 
The command I use to run the XCCDF_Convert_1.1.4_to_1.2.xsl against juniper-xccdf.xml (1.1.4 xccdf content)
 
 
C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl  -xsl:convert_XCCDF_local_variables.xsl  -o:juniper.xccdf.xml
 
The error that is generated is below
 
C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl -xsl:convert_XCC
DF_local_variables.xsl -o:juniper.xccdf.xml
Error at xsl:variable on line 12 column 80 of convert_XCCDF_local_variables.xsl:
  XTSE0020: Invalid variable name: Invalid QName local part {/SCAP4_0/SaxonHE9-6-0-6J/xccdf...}
Stylesheet compilation failed: 1 error reported
 
Any assistance would be highly appreciated
 
 
 

Roman Etebar, CISSP

<image001.jpg>

Senior Cybersecurity Engineer/IASO

DRS Technologies

45975 Nokes Blvd., Suite 145

Sterling, VA 20166

p: 703.547.4033

c: 240.381.8854

e: [hidden email]

 

 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].


_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

Etebar, Roman

David,

 

Thank you so much for the quick response.

 

I have modified convert_XCCDF_local_variables.xsl file in two ways now

 

The xccdf_1.2.xsd schema file is stored local in the C:\ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd where I’m running the XSL 2 Processor command.  The command completes,but the output is 2 KB XML file that has nothing in it when viewed in the browser.

 

Is my syntax file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd  in the “schema_location” wrong ?

 

<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="schema_location">file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

And

 

<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="schema_location"> xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:21 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

 

It looks to me like you’re putting variable values where the variable name is supposed to be.

 

Regards,

--David Solin

 

 

 

On Jul 21, 2015, at 12:35 PM, Etebar, Roman <[hidden email]> wrote:

 

Per the instructions in the converter zipped file  I downloaded with from NIST, I have modified the convert_XCCDF_local_variables.xsl

 

Here is the output

 

 

<?xml version="1.0" encoding="UTF-8"?>

<a href="file:///C:\SCAP4_0\SaxonHE9-6-0-6J\convert_XCCDF_local_variables.xsl"><xsl:stylesheet version="2.0" exclude-result-prefixes="xs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- This file contains variables imported by the XCCDF 1.1.4 to 1.2 converter -->

<!-- You must customize the variables in this file to your local settings -->

<xsl:variable name="gcn-drs.net">com.example</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd">xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

I use SaxonHE9-6-0-6J XSL 2.0 Parser

 

The command I use to run the XCCDF_Convert_1.1.4_to_1.2.xsl against juniper-xccdf.xml (1.1.4 xccdf content)

 

 

C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl  -xsl:convert_XCCDF_local_variables.xsl  -o:juniper.xccdf.xml

 

The error that is generated is below

 

C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl -xsl:convert_XCC

DF_local_variables.xsl -o:juniper.xccdf.xml

Error at xsl:variable on line 12 column 80 of convert_XCCDF_local_variables.xsl:

  XTSE0020: Invalid variable name: Invalid QName local part {/SCAP4_0/SaxonHE9-6-0-6J/xccdf...}

Stylesheet compilation failed: 1 error reported

 

Any assistance would be highly appreciated

 

 

 

Roman Etebar, CISSP

<image001.jpg>

Senior Cybersecurity Engineer/IASO

DRS Technologies

45975 Nokes Blvd., Suite 145

Sterling, VA 20166

p: 703.547.4033

c: 240.381.8854

e: [hidden email]

 

 

_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].

 


_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

David Solin
Hi Roman,

Your schema_location variable value is probably not correctly formatted.  Try specifying the absolute path to the file (without a file:/ prefix).

Regards,
—David Solin


On Jul 23, 2015, at 9:42 AM, Etebar, Roman <[hidden email]> wrote:

David,
 
Thank you so much for the quick response.
 
I have modified convert_XCCDF_local_variables.xsl file in two ways now
 
The xccdf_1.2.xsd schema file is stored local in the C:\ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd where I’m running the XSL 2 Processor command.  The command completes,but the output is 2 KB XML file that has nothing in it when viewed in the browser.
 
Is my syntax file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd  in the “schema_location” wrong ?
 
<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="schema_location">file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
And
 
<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="schema_location"> xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:21 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2
 
It looks to me like you’re putting variable values where the variable name is supposed to be.
 
Regards,
--David Solin
 
 
 
On Jul 21, 2015, at 12:35 PM, Etebar, Roman <[hidden email]> wrote:
 
Per the instructions in the converter zipped file  I downloaded with from NIST, I have modified the convert_XCCDF_local_variables.xsl
 
Here is the output
 
 
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains variables imported by the XCCDF 1.1.4 to 1.2 converter -->
<!-- You must customize the variables in this file to your local settings -->
<xsl:variable name="gcn-drs.net">com.example</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd">xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
I use SaxonHE9-6-0-6J XSL 2.0 Parser
 
The command I use to run the XCCDF_Convert_1.1.4_to_1.2.xsl against juniper-xccdf.xml (1.1.4 xccdf content)
 
 
C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl  -xsl:convert_XCCDF_local_variables.xsl  -o:juniper.xccdf.xml
 
The error that is generated is below
 
C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl -xsl:convert_XCC
DF_local_variables.xsl -o:juniper.xccdf.xml
Error at xsl:variable on line 12 column 80 of convert_XCCDF_local_variables.xsl:
  XTSE0020: Invalid variable name: Invalid QName local part {/SCAP4_0/SaxonHE9-6-0-6J/xccdf...}
Stylesheet compilation failed: 1 error reported
 
Any assistance would be highly appreciated
 
 
 

Roman Etebar, CISSP

<image001.jpg>

Senior Cybersecurity Engineer/IASO

DRS Technologies

45975 Nokes Blvd., Suite 145

Sterling, VA 20166

p: 703.547.4033

c: 240.381.8854

e: [hidden email]

 

 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].
 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].


_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

Etebar, Roman

Hi David,

 

Still no luck.  Same 2KB empty XML output

 

I have used the following three syntaxes

 

/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd

 

C:/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd

 

C:// SCAP4_0//SaxonHE9-6-0-6J//xccdf_1.2/xccdf_1.2.xsd

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:49 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

 

Hi Roman,

 

Your schema_location variable value is probably not correctly formatted.  Try specifying the absolute path to the file (without a file:/ prefix).

 

Regards,

—David Solin

 

 

On Jul 23, 2015, at 9:42 AM, Etebar, Roman <[hidden email]> wrote:

 

David,

 

Thank you so much for the quick response.

 

I have modified convert_XCCDF_local_variables.xsl file in two ways now

 

The xccdf_1.2.xsd schema file is stored local in the C:\ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd where I’m running the XSL 2 Processor command.  The command completes,but the output is 2 KB XML file that has nothing in it when viewed in the browser.

 

Is my syntax file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd  in the “schema_location” wrong ?

 

<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="schema_location">file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

And

 

<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="schema_location"> xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:21 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

 

It looks to me like you’re putting variable values where the variable name is supposed to be.

 

Regards,

--David Solin

 

 

 

On Jul 21, 2015, at 12:35 PM, Etebar, Roman <[hidden email]> wrote:

 

Per the instructions in the converter zipped file  I downloaded with from NIST, I have modified the convert_XCCDF_local_variables.xsl

 

Here is the output

 

 

<?xml version="1.0" encoding="UTF-8"?>

<a href="file:///C:\SCAP4_0\SaxonHE9-6-0-6J\convert_XCCDF_local_variables.xsl"><xsl:stylesheet version="2.0" exclude-result-prefixes="xs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- This file contains variables imported by the XCCDF 1.1.4 to 1.2 converter -->

<!-- You must customize the variables in this file to your local settings -->

<xsl:variable name="gcn-drs.net">com.example</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd">xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

I use SaxonHE9-6-0-6J XSL 2.0 Parser

 

The command I use to run the XCCDF_Convert_1.1.4_to_1.2.xsl against juniper-xccdf.xml (1.1.4 xccdf content)

 

 

C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl  -xsl:convert_XCCDF_local_variables.xsl  -o:juniper.xccdf.xml

 

The error that is generated is below

 

C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl -xsl:convert_XCC

DF_local_variables.xsl -o:juniper.xccdf.xml

Error at xsl:variable on line 12 column 80 of convert_XCCDF_local_variables.xsl:

  XTSE0020: Invalid variable name: Invalid QName local part {/SCAP4_0/SaxonHE9-6-0-6J/xccdf...}

Stylesheet compilation failed: 1 error reported

 

Any assistance would be highly appreciated

 

 

 

Roman Etebar, CISSP

<image001.jpg>

Senior Cybersecurity Engineer/IASO

DRS Technologies

45975 Nokes Blvd., Suite 145

Sterling, VA 20166

p: 703.547.4033

c: 240.381.8854

e: [hidden email]

 

 

_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].

 

_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].

 


_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

David Solin
Is there actually a space in your directory name?  Why not try:

C:\SCAP4_0\SaxonHE9-6-0-6J\xccdf_1.2\xccdf_1.2.xsd

—David Solin



On Jul 23, 2015, at 10:17 AM, Etebar, Roman <[hidden email]> wrote:

Hi David,
 
Still no luck.  Same 2KB empty XML output
 
I have used the following three syntaxes
 
/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd
 
C:/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd
 
C:// SCAP4_0//SaxonHE9-6-0-6J//xccdf_1.2/xccdf_1.2.xsd
 
From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:49 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2
 
Hi Roman,
 
Your schema_location variable value is probably not correctly formatted.  Try specifying the absolute path to the file (without a file:/ prefix).
 
Regards,
—David Solin
 
 
On Jul 23, 2015, at 9:42 AM, Etebar, Roman <[hidden email]> wrote:
 
David,
 
Thank you so much for the quick response.
 
I have modified convert_XCCDF_local_variables.xsl file in two ways now
 
The xccdf_1.2.xsd schema file is stored local in the C:\ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd where I’m running the XSL 2 Processor command.  The command completes,but the output is 2 KB XML file that has nothing in it when viewed in the browser.
 
Is my syntax file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd  in the “schema_location” wrong ?
 
<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="schema_location">file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
And
 
<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="schema_location"> xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:21 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2
 
It looks to me like you’re putting variable values where the variable name is supposed to be.
 
Regards,
--David Solin
 
 
 
On Jul 21, 2015, at 12:35 PM, Etebar, Roman <[hidden email]> wrote:
 
Per the instructions in the converter zipped file  I downloaded with from NIST, I have modified the convert_XCCDF_local_variables.xsl
 
Here is the output
 
 
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains variables imported by the XCCDF 1.1.4 to 1.2 converter -->
<!-- You must customize the variables in this file to your local settings -->
<xsl:variable name="gcn-drs.net">com.example</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd">xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
I use SaxonHE9-6-0-6J XSL 2.0 Parser
 
The command I use to run the XCCDF_Convert_1.1.4_to_1.2.xsl against juniper-xccdf.xml (1.1.4 xccdf content)
 
 
C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl  -xsl:convert_XCCDF_local_variables.xsl  -o:juniper.xccdf.xml
 
The error that is generated is below
 
C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl -xsl:convert_XCC
DF_local_variables.xsl -o:juniper.xccdf.xml
Error at xsl:variable on line 12 column 80 of convert_XCCDF_local_variables.xsl:
  XTSE0020: Invalid variable name: Invalid QName local part {/SCAP4_0/SaxonHE9-6-0-6J/xccdf...}
Stylesheet compilation failed: 1 error reported
 
Any assistance would be highly appreciated
 
 
 

Roman Etebar, CISSP

<image001.jpg>

Senior Cybersecurity Engineer/IASO

DRS Technologies

45975 Nokes Blvd., Suite 145

Sterling, VA 20166

p: 703.547.4033

c: 240.381.8854

e: [hidden email]

 

 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].
 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].
 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].


_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

Etebar, Roman

David,

 

No, that was a typo on my side when I copied it here on the email.

 

I have tried all variations to no avail.  I’m not certain if the convert_XCCDF_local_variables.xsl wants absolute path or relative path.  The conversion kit doesn’t give any hints

 

C:\SCAP4_0\SaxonHE9-6-0-6J\xccdf_1.2\xccdf_1.2.xsd

 

C:/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd

 

C:// SCAP4_0//SaxonHE9-6-0-6J//xccdf_1.2/xccdf_1.2.xsd

 

This is the instruction set by NIST

 

Instructions for converting XCCDF 1.1.4 content to XCCDF 1.2 content using stylesheets.

 

Two stylesheets are included:

- XCCDF_Convert_1.1.4_to_1.2.xsl - The main set of instructions

- convert_XCCDF_local_variables.xsl - Locally customizable variables

 

To use the stylesheets, place them in the same directory. Open the convert_XCCDF_local_variables.xsl and modify the variable values to reflect 1) the reverse DNS-style namespace you wish to use with element IDs, and 2) the location of the XCCDF 1.2 schema that that should appear in the SchemaLocation attribute of the new document. Then use an XSL 2.0 processor and apply the XCCDF_Convert_1.1.4_to_1.2.xsl to the XCCDF 1.1.4 content. The result should be valid XCCDF 2.0 content.

 

Please sent bug reports and feature requests to [hidden email].

 

 

I have even included the contents of the xccdf_1.2 which include the xccdf_1.2.xsd schema in the same directory as the XSL 2 Processor

 

 

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 12:43 PM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

 

Is there actually a space in your directory name?  Why not try:

 

C:\SCAP4_0\SaxonHE9-6-0-6J\xccdf_1.2\xccdf_1.2.xsd

 

—David Solin

 

 

 

On Jul 23, 2015, at 10:17 AM, Etebar, Roman <[hidden email]> wrote:

 

Hi David,

 

Still no luck.  Same 2KB empty XML output

 

I have used the following three syntaxes

 

/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd

 

C:/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd

 

C:// SCAP4_0//SaxonHE9-6-0-6J//xccdf_1.2/xccdf_1.2.xsd

 

From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:49 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

 

Hi Roman,

 

Your schema_location variable value is probably not correctly formatted.  Try specifying the absolute path to the file (without a file:/ prefix).

 

Regards,

—David Solin

 

 

On Jul 23, 2015, at 9:42 AM, Etebar, Roman <[hidden email]> wrote:

 

David,

 

Thank you so much for the quick response.

 

I have modified convert_XCCDF_local_variables.xsl file in two ways now

 

The xccdf_1.2.xsd schema file is stored local in the C:\ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd where I’m running the XSL 2 Processor command.  The command completes,but the output is 2 KB XML file that has nothing in it when viewed in the browser.

 

Is my syntax file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd  in the “schema_location” wrong ?

 

<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="schema_location">file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

And

 

<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="schema_location"> xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:21 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

 

It looks to me like you’re putting variable values where the variable name is supposed to be.

 

Regards,

--David Solin

 

 

 

On Jul 21, 2015, at 12:35 PM, Etebar, Roman <[hidden email]> wrote:

 

Per the instructions in the converter zipped file  I downloaded with from NIST, I have modified the convert_XCCDF_local_variables.xsl

 

Here is the output

 

 

<?xml version="1.0" encoding="UTF-8"?>

<a href="file:///C:\SCAP4_0\SaxonHE9-6-0-6J\convert_XCCDF_local_variables.xsl"><xsl:stylesheet version="2.0" exclude-result-prefixes="xs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- This file contains variables imported by the XCCDF 1.1.4 to 1.2 converter -->

<!-- You must customize the variables in this file to your local settings -->

<xsl:variable name="gcn-drs.net">com.example</xsl:variable>

<!-- Your organization's reverse-DNS format namespace -->

<xsl:variable name="file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd">xccdf_1.2.xsd</xsl:variable>

<!-- The path to and name of the XCCDF schema -->

</xsl:stylesheet>

 

I use SaxonHE9-6-0-6J XSL 2.0 Parser

 

The command I use to run the XCCDF_Convert_1.1.4_to_1.2.xsl against juniper-xccdf.xml (1.1.4 xccdf content)

 

 

C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl  -xsl:convert_XCCDF_local_variables.xsl  -o:juniper.xccdf.xml

 

The error that is generated is below

 

C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl -xsl:convert_XCC

DF_local_variables.xsl -o:juniper.xccdf.xml

Error at xsl:variable on line 12 column 80 of convert_XCCDF_local_variables.xsl:

  XTSE0020: Invalid variable name: Invalid QName local part {/SCAP4_0/SaxonHE9-6-0-6J/xccdf...}

Stylesheet compilation failed: 1 error reported

 

Any assistance would be highly appreciated

 

 

 

Roman Etebar, CISSP

<image001.jpg>

Senior Cybersecurity Engineer/IASO

DRS Technologies

45975 Nokes Blvd., Suite 145

Sterling, VA 20166

p: 703.547.4033

c: 240.381.8854

e: [hidden email]

 

 

_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].

 

_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].

 

_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].

 


_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2

David Solin
Hmm, in that case, try using http://scap.nist.gov/schema/xccdf/1.2/xccdf_1.2.xsd for the value.  Unfortunately I’ve never used the local variables file and command-line conversion, we implemented the conversion via XSLT in Java.

If using the Internet-accessible URL of the actual schema address doesn’t work… well, I don’t work for NIST.  Hopefully someone will be able to help you.

Best regards,
—David Solin



On Jul 23, 2015, at 12:07 PM, Etebar, Roman <[hidden email]> wrote:

David,
 
No, that was a typo on my side when I copied it here on the email.
 
I have tried all variations to no avail.  I’m not certain if the convert_XCCDF_local_variables.xsl wants absolute path or relative path.  The conversion kit doesn’t give any hints 
 
C:\SCAP4_0\SaxonHE9-6-0-6J\xccdf_1.2\xccdf_1.2.xsd
 
C:/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd
 
C:// SCAP4_0//SaxonHE9-6-0-6J//xccdf_1.2/xccdf_1.2.xsd
 
This is the instruction set by NIST
 
Instructions for converting XCCDF 1.1.4 content to XCCDF 1.2 content using stylesheets.
 
Two stylesheets are included:
- XCCDF_Convert_1.1.4_to_1.2.xsl - The main set of instructions
- convert_XCCDF_local_variables.xsl - Locally customizable variables
 
To use the stylesheets, place them in the same directory. Open the convert_XCCDF_local_variables.xsl and modify the variable values to reflect 1) the reverse DNS-style namespace you wish to use with element IDs, and 2) the location of the XCCDF 1.2 schema that that should appear in the SchemaLocation attribute of the new document. Then use an XSL 2.0 processor and apply the XCCDF_Convert_1.1.4_to_1.2.xsl to the XCCDF 1.1.4 content. The result should be valid XCCDF 2.0 content.
 
Please sent bug reports and feature requests to [hidden email].
 
 
I have even included the contents of the xccdf_1.2 which include the xccdf_1.2.xsd schema in the same directory as the XSL 2 Processor
 
 
<image001.png>
 
 
From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 12:43 PM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2
 
Is there actually a space in your directory name?  Why not try:
 
C:\SCAP4_0\SaxonHE9-6-0-6J\xccdf_1.2\xccdf_1.2.xsd
 
—David Solin
 
 
 
On Jul 23, 2015, at 10:17 AM, Etebar, Roman <[hidden email]> wrote:
 
Hi David,
 
Still no luck.  Same 2KB empty XML output
 
I have used the following three syntaxes
 
/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd
 
C:/ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd
 
C:// SCAP4_0//SaxonHE9-6-0-6J//xccdf_1.2/xccdf_1.2.xsd
 
From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:49 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2
 
Hi Roman,
 
Your schema_location variable value is probably not correctly formatted.  Try specifying the absolute path to the file (without a file:/ prefix).
 
Regards,
—David Solin
 
 
On Jul 23, 2015, at 9:42 AM, Etebar, Roman <[hidden email]> wrote:
 
David,
 
Thank you so much for the quick response.
 
I have modified convert_XCCDF_local_variables.xsl file in two ways now
 
The xccdf_1.2.xsd schema file is stored local in the C:\ SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd where I’m running the XSL 2 Processor command.  The command completes,but the output is 2 KB XML file that has nothing in it when viewed in the browser.
 
Is my syntax file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd  in the “schema_location” wrong ?
 
<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="schema_location">file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
And
 
<xsl:variable name="local_var_reverseDNSnamespace">gcn-drs.net</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="schema_location"> xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
From: [hidden email] [[hidden email]] On Behalf Of David Solin
Sent: Thursday, July 23, 2015 10:21 AM
To: [hidden email]
Subject: Re: [Xccdf-dev] xccdf 1.1.4 conversion to xccdf 1.2
 
It looks to me like you’re putting variable values where the variable name is supposed to be.
 
Regards,
--David Solin
 
 
 
On Jul 21, 2015, at 12:35 PM, Etebar, Roman <[hidden email]> wrote:
 
Per the instructions in the converter zipped file  I downloaded with from NIST, I have modified the convert_XCCDF_local_variables.xsl
 
Here is the output
 
 
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains variables imported by the XCCDF 1.1.4 to 1.2 converter -->
<!-- You must customize the variables in this file to your local settings -->
<xsl:variable name="gcn-drs.net">com.example</xsl:variable>
<!-- Your organization's reverse-DNS format namespace -->
<xsl:variable name="file:/SCAP4_0/SaxonHE9-6-0-6J/xccdf_1.2/xccdf_1.2.xsd">xccdf_1.2.xsd</xsl:variable>
<!-- The path to and name of the XCCDF schema -->
</xsl:stylesheet>
 
I use SaxonHE9-6-0-6J XSL 2.0 Parser
 
The command I use to run the XCCDF_Convert_1.1.4_to_1.2.xsl against juniper-xccdf.xml (1.1.4 xccdf content)
 
 
C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl  -xsl:convert_XCCDF_local_variables.xsl  -o:juniper.xccdf.xml
 
The error that is generated is below
 
C:\SCAP4_0\SaxonHE9-6-0-6J>java -jar saxon9he.jar -s:XCCDF_Convert_1.1.4_to_1.2.xsl -xsl:convert_XCC
DF_local_variables.xsl -o:juniper.xccdf.xml
Error at xsl:variable on line 12 column 80 of convert_XCCDF_local_variables.xsl:
  XTSE0020: Invalid variable name: Invalid QName local part {/SCAP4_0/SaxonHE9-6-0-6J/xccdf...}
Stylesheet compilation failed: 1 error reported
 
Any assistance would be highly appreciated
 
 
 

Roman Etebar, CISSP

<image001.jpg>

Senior Cybersecurity Engineer/IASO

DRS Technologies

45975 Nokes Blvd., Suite 145

Sterling, VA 20166

p: 703.547.4033

c: 240.381.8854

e: [hidden email]

 

 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].
 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].
 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to 
[hidden email].
 
_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].


_______________________________________________
XCCDF-dev mailing list
[hidden email]
To unsubscribe, send an email message to [hidden email].