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

Could not find schema warning #1096

Open
alekdavis opened this issue Jan 27, 2025 · 7 comments
Open

Could not find schema warning #1096

alekdavis opened this issue Jan 27, 2025 · 7 comments

Comments

@alekdavis
Copy link

alekdavis commented Jan 27, 2025

I am using Visual Studio 2022 Professional (latest version) and I just upgraded SHFB to the latest version. After adding a conceptual content topic file (using the standard Add menu and selecting the Conceptual topic from the list), I get the "Could not find schema information for" the element/attribute warnings:

Image

When installing SHFB, I went over all options to set up VS extension, install schemas, etc., and I did not see any errors or warnings, but just in case I reinstalled it and it all looks good:

Image

So, not sure, what I may be missing.

@EWSoftware
Copy link
Owner

If Visual Studio is using the schemas, you should see them in the properties window for the file in the Schemas property. If you click the "..." button to the right of the property value it will list all schemas.

@alekdavis
Copy link
Author

@EWSoftware I see a few dozen schemas in the Properties window, but I'm not sure how this would help. The warning comes from the root element:

<topic id="95884982-ff04-4b6e-9214-7622491f4679" revisionNumber="1">

What schema do the topic, id, and revisionNumber belong to? Is there a way to fix it?

@EWSoftware
Copy link
Owner

The schemas are installed as part of the extension. You should see entries with a path pointing to C:\Program Files\Microsoft Visual Studio\2022\Community\xml\schemas\SandcastleMAML or something like it. If you open the noted dialog box and click the Use column to sort by those in use, the Sandcastle ones should be listed first:

Image

As noted, they are part of the package so I don't know why they wouldn't be there for you.

@alekdavis
Copy link
Author

They are there. So, why are the warning there?

Image

@EWSoftware
Copy link
Owner

EWSoftware commented Jan 27, 2025

I figured it out. They're not warnings or errors just informational messages. The topic element and the ID and revisionNumber attributes aren't part of the formal MAML schema so that's why they show up.

@alekdavis
Copy link
Author

Ah, I see. Thanks for the info. So should these be defined is a custom namespace to make the error list clean?

@EWSoftware
Copy link
Owner

I could probably add them to the schemas though I think this is the first time anyone's ever brought it up as an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants