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

Implement xml preprocessing #2

Open
halex2005 opened this issue Oct 8, 2014 · 0 comments
Open

Implement xml preprocessing #2

halex2005 opened this issue Oct 8, 2014 · 0 comments
Assignees

Comments

@halex2005
Copy link
Owner

Could make preprocessing for xml:

  • include xpath reference to current place - substitute current <include xpath="" /> with xml elements that matches to specified xpath

    <some>
      <reference>reference</reference>
    </some>
    <other>
      <include xpath="/some/reference" />
    </other>

    will produce after preprocessing:

    <some>
      <reference>reference</reference>
    </some>
    <other>
      <reference>reference</reference>
    </other>
  • More generally, include xpath from file specified - <include xpath="" file="" />. If xpath attribute is absent - include root xml element. If file attribute is absent - use xpath for current file.

Optional: file attribute can contains environment variables that needed to be substituted.

@halex2005 halex2005 self-assigned this Oct 8, 2014
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

1 participant