Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AASX files of old version #15

Closed
WelliSolutions opened this issue Dec 19, 2023 · 1 comment
Closed

Fix AASX files of old version #15

WelliSolutions opened this issue Dec 19, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@WelliSolutions
Copy link
Collaborator

The Python SDK can't deal with AASX files of old versions (see Issue #190). We can try to fix this by moving the nodes into the new version 3 namespace. There will be no guarantee that the fixed XML is actually compatible with the new version.

@WelliSolutions WelliSolutions added the enhancement New feature or request label Dec 19, 2023
@WelliSolutions WelliSolutions self-assigned this Dec 19, 2023
@WelliSolutions
Copy link
Collaborator Author

It requires more than just a namespace change. The complete document structure changed.

Old XML:

<?xml version="1.0"?>
<aas:aasenv xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:IEC61360="http://www.admin-shell.io/IEC61360/1/0" xsi:schemaLocation="http://www.admin-shell.io/aas/1/0 AAS.xsd http://www.admin-shell.io/IEC61360/1/0 IEC61360.xsd" xmlns:aas="http://www.admin-shell.io/aas/1/0">
  <aas:assetAdministrationShells>
    <aas:assetAdministrationShell>
      <aas:idShort>Festo_3S7PM0CP4BD</aas:idShort>
      <aas:category>CONSTANT</aas:category>
      <aas:identification idType="URI">smart.festo.com/demo/aas/1/1/454576463545648365874</aas:identification>

New XML:

<environment xmlns="https://admin-shell.io/aas/3/0">
  <assetAdministrationShells>
    <assetAdministrationShell>
      <idShort>Festo_3S7PM0CP4BD</idShort>
      <id>smart.festo.com/demo/aas/1/1/454576463545648365874</id>

aasenv has changed to environment.
identification has changed to id and has lost the attribute idType.

So no, we can't do this. Package Explorer can open AASX files of version 1 and will save as version 3 through File/Save.

@WelliSolutions WelliSolutions closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant