Remote Style sheet

0 votes
asked Jan 23 in Question / help by dickmaley (140 points)

I am trying to get a remote style sheet working.

I have the following:

@startuml
<style file=https://www.advdelphisys.com/PlantUML/maley20250123.css>
start
:ClickServlet.handleRequest();
:new page;
if (Page.onSecurityCheck) then (true)
  :Page.onInit();
  if (isForward?) then (no)
    :Process controls;
    if (continue processing?) then (no)
      end
    endif

stop

header: some header
footer: some footer
caption some caption

@enduml

Throws the following error.

PlantUML Diagram

The url for the *.css file is valid.

How can I fix this?

1 Answer

–1 vote
answered Jan 23 by The-Lu (76,960 points)

Hi D,

Could you use import instead, as:

@startuml
!include https://www.advdelphisys.com/PlantUML/maley20250123.css
start
:ClickServlet.handleRequest();
:new page;
if (Page.onSecurityCheck) then (true)
  :Page.onInit();
  if (isForward?) then (no)
    :Process controls;
    if (continue processing?) then (no)
      end
    endif

stop

header: some header
footer: some footer
caption some caption

@enduml

Then beware of security constraint, see:

Regards,
Th.

commented Jan 24 by dickmaley (140 points)

Thank you for your response.

I tried everything you mentioned, but it all results in

PlantUML Diagram

I am using

https://www.planttext.com/

as my editor.

If I use the other editors I get no error message at all and no diagram.

Any further ideas are welcome.

Thank you in advance.

commented Jan 25 by The-Lu (76,960 points)

Hi D.,

It seems your CSS is malformed...:

Could you add 

<style>

...

</style>

Awaiting others answers...

Regards,
Th.

...