TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
To process the rest of the content while suppressing the xs:documentation and xs:annotation tags, create a stylesheet that contains the following templates:
And then import the stylesheet that normally processes the content. Process your content with this new stylesheet. The two templates above will suppress any processing of those elements that the normal stylesheets do while otherwise processing it in exactly the same way they always did.
The latter is untested.
Hope this helps,
From: techwr-l-bounces+mbaker=analecta -dot- com -at- lists -dot- techwr-l -dot- com [mailto:techwr-l-bounces+mbaker=analecta -dot- com -at- lists -dot- techwr-l -dot- com] On Behalf Of Michael Hopwood
Sent: Tuesday, August 23, 2016 11:50 AM
To: TECHWR-L <techwr-l -at- lists -dot- techwr-l -dot- com>
Subject: Generic XSLTs for extracting / hiding documentation embedded in XML?
I hope this is not too much of a niche question, but I imagine many of you are far more seasoned oXygen users than I am.
Iâm writing documentation into an XML schema using xs:annotation and xs:documentation and oXygen outputs that beautifully.
Now, if I want to just extract the content of the xs:documentation tags as plain text for an ad-hoc use e.g. pasting into a Word doc that can be reviewed, commented etc.?
Conversely, if Iâd like to generate just the outer XML without any xs:annotation and xs:documentation tags?
Would it be too optimistic to think that there might be some tried and tested XML stylesheets available for these purposes? I donât see this being technically intractable. Just asking before I reinvent this wheel.
Global Legal Entity Identifier Foundation (GLEIF) BÃumleingasse 22, 4051, Basel, Switzerland Chairman of the Board: Gerard Hartsink
CEO: Stephan Wolf
This message may contain confidential and/or privileged information. If you are not the intended recipient or if you have received this message in error, please notify the sender and delete this message. Any unauthorised copying, disclosure or distribution of this message is strictly forbidden.