Last change
on this file since 99005 was 98584, checked in by vboxsync, 2 years ago |
Docs: bugref:10302. Setting svn properties of DITA-OT library.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8" ?>
|
---|
2 | <!-- This file is part of the DITA Open Toolkit project hosted on
|
---|
3 | Sourceforge.net. See the accompanying license.txt file for
|
---|
4 | applicable licenses.-->
|
---|
5 | <!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
|
---|
6 |
|
---|
7 | <xsl:stylesheet version="1.0"
|
---|
8 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
9 | <!-- pretty.xsl
|
---|
10 | | This stylesheet is the standard "identity transform" from the
|
---|
11 | | XSLT Recommendation, augmented by the one property, indent="yes",
|
---|
12 | | and a filter to keep out some fixed values from the DITA DTDs.
|
---|
13 | | This stylesheet copies an input XML source file into its indented
|
---|
14 | | equivalent, with the exception that fixed/defaulted attributes are
|
---|
15 | | filtered out. Remove the [] block in line 19 to
|
---|
16 | | re-enable the copying through of these attributes.
|
---|
17 | +-->
|
---|
18 |
|
---|
19 | <xsl:output method="xml" indent="yes" />
|
---|
20 |
|
---|
21 | <xsl:template match="*">
|
---|
22 | <xsl:variable name="class" select="generate-id(@class)"/>
|
---|
23 | <xsl:variable name="space" select="generate-id(@xml:space)"/>
|
---|
24 | <xsl:copy>
|
---|
25 | <xsl:copy-of select="@*[(generate-id(.)!=$class) and (generate-id(.)!=$space)]" />
|
---|
26 | <xsl:apply-templates />
|
---|
27 | </xsl:copy>
|
---|
28 | </xsl:template>
|
---|
29 |
|
---|
30 | <xsl:template match="comment()|processing-instruction()">
|
---|
31 | <xsl:copy />
|
---|
32 | </xsl:template>
|
---|
33 |
|
---|
34 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.