Lines Matching refs:ROOT
62 # Get the root element from the schema. This is the first element
64 ROOT=$(sed -n -e '/xsd:element.*name="sdk-/s/.*name="\(sdk-[^"]*\)".*/\1/p' "$SCHEMA")
65 [[ -z "$ROOT" ]] && error "Failed to find root element in $SCHEMA."
66 echo "## Using root element $ROOT"
71 <sdk:$ROOT
147 if [[ "$ROOT" == "sdk-repository" && "$XSD_VERSION" -ge "10" ]]; then return 0; fi
148 if [[ "$ROOT" == "sdk-addon" && "$XSD_VERSION" -ge "7" ]]; then return 0; fi
149 if [[ "$ROOT" == "sdk-sys-img" && "$XSD_VERSION" -ge "3" ]]; then return 0; fi
163 # which elements. This depends on the XSD root element and the XSD version.
169 if [[ "$ROOT" == "sdk-repository" && "$XSD_VERSION" -ge 7 ]] ||
170 [[ "$ROOT" == "sdk-addon" && "$XSD_VERSION" -ge 5 ]]; then
464 echo "</sdk:$ROOT>" >> "$OUT"