Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/jaxp/javax/xml/jaxp/unittest/common/prettyprint/generate-catalog.xsl
42103 views
1
<?xml version="1.0" encoding="utf-8" ?>
2
<!-- Stylesheet for generating the entity-resolver document in XCatalog format -->
3
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5
<xsl:output method="xml" indent="yes"/>
6
<xsl:param name="schemaBase"/>
7
<xsl:template match="entity-resolver-config">
8
<catalog xmlns="xmlns:xml:catalog"
9
prefer="system"
10
xml:base="{$schemaBase}" >
11
12
<xsl:for-each select="entity">
13
14
<!-- Generate System Id -->
15
<xsl:text disable-output-escaping="yes">&lt;system systemId="</xsl:text>
16
<xsl:value-of select="system-id/text()"/>
17
<xsl:text>" uri="</xsl:text>
18
<xsl:value-of select="location/text()"/>
19
<xsl:text disable-output-escaping="yes">" /&gt;&#10;</xsl:text>
20
</xsl:for-each>
21
</catalog>
22
</xsl:template>
23
</xsl:stylesheet>
24