From 6efc8441a1d47c2e1ee3f2b780ce27d988cd5507 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 13 May 2017 11:08:44 +0200 Subject: [PATCH] update the xpath excercise --- web/2_sem/xpath/xpath.org | 27 ++++++++++++++++++++++++++- web/2_sem/xpath/xpath.tex | 32 ++++++++++++++++++++++---------- 2 files changed, 48 insertions(+), 11 deletions(-) diff --git a/web/2_sem/xpath/xpath.org b/web/2_sem/xpath/xpath.org index a0be884..08f098b 100644 --- a/web/2_sem/xpath/xpath.org +++ b/web/2_sem/xpath/xpath.org @@ -1,3 +1,6 @@ +* Hilfsmittel ++ http://www.xpathtester.com/xpath ++ https://www.w3schools.com/xml/xpath_syntax.asp * Aufgabe 1 ** a) /library/book/isbn #+BEGIN_SRC xml @@ -45,7 +48,29 @@ #+END_SRC -** b) +** b) /library/book/author/born +#+BEGIN_SRC xml + + + 1922-11-26 + + 1899-02-23 + + +#+END_SRC + +** c) /library/book/author/dead +#+BEGIN_SRC xml + + + 2000-02-12 + + 1974-07-29 + + +#+END_SRC + +** d) * Vorgabe File #+BEGIN_SRC xml diff --git a/web/2_sem/xpath/xpath.tex b/web/2_sem/xpath/xpath.tex index 96106b5..1fcc4a1 100644 --- a/web/2_sem/xpath/xpath.tex +++ b/web/2_sem/xpath/xpath.tex @@ -1,4 +1,4 @@ -% Created 2017-05-13 Sat 10:02 +% Created 2017-05-13 Sat 10:15 % Intended LaTeX compiler: pdflatex \documentclass{az_article} \author{Andreas Zweili} @@ -16,9 +16,9 @@ \tableofcontents \newpage \section{Aufgabe 1} -\label{sec:orgd6ee63f} +\label{sec:org306d8a3} \subsection{a) /library/book/isbn} -\label{sec:org6e4aeb4} +\label{sec:org15353ce} \begin{verbatim} @@ -29,7 +29,7 @@ \end{verbatim} \subsection{b) /library/book/title} -\label{sec:orgbe4ca90} +\label{sec:org2dca311} \begin{verbatim} @@ -40,7 +40,7 @@ \end{verbatim} \subsection{c) /library/book/author/name} -\label{sec:orgef9b964} +\label{sec:org6f5e358} \begin{verbatim} @@ -51,9 +51,9 @@ \end{verbatim} \section{Aufgabe 2} -\label{sec:org6bc604a} +\label{sec:org4522724} \subsection{a) /library/book/character/name} -\label{sec:org01eaac0} +\label{sec:org34dda39} \begin{verbatim} @@ -68,10 +68,22 @@ \end{verbatim} -\subsection{b)} -\label{sec:org588e43e} +\subsection{b) /lib/book/author/born} +\label{sec:org414aad7} +\begin{verbatim} + + + 1922-11-26 + + 1899-02-23 + + +\end{verbatim} + +\subsection{c)} +\label{sec:org7021094} \section{Vorgabe File} -\label{sec:orgd5fdaf0} +\label{sec:orgc3d654c} \begin{verbatim}