-
Notifications
You must be signed in to change notification settings - Fork 0
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
Change definition for the target option of p:file-copy #60
Comments
Seems reasonable to me, although I worry that it's a little but subtle. |
Presumably this also applies to |
I think we discussed this in London in 2019 although I don’t see it in the minutes. IIRC we aimed at mimicking If this is our guidance, |
Conceptually, I like the idea of failing if the directory doesn't exist. But I wonder if creating it would be more consistent. My thinking is that <xsl:result-document href="build/x.xml"/> Will create the directory. And (I believe) so will That doesn't really address my concerns about the subtlety, but since almost everything about URIs is subtle if you look closely enough, perhaps I should just let go. If we made a decision to change the behavior in 2019 but forgot to implement it, does that give us license to reconsider the behavior in 3.1? We haven't actually shipped a "community report" version of 3.1 yet and the file steps were not officially in 3.0. |
I don't think we should change this now. Too many incompatibility issues. Anyway, my idea of how this should work: Going from the (usally partial) URIs in the There is another issue (by me) about |
There aren't going to be fewer incompatiblity issues if we wait! In fact, after we've published "final" specifications for the file steps, I don't think it will be possible to change the semantics of |
The spec of p:file-copy now says:
This is now interpreted (by Morgana) (and I do think that's correct) that the specified directory must exist on disk. But this also means that a copy operation like:
will create a file called
build
and not a filebuild/x.xml
, even though the value of thetarget
option tries to specify a directory (because it ends with a/
).I think this rather counter-intuitive and we should change the definition (so the above copy does create
build/x.xml
).The text was updated successfully, but these errors were encountered: