X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Fxpath%2Fxpath_internal_parser.mly;h=a40eea93bd14ca4fca6bd0fe748cf6da186ca2c5;hp=72a07fb6b9a0afa417ad425cdb2f7bbf3a95863a;hb=e19136462d2b66532cbed3490d3b5e249f15a7a8;hpb=818d907b0cbcae06a07cc2ba7833a0917894d418 diff --git a/src/xpath/xpath_internal_parser.mly b/src/xpath/xpath_internal_parser.mly index 72a07fb..a40eea9 100644 --- a/src/xpath/xpath_internal_parser.mly +++ b/src/xpath/xpath_internal_parser.mly @@ -15,7 +15,7 @@ (***********************************************************************) (* - Time-stamp: + Time-stamp: *) open Ast @@ -136,10 +136,11 @@ test: | COMMENT { Utils.QNameSet.singleton(Utils.QName.comment), NodeKind.Comment } -| PI { Utils.QNameSet.singleton( - Utils.QName.processing_instruction ( - Utils.QName.of_string $1) - ), NodeKind.ProcessingInstruction +| PI { (if $1 = "" then star + else Utils.QNameSet.singleton( + Utils.QName.processing_instruction ( + Utils.QName.of_string $1) + )), NodeKind.ProcessingInstruction } | TAG { Utils.QNameSet.singleton(Utils.QName.of_string $1), NodeKind.Element