Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to extract parent's attributes? How to use patterns to parse attribute's string value?

From: "Siegfried Heintze" <siegfried@-------.--->
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">&#29275;</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 




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