Aliases: catalogResolve
Keywords: IO
### ** Examples if(!exists("Sys.setenv")) Sys.setenv = Sys.putenv Sys.setenv("XML_CATALOG_FILES" = system.file("exampleData", "catalog.xml", package = "XML")) catalogResolve("-//OASIS//DTD DocBook XML V4.4//EN", "public")
[1] "file:///usr/share/xml/docbook44/docbookx.dtd"
catalogResolve("http://www.omegahat.net/XSL/foo.xsl")
[1] "/home/duncan/omegahat/XSLDocs/foo.xsl"
catalogResolve("http://www.omegahat.net/XSL/article.xsl", "uri")
[1] "/home/duncan/Projects/org/omegahat/Docs/XSL/article.xsl"
catalogResolve("http://www.omegahat.net/XSL/math.xsl", "uri")
[1] "/home/duncan/omegahat/XSLDocs/math.xsl"
# This one does not resolve anything, returning an empty value. catalogResolve("http://www.oasis-open.org/docbook/xml/4.1.2/foo.xsl", "uri")
[1] NA
# Vectorized and returns NA for the first and /tmp/html.xsl # for the second. catalogAdd("http://made.up.domain", "/tmp")
[1] TRUE
catalogResolve(c("ddas", "http://made.up.domain/html.xsl"), asIs = TRUE)
[1] "ddas" "/tmp/html.xsl"