Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xsl:include does not work with relative path of the xsl file path. #6

Open
niralatuladhar opened this issue Jan 3, 2024 · 1 comment

Comments

@niralatuladhar
Copy link

My xsl has xsl:include , which points to the relative path of the external xsl file from the actual xsl path. However, this does not work as it expects the file to exist based on the relative path of the go application. Is there any parameter I can set to take the relative path of the main xsl file?

@wamuir
Copy link
Owner

wamuir commented Jan 4, 2024

There isn't one for the Go call. I guess you could os.Chdir... or you could set xml:base in the importing stylesheet.

<xsl:include xml:base="style/" href="./foo/bar.xsl"/>
<xsl:include xml:base="file:///path/to/style/" href="./foo/bar.xsl"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants