packregistry.xslt (85596f7b) packregistry.xslt (86e1cf34)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 25 unchanged lines hidden (view full) ---

34 <xsl:copy-of select="list/dependency"/>
35<!--
36 <xsl:copy-of select="document(list/filename)/oor:component-schema"/>
37 <xsl:copy-of select="document(list/filename)/oor:component-data"/>
38
39 instead of the below for-each would only issue warnings, not errors, for
40 non-existing or otherwise bad input files; it is important that the input
41 filename list is already sorted in an order suitable for the configmgr
1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the

--- 25 unchanged lines hidden (view full) ---

34 <xsl:copy-of select="list/dependency"/>
35<!--
36 <xsl:copy-of select="document(list/filename)/oor:component-schema"/>
37 <xsl:copy-of select="document(list/filename)/oor:component-data"/>
38
39 instead of the below for-each would only issue warnings, not errors, for
40 non-existing or otherwise bad input files; it is important that the input
41 filename list is already sorted in an order suitable for the configmgr
42 (e.g., xcs files preceeding xcu files).
42 (e.g., xcs files preceding xcu files).
43-->
44 <xsl:for-each select="list/filename">
45 <xsl:variable name="doc" select="document(concat($prefix, .))"/>
46 <xsl:choose>
47 <xsl:when test="count($doc/oor:component-schema) = 1">
48 <xsl:apply-templates select="$doc/oor:component-schema"/>
49 </xsl:when>
50 <xsl:when test="count($doc/oor:component-data) = 1">

--- 36 unchanged lines hidden ---
43-->
44 <xsl:for-each select="list/filename">
45 <xsl:variable name="doc" select="document(concat($prefix, .))"/>
46 <xsl:choose>
47 <xsl:when test="count($doc/oor:component-schema) = 1">
48 <xsl:apply-templates select="$doc/oor:component-schema"/>
49 </xsl:when>
50 <xsl:when test="count($doc/oor:component-data) = 1">

--- 36 unchanged lines hidden ---