-
Notifications
You must be signed in to change notification settings - Fork 5
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
PDF: Committee document missing "Reference number" #1246
Comments
For the https://github.com/metanorma/iso-iec-jtc1-wg15-tdm/, branch I'll try the |
Confirmed, the PDF generated from the branch The differences, left pane - branch So, the most ping @opoudjis. |
@Intelligent2013 Ah, now you say this I realized the difference is this. There are 2 numbers on the cover page:
Only docnumber
=> 1 and 2 both present Only tc-docnumber
=> 1, 2 both missing Only docidentifierThis is technically the preferred way as described in documentation, because we don't know what N number patterns people decide to use.
=> 1 present, 2 missing docnumber and docidentifier
=> 1 present, 2 missing tc-docnumber and docidentifier
=> 1 present, 2 missing all 3 present
=> 1 present, 2 missing ConclusionThis means when docidentifier is present, 1 is always missing. |
As
it seems some part of the code |
I'm having difficulty understanding what is being asked here.
So the behaviour you are reporting, @ronaldtse, is intentional, and desirable, and it is already documented in metanorma.org: https://www.metanorma.org/author/ref/document-attributes/
docidentifier should not be being used, because you normally don't want the document identifier to be opaque; if you can't get the identifier you want based on document attributes, that means you need to change pubid, so that you can.
It's much simpler than that: I don't think the right answer is to try to infer the internal structure of
makes sense: tc-docnumber is already preformatted, so if you have the N-number, you already know what N number pattern has been used. |
@opoudjis thank you for the clarification.
These
It means I have to fallback to |
ISO XSLT updated. |
I don’t see this being documented anywhere. I would copy what you wrote and provide that on the said page. The information about the N-number is also undocumented. |
What you are saying is that this is mutually exclusive:
And the XML describing the identifier(s) should always be identical across both cases unless in the case where there is no parsing. |
I LITERALLY just copy-pasted the documentation for this:
overrides the composition of the document identifier I will spell it even more.
No it is not: https://www.metanorma.org/author/iso/ref/document-attributes/
I assume that after I update the documentation, there is nothing more for me to do here, and that this ticket can be removed from my urgent list and closed. |
The Reference number is missing in PDF output:
The header:
The reference number is also missing from all the page headers, etc.
I tried the following variations but does not fix this problem at all:
Only
docidentifier
:With
tc-docnumber
:With
tc-docnumber
anddocnumber
:They all give the same output.
Is this a Metanorma XML problem?
From this document:
The desired reference number is:
The text was updated successfully, but these errors were encountered: