skip to main content
Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » URI » XPathNodeIterator PossibleResolvedUris (string uriAsString)
XPathNodeIterator PossibleResolvedUris (string uriAsString)
 
Convert file paths to URIs.
Exceptions:
OutOfMemoryException
Thrown when a low memory situation occurs.
Parameters:
uriAsString
The URI as string.
Returns:
A node set of possible resolved URIs for the given virtual URI.
<wwuri:Uris>
  <wwuri:Uri value = "file:///C:/Users/user/Projects/Targets/Reverb/Transforms/pages.xsl" />
  < wwuri:Uri value = "file:///C:/Users/user/Projects/Formats/WebWorks Reverb/Transforms/pages.xsl" />
  < wwuri:Uri value = "file:///C:/Program Files (x86)/WebWorks/ePublisher/2012.4/Formats/WebWorks Reverb/Transforms/pages.xsl" />
</ wwuri:Uris>
Resolve virtual URI wwformat:Transforms/pages.xsl.
<xsl:variable name="VarPossibleURIs" select="wwuri:PossibleResolvedUris('wwformat:Transforms/pages.xsl')" />
<xsl:for-each select = "$VarPossibleURIs/wwuri:Uris/wwuri:Uri" >
  <xsl:variable name = "VarPossibleURI" select="." />

  <xsl:if test="wwuri:IsFile($VarPossibleURI)">
    <xsl:variable name = "VarPossibleFilePath" select="wwuri:AsFilePath($VarPossibleURI)" />
    <xsl:if test="wwfilesystem:FileExists($VarPossibleFilePath)">
      ...
    </xsl:if>
  </xsl:if>
</xsl:for-each>
Was this helpful?
Last modified date: 10/14/2020