Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


text() in XPath limited in xsltproc?

From: Arndt Jonasson <arndt.jonasson@-----.--->
To: NULL
Date: 8/8/2007 8:38:00 AM


The way I read the XPath 1.0 specification, queries like "//*/
text()/.." and
"//*/child::text()" should be valid. xmllint seems to agree with me,
but xsltproc gives syntax errors for those constructions.
Which one is correct?

$ xsltproc err1.xsl -
error
xsltCompileStepPattern : 'child' or 'attribute' expected
compilation error: file err1.xsl line 6 element template
xsltCompilePattern : failed to compile '//*/text()/parent::node()'

$ xsltproc err2.xsl -
error
xsltCompileStepPattern : Name expected
compilation error: file err2.xsl line 6 element template
xsltCompilePattern : failed to compile '//*/text()/node()/..'


Versions:
$xsltproc --version
Using libxml 20621, libxslt 10115 and libexslt 812
xsltproc was compiled against libxml 20620, libxslt 10115 and libexslt
812
libxslt 10115 was compiled against libxml 20620
libexslt 812 was compiled against libxml 20620
$ xmllint --version
xmllint: using libxml version 20627
   compiled with: Threads Tree Output Push Reader Patterns Writer
SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer
XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas
Schematron Modules Debug



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent