Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: How to extract parent's attributes? How to use patterns to parse attribute's string value? >Thread Next - Re: How to extract parent's attributes? How to use patterns to parse attribute's string value? Re: How to extract parent's attributes? How to use patterns to parse attribute's string value?To: NULL Date: 10/17/2008 9:27:00 AM
>It is not clear what you want to achieve above. Your select expression
>../../svg:g[@title] looks at svg:g children of the grandparent element
>having a title attribute. If you want to output the title attribute value
>then you need ../../svg:g[@title]/@title.
../../svg:g[@title]/@title
Does not work!
But
..//@title
Does work. Oops, I see the problem: I got my sibling mixed up with the
grand parent! Please forgive me: it was late at night!
Now this works:
../svg:rect/@title
Great!
Now what about this transform attribute? This works:
../@transform
It produces
<key x=" 6" y="11" title="0002 0003 scan 003 2 @"
transform="translate( 78.10, 59.05)"
width="12.5"
pos="5">牛</key>
Now how do I extract that 78.10 and 59.05 out of the translate function in
the transform attribute?
Thanks! You have been very helpful so far!
Siegfried
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
