Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsFormatting text
https://www.eclipse.org/forums/index.php/mv/msg/18165/58137/#msg_58137
Is it possible to use java.lang.String for formatting Strings in the
printed text.
Thanks a lot,
Guadalupe]]>Guadalupe Mising name2009-03-10T19:48:51-00:00Re: Formatting text
https://www.eclipse.org/forums/index.php/mv/msg/18165/58185/#msg_58185
Paul]]>Paul Elder2009-03-10T20:36:39-00:00Re: Formatting text
https://www.eclipse.org/forums/index.php/mv/msg/18165/58236/#msg_58236
The exactly example is I am exporting UML models designed with RSA to xml.
And when I read attribute types href I obtain
" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"
and I only want to show the text "String" in my generated code (which I
could easily obtain using java String function just asking for the
subString after #)
Thanks a lot for your help,
Guadalupe]]>Guadalupe Mising name2009-03-11T11:43:25-00:00Re: Formatting text
https://www.eclipse.org/forums/index.php/mv/msg/18165/58285/#msg_58285
Originally posted by: johannes.nel.gmail.com
you can use the xpath string functions.
<c:get select="string-func(context)"/>
Guadalupe wrote:
> Yes,
> The exactly example is I am exporting UML models designed with RSA to
> xml. And when I read attribute types href I obtain
> " pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String" and I
> only want to show the text "String" in my generated code (which I could
> easily obtain using java String function just asking for the subString
> after #)
>
> Thanks a lot for your help,
> Guadalupe
>]]>2009-03-11T14:59:34-00:00Re: Formatting text
https://www.eclipse.org/forums/index.php/mv/msg/18165/58332/#msg_58332
functions:
In your case, I think substring-after($foo/@href, '#') would do.
Paul]]>Paul Elder2009-03-11T15:27:36-00:00Re: Formatting text
https://www.eclipse.org/forums/index.php/mv/msg/18165/58440/#msg_58440
I will record this useful links in a safe place.]]>Guadalupe Mising name2009-03-12T19:13:47-00:00