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

add snippets for output & html namespace decls #100

Merged
merged 1 commit into from
Oct 22, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add snippets for output & html namespace decls
  • Loading branch information
joewiz committed Sep 4, 2015
commit b4fce2c9d1ebced314e577741ee6a3473db59ce6
6 changes: 6 additions & 0 deletions templates/xquery.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ snippet decns
snippet decopt
declare option output:${1:method} "${2:html5}";

snippet output
declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";

snippet json
declare option output:method "json";
declare option output:media-type "application/json";
Expand All @@ -65,6 +68,9 @@ snippet html5
declare option output:method "html5";
declare option output:media-type "text/html";

snippet html
declare namespace html="http://www.w3.org/1999/xhtml";

snippet var
declare variable $${1:name} := ${2:()};

Expand Down