|
| Hi,
Is it possible to combine xpath with a small amount of xsl (just the select
keyword)?
I have a document like so:
<friend id="id1" ref="anotherFriend" name="bob" desc="great"/>
<person id="anotherFriend" name="peter" desc="good">
<child id="cid" name="peterson" desc="good"/>
</person>
I would like to write a XML file which has the xpath expressions. These
expressions
would be passed to msxml4 parser.
<alias name="myfriend" path=*/friend/@ref ; */person[@id=select(.)]" />
I am parsing this file using msxml4. I get the value of path attribute and
would like
to evaluate it. However, since xpath does not have this capability of
select (to my
knowledge), I am guessing I have to use xsl. This begs another question -
just
for the purpose of using select - have to bring in xsl.
Also, can msxml parser handle embedded xsl in another XML document?
|
|